aboutsummaryrefslogtreecommitdiff
path: root/src/lj_snap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_snap.c')
-rw-r--r--src/lj_snap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lj_snap.c b/src/lj_snap.c
index e891f7a9..73f25004 100644
--- a/src/lj_snap.c
+++ b/src/lj_snap.c
@@ -129,12 +129,12 @@ static void snapshot_stack(jit_State *J, SnapShot *snap, MSize nsnapmap)
129 p = &J->cur.snapmap[nsnapmap]; 129 p = &J->cur.snapmap[nsnapmap];
130 nent = snapshot_slots(J, p, nslots); 130 nent = snapshot_slots(J, p, nslots);
131 snap->topslot = (uint8_t)snapshot_framelinks(J, p + nent); 131 snap->topslot = (uint8_t)snapshot_framelinks(J, p + nent);
132 snap->mapofs = (uint16_t)nsnapmap; 132 snap->mapofs = (uint32_t)nsnapmap;
133 snap->ref = (IRRef1)J->cur.nins; 133 snap->ref = (IRRef1)J->cur.nins;
134 snap->nent = (uint8_t)nent; 134 snap->nent = (uint8_t)nent;
135 snap->nslots = (uint8_t)nslots; 135 snap->nslots = (uint8_t)nslots;
136 snap->count = 0; 136 snap->count = 0;
137 J->cur.nsnapmap = (uint16_t)(nsnapmap + nent + 1 + J->framedepth); 137 J->cur.nsnapmap = (uint32_t)(nsnapmap + nent + 1 + J->framedepth);
138} 138}
139 139
140/* Add or merge a snapshot. */ 140/* Add or merge a snapshot. */
@@ -294,7 +294,7 @@ void lj_snap_shrink(jit_State *J)
294 snap->nent = (uint8_t)m; 294 snap->nent = (uint8_t)m;
295 nlim = J->cur.nsnapmap - snap->mapofs - 1; 295 nlim = J->cur.nsnapmap - snap->mapofs - 1;
296 while (n <= nlim) map[m++] = map[n++]; /* Move PC + frame links down. */ 296 while (n <= nlim) map[m++] = map[n++]; /* Move PC + frame links down. */
297 J->cur.nsnapmap = (uint16_t)(snap->mapofs + m); /* Free up space in map. */ 297 J->cur.nsnapmap = (uint32_t)(snap->mapofs + m); /* Free up space in map. */
298} 298}
299 299
300/* -- Snapshot access ----------------------------------------------------- */ 300/* -- Snapshot access ----------------------------------------------------- */