diff options
author | Mike Pall <mike> | 2011-10-24 16:13:12 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2011-10-24 16:13:12 +0200 |
commit | cb1dd159e3b25e23cb8aa2ba9b6da76bb17398ec (patch) | |
tree | 9605b1c4e9800cfe7d33f6e7cec989365d98e58c /src/lj_target.h | |
parent | a0d782755482483c09e919a51c396322dd228bf2 (diff) | |
download | luajit-cb1dd159e3b25e23cb8aa2ba9b6da76bb17398ec.tar.gz luajit-cb1dd159e3b25e23cb8aa2ba9b6da76bb17398ec.tar.bz2 luajit-cb1dd159e3b25e23cb8aa2ba9b6da76bb17398ec.zip |
PPC: Add support for per-trace exit stubs.
Diffstat (limited to '')
-rw-r--r-- | src/lj_target.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lj_target.h b/src/lj_target.h index 410ad0a0..33feb17c 100644 --- a/src/lj_target.h +++ b/src/lj_target.h | |||
@@ -131,6 +131,7 @@ typedef uint32_t RegCost; | |||
131 | #error "Missing include for target CPU" | 131 | #error "Missing include for target CPU" |
132 | #endif | 132 | #endif |
133 | 133 | ||
134 | #ifdef EXITSTUBS_PER_GROUP | ||
134 | /* Return the address of an exit stub. */ | 135 | /* Return the address of an exit stub. */ |
135 | static LJ_AINLINE MCode *exitstub_addr(jit_State *J, ExitNo exitno) | 136 | static LJ_AINLINE MCode *exitstub_addr(jit_State *J, ExitNo exitno) |
136 | { | 137 | { |
@@ -138,5 +139,6 @@ static LJ_AINLINE MCode *exitstub_addr(jit_State *J, ExitNo exitno) | |||
138 | return (MCode *)((char *)J->exitstubgroup[exitno / EXITSTUBS_PER_GROUP] + | 139 | return (MCode *)((char *)J->exitstubgroup[exitno / EXITSTUBS_PER_GROUP] + |
139 | EXITSTUB_SPACING*(exitno % EXITSTUBS_PER_GROUP)); | 140 | EXITSTUB_SPACING*(exitno % EXITSTUBS_PER_GROUP)); |
140 | } | 141 | } |
142 | #endif | ||
141 | 143 | ||
142 | #endif | 144 | #endif |