[code-reflection] RFR: BytecodeLift with NormalizerBlockTransformer + fix + ExceptionTableCompactor [v2]

Paul Sandoz psandoz at openjdk.org
Mon Sep 30 16:12:54 UTC 2024


On Mon, 30 Sep 2024 08:59:12 GMT, Adam Sotona <asotona at openjdk.org> wrote:

>> Minor fix of `NormalizerBlockTransformer` to skip exception handlers.
>> `NormalizerBlockTransformer` plugged into `BytecodeLift`.
>> Implementation of `ExceptionTableCompactor` plugged into `BytecodeGenerator`.
>> 
>> Please review.
>> 
>> Thanks,
>> Adam
>
> Adam Sotona has updated the pull request incrementally with one additional commit since the last revision:
> 
>   added TestNormalizeBlocksTransformer test to keep unused exception handler block parameter

It just occurred to me that we could also change the "specification" of `exception.region.enter` such that a catch block without a block parameter means that the exception is ignored. That seems less fragile. Is that easy to support in the bytecode generator? WDYT?

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

PR Comment: https://git.openjdk.org/babylon/pull/242#issuecomment-2383618527


More information about the babylon-dev mailing list