Skip to content

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

Draft
volodya-lombrozo wants to merge 13 commits intoobjectionary:masterfrom
volodya-lombrozo:750_stack_map_frames
Draft

feat(#750): Compute Stack Map Frames#832
volodya-lombrozo wants to merge 13 commits intoobjectionary:masterfrom
volodya-lombrozo:750_stack_map_frames

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