-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JitArm64: Use GetRegWithPreference for EmitBackpatchRoutine addr
I'm adding a new function to the register cache called GetRegWithPreference. If the passed-in register is unlocked, it gets locked. Otherwise, GetReg is called. The function also has a GetScopedRegWithPreference variant. Then, I'm making JitArm64 call this function when allocating an address register for use with EmitBackpatchRoutine. This way, when register pressure is low we can use the optimal register, and when register pressure is high (but not completely full) we can sacrifice a bit of farcode size for not having to evict a register from the register cache.
- Loading branch information
Showing
5 changed files
with
78 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters