mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-08 07:34:07 +00:00
Fix stack slot updates for down-recursion.
This commit is contained in:
parent
139175f8c4
commit
b4006ba9a8
@ -666,7 +666,8 @@ void lj_record_ret(jit_State *J, BCReg rbase, ptrdiff_t gotresults)
|
|||||||
GCproto *pt = funcproto(frame_func(frame - (cbase+1)));
|
GCproto *pt = funcproto(frame_func(frame - (cbase+1)));
|
||||||
if (J->framedepth == 0 && J->pt && frame == J->L->base - 1) {
|
if (J->framedepth == 0 && J->pt && frame == J->L->base - 1) {
|
||||||
if (check_downrec_unroll(J, pt)) {
|
if (check_downrec_unroll(J, pt)) {
|
||||||
J->maxslot = (BCReg)(rbase + nresults);
|
J->maxslot = (BCReg)(rbase + gotresults);
|
||||||
|
lj_snap_purge(J);
|
||||||
rec_stop(J, J->cur.traceno); /* Down-recursion. */
|
rec_stop(J, J->cur.traceno); /* Down-recursion. */
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user