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

Improve Variable#increment() bytecode generation #17

Merged
merged 1 commit into from
Nov 14, 2023

Conversation

pettyjamesm
Copy link
Contributor

Modifies Variable#increment() to generate IINC instructions where possible instead of multi-bytecode sequences of load, add, and store that it previously used. Also fixes handling of incrementing primitive long values to avoid failing as a result of a type mismatch between the variable's long type and the type of constantInt(1).

Modifies Variable#increment() to generate IINC instructions where
possible instead of multi-bytecode sequences of load, add, store that it
previously used. Also fixes handling of incrementing primitive long values to
avoid failing as a result of a type mismatch between the variable's long type
and the type of constantInt(1).
@dain dain merged commit 45bf10f into airlift:master Nov 14, 2023
1 check passed
@pettyjamesm pettyjamesm deleted the improve-variable-increment branch November 14, 2023 13:59
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

Successfully merging this pull request may close these issues.

2 participants