summaryrefslogtreecommitdiff
path: root/src/lj_asm_x86.h
diff options
context:
space:
mode:
authorMike Pall <mike>2011-11-20 13:23:25 +0100
committerMike Pall <mike>2011-11-20 13:23:25 +0100
commitdc2a39e46d9498c475eaf9ad7c4a8ae61a73094a (patch)
tree3c338e19b326cba92635ee9906804003cd996fa9 /src/lj_asm_x86.h
parent726dc42c32cfbda89e1ad798a8de4984b5f7df7b (diff)
downloadluajit2-dc2a39e46d9498c475eaf9ad7c4a8ae61a73094a.tar.gz
Get rid of snap->depth.
Diffstat (limited to 'src/lj_asm_x86.h')
-rw-r--r--src/lj_asm_x86.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_asm_x86.h b/src/lj_asm_x86.h
index 391e2de9..4d47e389 100644
--- a/src/lj_asm_x86.h
+++ b/src/lj_asm_x86.h
@@ -2316,8 +2316,8 @@ static void asm_stack_check(ASMState *as, BCReg topslot,
static void asm_stack_restore(ASMState *as, SnapShot *snap)
{
SnapEntry *map = &as->T->snapmap[snap->mapofs];
+ SnapEntry *flinks = &as->T->snapmap[snap_nextofs(as->T, snap)-1];
MSize n, nent = snap->nent;
- SnapEntry *flinks = map + nent + snap->depth;
/* Store the value of all modified slots to the Lua stack. */
for (n = 0; n < nent; n++) {
SnapEntry sn = map[n];