diff options
author | Mike Pall <mike> | 2010-02-14 17:47:03 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2010-02-14 17:47:03 +0100 |
commit | 8e38231f9ea0bd1185c0b9688e71cef52f96bb31 (patch) | |
tree | 36711cbf1769c62de80cbd338c7011a7c35ef062 /src/lj_dispatch.h | |
parent | c93138b59e8f28b3d412cd7ec0c6631fd27e3e1b (diff) | |
download | luajit-8e38231f9ea0bd1185c0b9688e71cef52f96bb31.tar.gz luajit-8e38231f9ea0bd1185c0b9688e71cef52f96bb31.tar.bz2 luajit-8e38231f9ea0bd1185c0b9688e71cef52f96bb31.zip |
Implement call hooks (zero-cost if disabled).
Diffstat (limited to 'src/lj_dispatch.h')
-rw-r--r-- | src/lj_dispatch.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lj_dispatch.h b/src/lj_dispatch.h index 865ee790..935fa821 100644 --- a/src/lj_dispatch.h +++ b/src/lj_dispatch.h | |||
@@ -26,7 +26,7 @@ typedef uint16_t HotCount; | |||
26 | #define GG_NUM_ASMFF 62 | 26 | #define GG_NUM_ASMFF 62 |
27 | 27 | ||
28 | #define GG_LEN_DDISP (BC__MAX + GG_NUM_ASMFF) | 28 | #define GG_LEN_DDISP (BC__MAX + GG_NUM_ASMFF) |
29 | #define GG_LEN_SDISP BC_FUNCC | 29 | #define GG_LEN_SDISP BC_FUNCF |
30 | #define GG_LEN_DISP (GG_LEN_DDISP + GG_LEN_SDISP) | 30 | #define GG_LEN_DISP (GG_LEN_DDISP + GG_LEN_SDISP) |
31 | 31 | ||
32 | /* Global state, main thread and extra fields are allocated together. */ | 32 | /* Global state, main thread and extra fields are allocated together. */ |
@@ -64,7 +64,8 @@ LJ_FUNC void lj_dispatch_init(GG_State *GG); | |||
64 | LJ_FUNC void lj_dispatch_init_hotcount(global_State *g); | 64 | LJ_FUNC void lj_dispatch_init_hotcount(global_State *g); |
65 | LJ_FUNC void lj_dispatch_update(global_State *g); | 65 | LJ_FUNC void lj_dispatch_update(global_State *g); |
66 | 66 | ||
67 | /* Instruction dispatch callback for instr/line hooks or when recording. */ | 67 | /* Instruction dispatch callback for hooks or when recording. */ |
68 | LJ_FUNCA void LJ_FASTCALL lj_dispatch_ins(lua_State *L, const BCIns *pc); | 68 | LJ_FUNCA void LJ_FASTCALL lj_dispatch_ins(lua_State *L, const BCIns *pc); |
69 | LJ_FUNCA ASMFunction LJ_FASTCALL lj_dispatch_call(lua_State *L, const BCIns *pc); | ||
69 | 70 | ||
70 | #endif | 71 | #endif |