aboutsummaryrefslogtreecommitdiff
path: root/src/lj_jit.h
diff options
context:
space:
mode:
authorMike Pall <mike>2011-11-20 13:23:25 +0100
committerMike Pall <mike>2011-11-20 13:23:25 +0100
commitdc2a39e46d9498c475eaf9ad7c4a8ae61a73094a (patch)
tree3c338e19b326cba92635ee9906804003cd996fa9 /src/lj_jit.h
parent726dc42c32cfbda89e1ad798a8de4984b5f7df7b (diff)
downloadluajit-dc2a39e46d9498c475eaf9ad7c4a8ae61a73094a.tar.gz
luajit-dc2a39e46d9498c475eaf9ad7c4a8ae61a73094a.tar.bz2
luajit-dc2a39e46d9498c475eaf9ad7c4a8ae61a73094a.zip
Get rid of snap->depth.
Diffstat (limited to 'src/lj_jit.h')
-rw-r--r--src/lj_jit.h10
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
225LJ_STATIC_ASSERT(offsetof(GChead, gclist) == offsetof(GCtrace, gclist)); 225LJ_STATIC_ASSERT(offsetof(GChead, gclist) == offsetof(GCtrace, gclist));
226 226
227static 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. */
228typedef struct HotPenalty { 236typedef struct HotPenalty {
229 MRef pc; /* Starting bytecode PC. */ 237 MRef pc; /* Starting bytecode PC. */