summaryrefslogtreecommitdiff
path: root/src/lj_asm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_asm.c')
-rw-r--r--src/lj_asm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lj_asm.c b/src/lj_asm.c
index 5c564748..985f0cef 100644
--- a/src/lj_asm.c
+++ b/src/lj_asm.c
@@ -3029,7 +3029,7 @@ static void asm_head_root(ASMState *as)
3029{ 3029{
3030 int32_t spadj; 3030 int32_t spadj;
3031 asm_head_root_base(as); 3031 asm_head_root_base(as);
3032 emit_setgli(as, vmstate, (int32_t)as->J->curtrace); 3032 emit_setgli(as, vmstate, (int32_t)as->T->traceno);
3033 spadj = asm_stack_adjust(as); 3033 spadj = asm_stack_adjust(as);
3034 as->T->spadjust = (uint16_t)spadj; 3034 as->T->spadjust = (uint16_t)spadj;
3035 emit_addptr(as, RID_ESP|REX_64, -spadj); 3035 emit_addptr(as, RID_ESP|REX_64, -spadj);
@@ -3145,7 +3145,7 @@ static void asm_head_side(ASMState *as)
3145 } 3145 }
3146 3146
3147 /* Store trace number and adjust stack frame relative to the parent. */ 3147 /* Store trace number and adjust stack frame relative to the parent. */
3148 emit_setgli(as, vmstate, (int32_t)as->J->curtrace); 3148 emit_setgli(as, vmstate, (int32_t)as->T->traceno);
3149 emit_addptr(as, RID_ESP|REX_64, -spdelta); 3149 emit_addptr(as, RID_ESP|REX_64, -spdelta);
3150 3150
3151 /* Restore target registers from parent spill slots. */ 3151 /* Restore target registers from parent spill slots. */