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 the same buffer for arguments and return values #12

Open
JakeEhrlich opened this issue Sep 1, 2024 · 0 comments
Open

Use the same buffer for arguments and return values #12

JakeEhrlich opened this issue Sep 1, 2024 · 0 comments

Comments

@JakeEhrlich
Copy link
Owner

Right now we use x0 to pass an array of arguments and we use x2 to pass the return buffer. The return buffer will (almost?) always be larger than the argument list because a guard could fail straight away. Additionally after the arguments are passed in we don't need to keep them. This would let us free up x2 and only x0 would be unavailable (which we could solve later by spilling x0)

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

No branches or pull requests

1 participant