Skip to content

Commit

Permalink
Attempt to update sp_getarg_* in the lego JIT
Browse files Browse the repository at this point in the history
The JIT is still, alas, rather explosive.
  • Loading branch information
jnthn committed Jul 21, 2021
1 parent e790ea6 commit b52a090
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/jit/x64/emit.dasc
Expand Up @@ -686,8 +686,10 @@ void MVM_jit_emit_primitive(MVMThreadContext *tc, MVMJitCompiler *compiler, MVMJ
MVMint32 reg = ins->operands[0].reg.orig;
MVMuint16 idx = ins->operands[1].callsite_idx;
| mov TMP1, TC->cur_frame;
| mov TMP1, FRAME:TMP1->params.legacy.args;
| mov TMP1, REGISTER:TMP1[idx];
| mov TMP1, FRAME:TMP1->params.arg_info.map;
| mov TMP2, U16:TMP1[idx];
| mov TMP1, FRAME:TMP1->params.arg_info.source;
| mov TMP1, qword [TMP1 + TMP2 * 2];
| mov WORK[reg], TMP1;
break;
}
Expand Down

0 comments on commit b52a090

Please sign in to comment.