-
Notifications
You must be signed in to change notification settings - Fork 723
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable inlining of non-native Unsafe unaligned getters and setters
For Unsafe_getXUnaligned methods, which are wrappers to native methods that contain some runtime checks, we benefit from directly inlining them in inlineUnsafeCall as if they were their underlying native methods, if we can determine that it is safe to do so. This commit introduces the changes necessary to correctly handle such non-native unaligned getters and setters, and enables transforming them to simple loads and stores based on whether the platform supports aligned access only. Signed-off-by: Nazim Bhuiyan <[email protected]>
- Loading branch information
Showing
2 changed files
with
49 additions
and
8 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