summaryrefslogtreecommitdiff
path: root/src/lj_jit.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_jit.h')
-rw-r--r--src/lj_jit.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lj_jit.h b/src/lj_jit.h
index c783922c..36e60113 100644
--- a/src/lj_jit.h
+++ b/src/lj_jit.h
@@ -119,8 +119,10 @@ typedef struct SnapShot {
119} SnapShot; 119} SnapShot;
120 120
121#define SNAPCOUNT_DONE 255 /* Already compiled and linked a side trace. */ 121#define SNAPCOUNT_DONE 255 /* Already compiled and linked a side trace. */
122#define snap_ref(sn) ((IRRef)(IRRef1)(sn)) 122
123#define snap_ridsp(sn) ((sn) >> 16) 123/* Snapshot entry. */
124typedef uint32_t SnapEntry;
125#define snap_ref(sn) ((sn) & 0xffff)
124 126
125/* Snapshot and exit numbers. */ 127/* Snapshot and exit numbers. */
126typedef uint32_t SnapNo; 128typedef uint32_t SnapNo;
@@ -138,7 +140,7 @@ typedef struct Trace {
138 IRRef nins; /* Next IR instruction. Biased with REF_BIAS. */ 140 IRRef nins; /* Next IR instruction. Biased with REF_BIAS. */
139 IRRef nk; /* Lowest IR constant. Biased with REF_BIAS. */ 141 IRRef nk; /* Lowest IR constant. Biased with REF_BIAS. */
140 SnapShot *snap; /* Snapshot array. */ 142 SnapShot *snap; /* Snapshot array. */
141 IRRef2 *snapmap; /* Snapshot map. */ 143 SnapEntry *snapmap; /* Snapshot map. */
142 uint16_t nsnap; /* Number of snapshots. */ 144 uint16_t nsnap; /* Number of snapshots. */
143 uint16_t nsnapmap; /* Number of snapshot map elements. */ 145 uint16_t nsnapmap; /* Number of snapshot map elements. */
144 GCRef startpt; /* Starting prototype. */ 146 GCRef startpt; /* Starting prototype. */
@@ -223,7 +225,7 @@ typedef struct jit_State {
223 IRRef loopref; /* Last loop reference or ref of final LOOP (or 0). */ 225 IRRef loopref; /* Last loop reference or ref of final LOOP (or 0). */
224 226
225 SnapShot *snapbuf; /* Temp. snapshot buffer. */ 227 SnapShot *snapbuf; /* Temp. snapshot buffer. */
226 IRRef2 *snapmapbuf; /* Temp. snapshot map buffer. */ 228 SnapEntry *snapmapbuf; /* Temp. snapshot map buffer. */
227 MSize sizesnap; /* Size of temp. snapshot buffer. */ 229 MSize sizesnap; /* Size of temp. snapshot buffer. */
228 MSize sizesnapmap; /* Size of temp. snapshot map buffer. */ 230 MSize sizesnapmap; /* Size of temp. snapshot map buffer. */
229 231