Simplifies storing snapshots to stack.
}
emit_movmroi(as, RID_BASE, ofs+4, irt_toitype(ir->t));
}
- } else if (s > secondbase) {
- emit_movmroi(as, RID_BASE, ofs+4, LJ_TNIL);
+ } else {
+ lua_assert(!(s > secondbase));
}
checkmclim(as);
}
#endif
J->base[top] = emitir(IRTG(IR_FRAME, IRT_PTR), trcont, trcont);
for (s = J->maxslot; s < top; s++)
- J->base[s] = 0;
+ J->base[s] = TREF_NIL;
return top+1;
}
}
}
}
- } else if (newbase) {
- setnilV(o); /* Clear unreferenced slots of newly added frames. */
+ } else {
+ lua_assert(!newbase);
}
}
if (newbase) L->base = newbase;