summaryrefslogtreecommitdiff
path: root/src/lj_jit.h
diff options
context:
space:
mode:
authorMike Pall <mike>2013-12-25 02:55:25 +0100
committerMike Pall <mike>2013-12-25 02:55:25 +0100
commitb5d741fa7e11a2a58df65f3c71489c58f8758f75 (patch)
tree3c33ec24c8fd363ca2ce797c998b21a8a0e39a5b /src/lj_jit.h
parent6e02c210c485791a5451cc74731acf319b2067bb (diff)
downloadluajit-b5d741fa7e11a2a58df65f3c71489c58f8758f75.tar.gz
luajit-b5d741fa7e11a2a58df65f3c71489c58f8758f75.tar.bz2
luajit-b5d741fa7e11a2a58df65f3c71489c58f8758f75.zip
Add trace stitching.
Diffstat (limited to 'src/lj_jit.h')
-rw-r--r--src/lj_jit.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lj_jit.h b/src/lj_jit.h
index cfb04aa7..52a216cc 100644
--- a/src/lj_jit.h
+++ b/src/lj_jit.h
@@ -97,6 +97,7 @@
97 _(\012, maxirconst, 500) /* Max. # of IR constants of a trace. */ \ 97 _(\012, maxirconst, 500) /* Max. # of IR constants of a trace. */ \
98 _(\007, maxside, 100) /* Max. # of side traces of a root trace. */ \ 98 _(\007, maxside, 100) /* Max. # of side traces of a root trace. */ \
99 _(\007, maxsnap, 500) /* Max. # of snapshots for a trace. */ \ 99 _(\007, maxsnap, 500) /* Max. # of snapshots for a trace. */ \
100 _(\011, minstitch, 0) /* Min. # of IR ins for a stitched trace. */ \
100 \ 101 \
101 _(\007, hotloop, 56) /* # of iter. to detect a hot loop/call. */ \ 102 _(\007, hotloop, 56) /* # of iter. to detect a hot loop/call. */ \
102 _(\007, hotexit, 10) /* # of taken exits to start a side trace. */ \ 103 _(\007, hotexit, 10) /* # of taken exits to start a side trace. */ \
@@ -202,7 +203,8 @@ typedef enum {
202 LJ_TRLINK_UPREC, /* Up-recursion. */ 203 LJ_TRLINK_UPREC, /* Up-recursion. */
203 LJ_TRLINK_DOWNREC, /* Down-recursion. */ 204 LJ_TRLINK_DOWNREC, /* Down-recursion. */
204 LJ_TRLINK_INTERP, /* Fallback to interpreter. */ 205 LJ_TRLINK_INTERP, /* Fallback to interpreter. */
205 LJ_TRLINK_RETURN /* Return to interpreter. */ 206 LJ_TRLINK_RETURN, /* Return to interpreter. */
207 LJ_TRLINK_STITCH /* Trace stitching. */
206} TraceLink; 208} TraceLink;
207 209
208/* Trace object. */ 210/* Trace object. */