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

Fix super-instructions for jumps #156

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

PalumboN
Copy link
Contributor

@PalumboN PalumboN commented Jul 4, 2024

Fix super-instructions to support bytecode jumps. There were two main problems:

  1. Regarding the annotateBytecode:, there were 2 for the same super-bytecode, at the end. I added a pass DRAnnotateBytecodeInstructionCoalescing To move all of these instructions at the beginning. I'm not sure about this, I left some comments.

  2. When another bytecode jumps to the middle of the super-instruction (to the 2nd bytecode). It is not managing correctly the fixups. Now the superinstruction is avoided on those cases. I couldn't make it work as I wanted.

You can see the changes in DruidTestRTLCompiler to see the result of these fixes.

DruidJIT: pharo-project/pharo-vm#831

@PalumboN PalumboN requested a review from guillep July 4, 2024 13:13
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.

None yet

1 participant