[code-reflection] Integrated: Code transformer

Paul Sandoz psandoz at openjdk.org
Fri Nov 21 15:57:39 UTC 2025


On Thu, 20 Nov 2025 23:50:52 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:

> Rename `OpTransformer` to `CodeTransformer`, and `CopyContext` to `CodeContext`.
> 
> Add a simplified operation transformer which is composed into a code transformer, for cases where operations are mostly replaced with one or more other operations (replacing with zero other operations is also possible). In such cases it is not necessary to deal with the code context and value mappings, nor return the block builder, as is required with a code transformer.

This pull request has now been integrated.

Changeset: 5ab24f54
Author:    Paul Sandoz <psandoz at openjdk.org>
URL:       https://git.openjdk.org/babylon/commit/5ab24f54fcdea1aee8b7af1eb14ca3913b628b3a
Stats:     2021 lines in 148 files changed: 463 ins; 220 del; 1338 mod

Code transformer

Reviewed-by: mcimadamore, asotona

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

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


More information about the babylon-dev mailing list