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

Add inlining of #whileTrue:/#whileFalse: #33

Merged
merged 6 commits into from
Aug 1, 2024

Conversation

smarr
Copy link
Member

@smarr smarr commented Jul 31, 2024

This PR uses the infrastructure introduced previously in #32 to implement bytecode-level inlining in the same style as in TruffleSOM and PySOM.

One improvement here is that we remove blocks from the literals, too, which leads in the tests to use more use of the specialized bytecodes.

Generally, the new introduced bytecodes for jumps have all the same length, and exist in two variants, one that only uses one byte, i.e., shorted jumps, and the other that uses both.

This also introduces keeping track of the last 4 bytecodes, which is useful for other optimizations later on, too.

smarr added 6 commits August 1, 2024 00:45
- add new bytecodes
- add basic check of consistency of bytecode definitions
- field access bytecodes don’t use context argument, which is different from other SOMs

Signed-off-by: Stefan Marr <[email protected]>
Signed-off-by: Stefan Marr <[email protected]>
@smarr
Copy link
Member Author

smarr commented Jul 31, 2024

@smarr smarr merged commit efaa0bf into SOM-st:master Aug 1, 2024
19 checks passed
@smarr smarr deleted the opt/while-true-inlining branch August 1, 2024 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant