diff options
Diffstat (limited to 'src/lj_asm.c')
-rw-r--r-- | src/lj_asm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lj_asm.c b/src/lj_asm.c index 37b7e3f5..e2c14872 100644 --- a/src/lj_asm.c +++ b/src/lj_asm.c | |||
@@ -987,7 +987,7 @@ static void asm_head_root(ASMState *as) | |||
987 | { | 987 | { |
988 | int32_t spadj; | 988 | int32_t spadj; |
989 | asm_head_root_base(as); | 989 | asm_head_root_base(as); |
990 | emit_setgli(as, vmstate, (int32_t)as->T->traceno); | 990 | emit_setvmstate(as, (int32_t)as->T->traceno); |
991 | spadj = asm_stack_adjust(as); | 991 | spadj = asm_stack_adjust(as); |
992 | as->T->spadjust = (uint16_t)spadj; | 992 | as->T->spadjust = (uint16_t)spadj; |
993 | emit_spsub(as, spadj); | 993 | emit_spsub(as, spadj); |
@@ -1082,7 +1082,7 @@ static void asm_head_side(ASMState *as) | |||
1082 | } | 1082 | } |
1083 | 1083 | ||
1084 | /* Store trace number and adjust stack frame relative to the parent. */ | 1084 | /* Store trace number and adjust stack frame relative to the parent. */ |
1085 | emit_setgli(as, vmstate, (int32_t)as->T->traceno); | 1085 | emit_setvmstate(as, (int32_t)as->T->traceno); |
1086 | emit_spsub(as, spdelta); | 1086 | emit_spsub(as, spdelta); |
1087 | 1087 | ||
1088 | /* Restore target registers from parent spill slots. */ | 1088 | /* Restore target registers from parent spill slots. */ |
@@ -1169,7 +1169,7 @@ static void asm_tail_link(ASMState *as) | |||
1169 | pc = retpc; | 1169 | pc = retpc; |
1170 | } | 1170 | } |
1171 | emit_loada(as, RID_DISPATCH, J2GG(as->J)->dispatch); | 1171 | emit_loada(as, RID_DISPATCH, J2GG(as->J)->dispatch); |
1172 | emit_loada(as, RID_PC, pc); | 1172 | emit_loada(as, RID_LPC, pc); |
1173 | mres = (int32_t)(snap->nslots - baseslot); | 1173 | mres = (int32_t)(snap->nslots - baseslot); |
1174 | switch (bc_op(*pc)) { | 1174 | switch (bc_op(*pc)) { |
1175 | case BC_CALLM: case BC_CALLMT: | 1175 | case BC_CALLM: case BC_CALLMT: |