Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use x16 and x17 in ARM64PrivateLinkage #9877

Open
knn-k opened this issue Jun 14, 2020 · 2 comments
Open

Use x16 and x17 in ARM64PrivateLinkage #9877

knn-k opened this issue Jun 14, 2020 · 2 comments

Comments

@knn-k
Copy link
Contributor

knn-k commented Jun 14, 2020

AArch64 registers x16 and x17 are marked as ARM64_Reserved, and not used in ARM64PrivateLinkage.
They are intra-procedure-call scratch registers, IP0 and IP1, and they don't need to be preserved across calls.

Consider using these registers in ARM64PrivateLinkage.

@knn-k
Copy link
Contributor Author

knn-k commented Jun 18, 2020

Update the table in https://github.com/eclipse/openj9/blob/master/doc/diagnostics/CallingConventions.md when this is implemented.

@knn-k
Copy link
Contributor Author

knn-k commented Jul 7, 2020

x16 is destroyed by arm64CreateHelperTrampolines() and arm64CreateMethodTrampoline() in https://github.com/eclipse/openj9/blob/master/runtime/compiler/runtime/Trampoline.cpp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant