[code-reflection] RFR: BytecodeLift directly calculating local variables + related BytecodeGenerator fixes [v7]

Adam Sotona asotona at openjdk.org
Tue Aug 27 12:40:33 UTC 2024


> Proposal of `BytecodeLift` implementation skipping intermediate use of `SlotOp` and `SlotSSA` transformation.
> `LocalsTypeMapper` already handled majority of the variable mapping and its complexity grew to cover more use cases.
> This patch adds a very simple slots model to `LocalsTypeMapper` to compute variables out of the bytecode directly .
> `BytecodeLift` now knows all necessary information to emit relevant `VarOp` and `VarAccessOp`  directly.
> 
> Stability of `TestSmallCorpus` has slightly degraded, however it is just a temporary regression.
> 
> Please review.
> 
> Thanks,
> Adam

Adam Sotona has updated the pull request incrementally with one additional commit since the last revision:

  LocalsTypeMapper.Link moved under LocalsTypeMapper.Slot

-------------

Changes:
  - all: https://git.openjdk.org/babylon/pull/218/files
  - new: https://git.openjdk.org/babylon/pull/218/files/fb2b937c..c10f265b

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=babylon&pr=218&range=06
 - incr: https://webrevs.openjdk.org/?repo=babylon&pr=218&range=05-06

  Stats: 23 lines in 1 file changed: 11 ins; 9 del; 3 mod
  Patch: https://git.openjdk.org/babylon/pull/218.diff
  Fetch: git fetch https://git.openjdk.org/babylon.git pull/218/head:pull/218

PR: https://git.openjdk.org/babylon/pull/218


More information about the babylon-dev mailing list