aboutsummaryrefslogtreecommitdiff
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, 9 insertions, 1 deletions
diff --git a/src/lj_jit.h b/src/lj_jit.h
index 6c930034..55d6d0df 100644
--- a/src/lj_jit.h
+++ b/src/lj_jit.h
@@ -104,9 +104,15 @@ typedef enum {
104 LJ_TRACE_START, /* New trace started. */ 104 LJ_TRACE_START, /* New trace started. */
105 LJ_TRACE_END, /* End of trace. */ 105 LJ_TRACE_END, /* End of trace. */
106 LJ_TRACE_ASM, /* Assemble trace. */ 106 LJ_TRACE_ASM, /* Assemble trace. */
107 LJ_TRACE_ERR, /* Trace aborted with error. */ 107 LJ_TRACE_ERR /* Trace aborted with error. */
108} TraceState; 108} TraceState;
109 109
110/* Post-processing action. */
111typedef enum {
112 LJ_POST_NONE, /* No action. */
113 LJ_POST_FIXGUARD /* Fixup and emit pending guard. */
114} PostProc;
115
110/* Machine code type. */ 116/* Machine code type. */
111typedef uint8_t MCode; 117typedef uint8_t MCode;
112 118
@@ -284,6 +290,8 @@ typedef struct jit_State {
284 SnapEntry *snapmapbuf; /* Temp. snapshot map buffer. */ 290 SnapEntry *snapmapbuf; /* Temp. snapshot map buffer. */
285 MSize sizesnapmap; /* Size of temp. snapshot map buffer. */ 291 MSize sizesnapmap; /* Size of temp. snapshot map buffer. */
286 292
293 PostProc postproc; /* Required post-processing after execution. */
294
287 GCRef *trace; /* Array of traces. */ 295 GCRef *trace; /* Array of traces. */
288 TraceNo freetrace; /* Start of scan for next free trace. */ 296 TraceNo freetrace; /* Start of scan for next free trace. */
289 MSize sizetrace; /* Size of trace array. */ 297 MSize sizetrace; /* Size of trace array. */