Skip to content

Commit

Permalink
bindpos and bindkey take an MVMRegister argument
Browse files Browse the repository at this point in the history
Thus these are always passed as a regular value, never as a float.
  • Loading branch information
bdw committed Mar 18, 2015
1 parent bcb2317 commit 4b38c6c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/jit/graph.c
Expand Up @@ -815,8 +815,7 @@ static MVMint32 jgb_consume_reprop(MVMThreadContext *tc, JitGraphBuilder *jgb,
{ MVM_JIT_REG_VAL, invocant },
{ MVM_JIT_REG_OBJBODY, invocant },
{ MVM_JIT_REG_VAL, key },
{ op == MVM_OP_bindpos_n || op == MVM_OP_bindkey_n
? MVM_JIT_REG_VAL_F : MVM_JIT_REG_VAL, value },
{ MVM_JIT_REG_VAL, value }, // always as a register (= value)
{ MVM_JIT_LITERAL,
op == MVM_OP_bindpos_i || op == MVM_OP_bindkey_i ? MVM_reg_int64 :
op == MVM_OP_bindpos_n || op == MVM_OP_bindkey_n ? MVM_reg_num64 :
Expand Down

0 comments on commit 4b38c6c

Please sign in to comment.