Merge branch 'master' into v2.1
This commit is contained in:
commit
24c20c94e7
@ -2266,6 +2266,8 @@ void lj_record_ins(jit_State *J)
|
|||||||
{
|
{
|
||||||
BCReg s;
|
BCReg s;
|
||||||
TValue *tv = J->L->base;
|
TValue *tv = J->L->base;
|
||||||
|
ptrdiff_t delta = J->L->top - tv;
|
||||||
|
if (J->maxslot > (BCReg)delta) J->maxslot = (BCReg)delta;
|
||||||
for (s = 0; s < J->maxslot; s++) /* Constify stack slots (if any). */
|
for (s = 0; s < J->maxslot; s++) /* Constify stack slots (if any). */
|
||||||
if (J->base[s] == TREF_NIL && !tvisnil(&tv[s]))
|
if (J->base[s] == TREF_NIL && !tvisnil(&tv[s]))
|
||||||
J->base[s] = lj_record_constify(J, &tv[s]);
|
J->base[s] = lj_record_constify(J, &tv[s]);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user