Skip to content

Commit

Permalink
JIT sp_bind_i32
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterDuke17 committed Feb 27, 2019
1 parent dcafbc4 commit bfbfd0c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/jit/graph.c
Expand Up @@ -1788,6 +1788,7 @@ static MVMint32 consume_ins(MVMThreadContext *tc, MVMJitGraph *jg,
case MVM_OP_sp_p6obind_o:
case MVM_OP_sp_p6obind_i32:
case MVM_OP_sp_bind_i64:
case MVM_OP_sp_bind_i32:
case MVM_OP_sp_bind_n:
case MVM_OP_sp_bind_s:
case MVM_OP_sp_bind_s_nowb:
Expand Down
8 changes: 7 additions & 1 deletion src/jit/x64/emit.dasc
Expand Up @@ -757,6 +757,7 @@ void MVM_jit_emit_primitive(MVMThreadContext *tc, MVMJitCompiler *compiler, MVMJ
break;
}
case MVM_OP_sp_bind_i64:
case MVM_OP_sp_bind_i32:
case MVM_OP_sp_bind_n:
case MVM_OP_sp_bind_s:
case MVM_OP_sp_bind_s_nowb:
Expand All @@ -776,7 +777,12 @@ void MVM_jit_emit_primitive(MVMThreadContext *tc, MVMJitCompiler *compiler, MVMJ
| mov TMP2, aword WORK[val]; // reload value
|2: // done
}
| mov qword [TMP1+offset], TMP2; // store value into body
if (op == MVM_OP_sp_bind_i32) {
| mov dword [TMP1+offset], TMP2d; // store value into body
}
else {
| mov qword [TMP1+offset], TMP2; // store value into body
}
break;
}
case MVM_OP_sp_get_i64:
Expand Down

0 comments on commit bfbfd0c

Please sign in to comment.