mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Fix recording of BC_VARG.
This commit is contained in:
parent
900d0ce276
commit
ef3cc47f9f
@ -1508,10 +1508,8 @@ static void rec_varg(jit_State *J, BCReg dst, ptrdiff_t nresults)
|
|||||||
} else if (dst + nresults > J->maxslot) {
|
} else if (dst + nresults > J->maxslot) {
|
||||||
J->maxslot = dst + (BCReg)nresults;
|
J->maxslot = dst + (BCReg)nresults;
|
||||||
}
|
}
|
||||||
for (i = 0; i < nresults; i++) {
|
for (i = 0; i < nresults; i++)
|
||||||
J->base[dst+i] = i < nvararg ? J->base[i - nvararg - 1] : TREF_NIL;
|
J->base[dst+i] = i < nvararg ? getslot(J, i - nvararg - 1) : TREF_NIL;
|
||||||
lua_assert(J->base[dst+i] != 0);
|
|
||||||
}
|
|
||||||
} else { /* Unknown number of varargs passed to trace. */
|
} else { /* Unknown number of varargs passed to trace. */
|
||||||
TRef fr = emitir(IRTI(IR_SLOAD), 0, IRSLOAD_READONLY|IRSLOAD_FRAME);
|
TRef fr = emitir(IRTI(IR_SLOAD), 0, IRSLOAD_READONLY|IRSLOAD_FRAME);
|
||||||
int32_t frofs = 8*(1+numparams)+FRAME_VARG;
|
int32_t frofs = 8*(1+numparams)+FRAME_VARG;
|
||||||
|
Loading…
Reference in New Issue
Block a user