diff options
Diffstat (limited to 'src/lj_asm.c')
-rw-r--r-- | src/lj_asm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lj_asm.c b/src/lj_asm.c index 55bc814e..3a2fee71 100644 --- a/src/lj_asm.c +++ b/src/lj_asm.c | |||
@@ -906,7 +906,7 @@ static MCode *asm_exitstub_gen(ASMState *as, ExitNo group) | |||
906 | *mxp++ = MODRM(XM_OFS8, 0, RID_ESP); | 906 | *mxp++ = MODRM(XM_OFS8, 0, RID_ESP); |
907 | *mxp++ = MODRM(XM_SCALE1, RID_ESP, RID_ESP); | 907 | *mxp++ = MODRM(XM_SCALE1, RID_ESP, RID_ESP); |
908 | *mxp++ = 2*sizeof(void *); | 908 | *mxp++ = 2*sizeof(void *); |
909 | *(int32_t *)mxp = ptr2addr(J2GG(as->J)->dispatch); mxp += 4; | 909 | *(int32_t *)mxp = ptr2addr(GG2DISP(J2GG(as->J))); mxp += 4; |
910 | /* Jump to exit handler which fills in the ExitState. */ | 910 | /* Jump to exit handler which fills in the ExitState. */ |
911 | *mxp++ = XI_JMP; mxp += 4; | 911 | *mxp++ = XI_JMP; mxp += 4; |
912 | *((int32_t *)(mxp-4)) = (int32_t)((MCode *)lj_vm_exit_handler - mxp); | 912 | *((int32_t *)(mxp-4)) = (int32_t)((MCode *)lj_vm_exit_handler - mxp); |
@@ -3066,7 +3066,7 @@ static void asm_tail_sync(ASMState *as) | |||
3066 | 3066 | ||
3067 | if (as->T->link == TRACE_INTERP) { | 3067 | if (as->T->link == TRACE_INTERP) { |
3068 | /* Setup fixed registers for exit to interpreter. */ | 3068 | /* Setup fixed registers for exit to interpreter. */ |
3069 | emit_loada(as, RID_DISPATCH, J2GG(as->J)->dispatch); | 3069 | emit_loada(as, RID_DISPATCH, GG2DISP(J2GG(as->J))); |
3070 | emit_loadi(as, RID_PC, (int32_t)map[nent]); | 3070 | emit_loadi(as, RID_PC, (int32_t)map[nent]); |
3071 | } else if (newbase) { | 3071 | } else if (newbase) { |
3072 | /* Save modified BASE for linking to trace with higher start frame. */ | 3072 | /* Save modified BASE for linking to trace with higher start frame. */ |