summaryrefslogtreecommitdiff
path: root/src/lj_target.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_target.h')
-rw-r--r--src/lj_target.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lj_target.h b/src/lj_target.h
index 8c91bf7e..bfa1c9f0 100644
--- a/src/lj_target.h
+++ b/src/lj_target.h
@@ -129,4 +129,12 @@ typedef uint32_t RegCost;
129#error "Missing include for target CPU" 129#error "Missing include for target CPU"
130#endif 130#endif
131 131
132/* Return the address of an exit stub. */
133static LJ_AINLINE MCode *exitstub_addr(jit_State *J, ExitNo exitno)
134{
135 lua_assert(J->exitstubgroup[exitno / EXITSTUBS_PER_GROUP] != NULL);
136 return (MCode *)((char *)J->exitstubgroup[exitno / EXITSTUBS_PER_GROUP] +
137 EXITSTUB_SPACING*(exitno % EXITSTUBS_PER_GROUP));
138}
139
132#endif 140#endif