mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Fix snapshot #0 handling for traces with a stack check on entry.
This commit is contained in:
parent
a31c317fb5
commit
c75c62b489
@ -1373,6 +1373,11 @@ static void asm_head_side(ASMState *as)
|
||||
int pass3 = 0;
|
||||
IRRef i;
|
||||
|
||||
if (as->snapno && as->topslot > as->parent->topslot) {
|
||||
/* Force snap #0 alloc to prevent register overwrite in stack check. */
|
||||
as->snapno = 0;
|
||||
asm_snap_alloc(as);
|
||||
}
|
||||
allow = asm_head_side_base(as, irp, allow);
|
||||
|
||||
/* Scan all parent SLOADs and collect register dependencies. */
|
||||
|
Loading…
Reference in New Issue
Block a user