diff options
Diffstat (limited to 'src/lj_jit.h')
-rw-r--r-- | src/lj_jit.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lj_jit.h b/src/lj_jit.h index 8f87899c..e80547ab 100644 --- a/src/lj_jit.h +++ b/src/lj_jit.h | |||
@@ -139,8 +139,8 @@ typedef struct SnapShot { | |||
139 | IRRef1 ref; /* First IR ref for this snapshot. */ | 139 | IRRef1 ref; /* First IR ref for this snapshot. */ |
140 | uint8_t nslots; /* Number of valid slots. */ | 140 | uint8_t nslots; /* Number of valid slots. */ |
141 | uint8_t nent; /* Number of compressed entries. */ | 141 | uint8_t nent; /* Number of compressed entries. */ |
142 | uint8_t depth; /* Number of frame links. */ | ||
143 | uint8_t count; /* Count of taken exits for this snapshot. */ | 142 | uint8_t count; /* Count of taken exits for this snapshot. */ |
143 | uint8_t unused; | ||
144 | } SnapShot; | 144 | } SnapShot; |
145 | 145 | ||
146 | #define SNAPCOUNT_DONE 255 /* Already compiled and linked a side trace. */ | 146 | #define SNAPCOUNT_DONE 255 /* Already compiled and linked a side trace. */ |
@@ -224,6 +224,14 @@ typedef struct GCtrace { | |||
224 | 224 | ||
225 | LJ_STATIC_ASSERT(offsetof(GChead, gclist) == offsetof(GCtrace, gclist)); | 225 | LJ_STATIC_ASSERT(offsetof(GChead, gclist) == offsetof(GCtrace, gclist)); |
226 | 226 | ||
227 | static LJ_AINLINE MSize snap_nextofs(GCtrace *T, SnapShot *snap) | ||
228 | { | ||
229 | if (snap+1 == &T->snap[T->nsnap]) | ||
230 | return T->nsnapmap; | ||
231 | else | ||
232 | return (snap+1)->mapofs; | ||
233 | } | ||
234 | |||
227 | /* Round-robin penalty cache for bytecodes leading to aborted traces. */ | 235 | /* Round-robin penalty cache for bytecodes leading to aborted traces. */ |
228 | typedef struct HotPenalty { | 236 | typedef struct HotPenalty { |
229 | MRef pc; /* Starting bytecode PC. */ | 237 | MRef pc; /* Starting bytecode PC. */ |