[code-reflection] RFR: BytecodeLift directly calculating local variables + related BytecodeGenerator fixes [v2]
    Adam Sotona 
    asotona at openjdk.org
       
    Fri Aug 23 13:01:58 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:
  added test
-------------
Changes:
  - all: https://git.openjdk.org/babylon/pull/218/files
  - new: https://git.openjdk.org/babylon/pull/218/files/13b21cca..1e73c040
Webrevs:
 - full: https://webrevs.openjdk.org/?repo=babylon&pr=218&range=01
 - incr: https://webrevs.openjdk.org/?repo=babylon&pr=218&range=00-01
  Stats: 13 lines in 1 file changed: 13 ins; 0 del; 0 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