PPC: Add support for per-trace exit stubs.

This commit is contained in:
Mike Pall
2011-10-24 16:13:12 +02:00
parent a0d7827554
commit cb1dd159e3
3 changed files with 40 additions and 6 deletions

View File

@@ -131,6 +131,7 @@ typedef uint32_t RegCost;
#error "Missing include for target CPU"
#endif
#ifdef EXITSTUBS_PER_GROUP
/* Return the address of an exit stub. */
static LJ_AINLINE MCode *exitstub_addr(jit_State *J, ExitNo exitno)
{
@@ -138,5 +139,6 @@ static LJ_AINLINE MCode *exitstub_addr(jit_State *J, ExitNo exitno)
return (MCode *)((char *)J->exitstubgroup[exitno / EXITSTUBS_PER_GROUP] +
EXITSTUB_SPACING*(exitno % EXITSTUBS_PER_GROUP));
}
#endif
#endif