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

feat(#750): Compute Stack Map Frames #832

Draft
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

volodya-lombrozo
Copy link
Member

@volodya-lombrozo volodya-lombrozo commented Nov 2, 2024

In this PR we sucessfully compute stack map frames for the generated bytecode.

Closes: #750.


PR-Codex overview

This PR focuses on enhancing the handling of stack map frames and exception types in the bytecode representation of the Eolang language. It introduces new methods for computing frames and improves the management of local variables and stack elements.

Detailed summary

  • Added descriptor() method in BytecodeTryCatchBlock to return the exception type.
  • Introduced computeFrames() and currentFrames() methods in BytecodeMethod for frame computations.
  • Enhanced elementType() method in BytecodeInstruction to determine local variable types.
  • Updated view() method in BytecodeFrame to improve frame representation.
  • Added methods in BytecodeFrame for stack and local variable comparisons.
  • Created StackMapFrames class for computing stack map frames.
  • Implemented test methods for verifying stack map frame calculations.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

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.

CustomClassWriter.java:104-109: Compute StackMap frames...
1 participant