summaryrefslogtreecommitdiff
path: root/src/lj_dispatch.h
diff options
context:
space:
mode:
authorMike Pall <mike>2010-02-14 17:47:03 +0100
committerMike Pall <mike>2010-02-14 17:47:03 +0100
commit8e38231f9ea0bd1185c0b9688e71cef52f96bb31 (patch)
tree36711cbf1769c62de80cbd338c7011a7c35ef062 /src/lj_dispatch.h
parentc93138b59e8f28b3d412cd7ec0c6631fd27e3e1b (diff)
downloadluajit-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.h5
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);
64LJ_FUNC void lj_dispatch_init_hotcount(global_State *g); 64LJ_FUNC void lj_dispatch_init_hotcount(global_State *g);
65LJ_FUNC void lj_dispatch_update(global_State *g); 65LJ_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. */
68LJ_FUNCA void LJ_FASTCALL lj_dispatch_ins(lua_State *L, const BCIns *pc); 68LJ_FUNCA void LJ_FASTCALL lj_dispatch_ins(lua_State *L, const BCIns *pc);
69LJ_FUNCA ASMFunction LJ_FASTCALL lj_dispatch_call(lua_State *L, const BCIns *pc);
69 70
70#endif 71#endif