mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Fix data-flow analysis for BC_ITERC.
This commit is contained in:
parent
642ae06916
commit
a1c887e3b9
@ -217,7 +217,8 @@ static BCReg snap_usedef(jit_State *J, uint8_t *udf,
|
|||||||
if (op >= BC_CALLM && op <= BC_VARG) {
|
if (op >= BC_CALLM && op <= BC_VARG) {
|
||||||
BCReg top = (op == BC_CALLM || op == BC_CALLMT || bc_c(ins) == 0) ?
|
BCReg top = (op == BC_CALLM || op == BC_CALLMT || bc_c(ins) == 0) ?
|
||||||
maxslot : (bc_a(ins) + bc_c(ins));
|
maxslot : (bc_a(ins) + bc_c(ins));
|
||||||
for (s = bc_a(ins); s < top; s++) USE_SLOT(s);
|
s = bc_a(ins) - ((op == BC_ITERC || op == BC_ITERN) ? 3 : 0);
|
||||||
|
for (; s < top; s++) USE_SLOT(s);
|
||||||
for (; s < maxslot; s++) DEF_SLOT(s);
|
for (; s < maxslot; s++) DEF_SLOT(s);
|
||||||
if (op == BC_CALLT || op == BC_CALLMT) {
|
if (op == BC_CALLT || op == BC_CALLMT) {
|
||||||
for (s = 0; s < bc_a(ins); s++) DEF_SLOT(s);
|
for (s = 0; s < bc_a(ins); s++) DEF_SLOT(s);
|
||||||
|
Loading…
Reference in New Issue
Block a user