mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Fix snapshot restore for exit to function header.
This commit is contained in:
parent
1f7b326217
commit
f1e7a4477c
@ -845,12 +845,15 @@ const BCIns *lj_snap_restore(jit_State *J, void *exptr)
|
||||
|
||||
/* Compute current stack top. */
|
||||
switch (bc_op(*pc)) {
|
||||
default:
|
||||
if (bc_op(*pc) < BC_FUNCF) {
|
||||
L->top = curr_topL(L);
|
||||
break;
|
||||
}
|
||||
/* fallthrough */
|
||||
case BC_CALLM: case BC_CALLMT: case BC_RETM: case BC_TSETM:
|
||||
L->top = frame + snap->nslots;
|
||||
break;
|
||||
default:
|
||||
L->top = curr_topL(L);
|
||||
break;
|
||||
}
|
||||
return pc;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user