diff options
author | Mike Pall <mike> | 2010-02-04 03:08:29 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2010-02-04 03:08:29 +0100 |
commit | 7256690364a2c9a5e9269ffd89bc132ee188480d (patch) | |
tree | 20d8a6a37fb64492e12407ee412b4c2f10137e93 /src/lj_jit.h | |
parent | 78f5e2ffd34e01626b910341a7808ea4be8a6d0d (diff) | |
download | luajit-7256690364a2c9a5e9269ffd89bc132ee188480d.tar.gz luajit-7256690364a2c9a5e9269ffd89bc132ee188480d.tar.bz2 luajit-7256690364a2c9a5e9269ffd89bc132ee188480d.zip |
Add shadow frame link stack for trace recorder.
Simplifies snapshots. Prerequisite for pre-call snapshots.
Increases consistency for fast function calls, too.
Diffstat (limited to 'src/lj_jit.h')
-rw-r--r-- | src/lj_jit.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lj_jit.h b/src/lj_jit.h index 1e029182..229642a5 100644 --- a/src/lj_jit.h +++ b/src/lj_jit.h | |||
@@ -114,7 +114,7 @@ typedef struct SnapShot { | |||
114 | IRRef1 ref; /* First IR ref for this snapshot. */ | 114 | IRRef1 ref; /* First IR ref for this snapshot. */ |
115 | uint8_t nslots; /* Number of valid slots. */ | 115 | uint8_t nslots; /* Number of valid slots. */ |
116 | uint8_t nent; /* Number of compressed entries. */ | 116 | uint8_t nent; /* Number of compressed entries. */ |
117 | uint8_t nframelinks; /* Number of frame links. */ | 117 | uint8_t depth; /* Number of frame links. */ |
118 | uint8_t count; /* Count of taken exits for this snapshot. */ | 118 | uint8_t count; /* Count of taken exits for this snapshot. */ |
119 | } SnapShot; | 119 | } SnapShot; |
120 | 120 | ||
@@ -252,6 +252,7 @@ typedef struct jit_State { | |||
252 | 252 | ||
253 | IRRef1 chain[IR__MAX]; /* IR instruction skip-list chain anchors. */ | 253 | IRRef1 chain[IR__MAX]; /* IR instruction skip-list chain anchors. */ |
254 | TRef slot[LJ_MAX_JSLOTS+LJ_STACK_EXTRA]; /* Stack slot map. */ | 254 | TRef slot[LJ_MAX_JSLOTS+LJ_STACK_EXTRA]; /* Stack slot map. */ |
255 | SnapEntry frame[LJ_MAX_JFRAME+2]; /* Frame link stack. */ | ||
255 | 256 | ||
256 | int32_t param[JIT_P__MAX]; /* JIT engine parameters. */ | 257 | int32_t param[JIT_P__MAX]; /* JIT engine parameters. */ |
257 | 258 | ||