diff options
author | Mike Pall <mike> | 2010-01-26 00:45:30 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2010-01-26 00:45:30 +0100 |
commit | 34d84f88368953ac0bf1e535b792ab2dd144bc60 (patch) | |
tree | 190d9da9908f551b5861a3e6ea6c43b028ae308d /src/lj_snap.c | |
parent | 47f1bc80d829e472f898609e2c44022f838a3eb3 (diff) | |
download | luajit-34d84f88368953ac0bf1e535b792ab2dd144bc60.tar.gz luajit-34d84f88368953ac0bf1e535b792ab2dd144bc60.tar.bz2 luajit-34d84f88368953ac0bf1e535b792ab2dd144bc60.zip |
Fill gaps in frames (caused by metamethod calls) with nil.
Simplifies storing snapshots to stack.
Diffstat (limited to 'src/lj_snap.c')
-rw-r--r-- | src/lj_snap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lj_snap.c b/src/lj_snap.c index c2aff3db..f262e1c9 100644 --- a/src/lj_snap.c +++ b/src/lj_snap.c | |||
@@ -259,8 +259,8 @@ void lj_snap_restore(jit_State *J, void *exptr) | |||
259 | } | 259 | } |
260 | } | 260 | } |
261 | } | 261 | } |
262 | } else if (newbase) { | 262 | } else { |
263 | setnilV(o); /* Clear unreferenced slots of newly added frames. */ | 263 | lua_assert(!newbase); |
264 | } | 264 | } |
265 | } | 265 | } |
266 | if (newbase) L->base = newbase; | 266 | if (newbase) L->base = newbase; |