summaryrefslogtreecommitdiff
path: root/src/lj_dispatch.h
diff options
context:
space:
mode:
authorMike Pall <mike>2010-02-14 20:48:33 +0100
committerMike Pall <mike>2010-02-14 20:48:33 +0100
commit2a2f8ed6a144fe763379f9cf0eb6a45750432a47 (patch)
tree5b2b97d2f3dd22c80a0840132df5b3d7fc136484 /src/lj_dispatch.h
parent8e38231f9ea0bd1185c0b9688e71cef52f96bb31 (diff)
downloadluajit-2a2f8ed6a144fe763379f9cf0eb6a45750432a47.tar.gz
luajit-2a2f8ed6a144fe763379f9cf0eb6a45750432a47.tar.bz2
luajit-2a2f8ed6a144fe763379f9cf0eb6a45750432a47.zip
Implement return hooks for Lua functions (zero-cost if disabled).
Diffstat (limited to 'src/lj_dispatch.h')
-rw-r--r--src/lj_dispatch.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lj_dispatch.h b/src/lj_dispatch.h
index 935fa821..1aa7dae0 100644
--- a/src/lj_dispatch.h
+++ b/src/lj_dispatch.h
@@ -66,6 +66,7 @@ LJ_FUNC void lj_dispatch_update(global_State *g);
66 66
67/* Instruction dispatch callback for 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); 69LJ_FUNCA ASMFunction LJ_FASTCALL lj_dispatch_call(lua_State *L, const BCIns*pc);
70LJ_FUNCA void LJ_FASTCALL lj_dispatch_return(lua_State *L, const BCIns *pc);
70 71
71#endif 72#endif