aboutsummaryrefslogtreecommitdiff
path: root/src/lj_snap.c
diff options
context:
space:
mode:
authorMike Pall <mike>2020-10-12 15:51:31 +0200
committerMike Pall <mike>2020-10-12 15:51:31 +0200
commit675e08cf069725a004284b4e1e67fbf0e8fcb4dd (patch)
tree5650c89fee60c6a0e41a3fed713dff094e7660fd /src/lj_snap.c
parent4bb2e4a547330c59adadf206451944921219c6ed (diff)
parent5c46f47736f7609be407c88d531ecd1689d40a79 (diff)
downloadluajit-675e08cf069725a004284b4e1e67fbf0e8fcb4dd.tar.gz
luajit-675e08cf069725a004284b4e1e67fbf0e8fcb4dd.tar.bz2
luajit-675e08cf069725a004284b4e1e67fbf0e8fcb4dd.zip
Merge branch 'master' into v2.1
Diffstat (limited to 'src/lj_snap.c')
-rw-r--r--src/lj_snap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lj_snap.c b/src/lj_snap.c
index f1358cf2..45e2008f 100644
--- a/src/lj_snap.c
+++ b/src/lj_snap.c
@@ -121,6 +121,9 @@ static MSize snapshot_framelinks(jit_State *J, SnapEntry *map, uint8_t *topslot)
121 MSize f = 0; 121 MSize f = 0;
122 map[f++] = SNAP_MKPC(J->pc); /* The current PC is always the first entry. */ 122 map[f++] = SNAP_MKPC(J->pc); /* The current PC is always the first entry. */
123#endif 123#endif
124 lj_assertJ(!J->pt ||
125 (J->pc >= proto_bc(J->pt) &&
126 J->pc < proto_bc(J->pt) + J->pt->sizebc), "bad snapshot PC");
124 while (frame > lim) { /* Backwards traversal of all frames above base. */ 127 while (frame > lim) { /* Backwards traversal of all frames above base. */
125 if (frame_islua(frame)) { 128 if (frame_islua(frame)) {
126#if !LJ_FR2 129#if !LJ_FR2