Fill gaps in frames (caused by metamethod calls) with nil.

Simplifies storing snapshots to stack.
This commit is contained in:
Mike Pall
2010-01-26 00:45:30 +01:00
parent 47f1bc80d8
commit 34d84f8836
3 changed files with 5 additions and 5 deletions

View File

@@ -259,8 +259,8 @@ void lj_snap_restore(jit_State *J, void *exptr)
}
}
}
} else if (newbase) {
setnilV(o); /* Clear unreferenced slots of newly added frames. */
} else {
lua_assert(!newbase);
}
}
if (newbase) L->base = newbase;