[code-reflection] RFR: Support storing the code that builds the code model [v22]

Mourad Abbay mabbay at openjdk.org
Thu Apr 3 18:27:49 UTC 2025


> In this PR we allow the user to decide how to store the code model. The first option is `TEXT`, if this is selected, we store the textual representation of the code model. The second option is `CODE_BUILDR`, if this is selected, we store the code that builds the code model. All work done here is around the second option, because the first option is already supported.

Mourad Abbay has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 25 additional commits since the last revision:

 - Merge branch 'code-reflection' into code-model-storage-option
 - Make return type of opMethod the same for all storage options
 - Changes in code due to making opMethod signature uniform
 - Make opMethod descriptor consistent for both storage options.
 - Don't rely on the assumption of 1d array
 - Merge branch 'code-reflection' into code-model-storage-option
 - Load OpFactory and TypeElementFactory before invocation of opMethod only if the opMethod has there params.
 - Fix the remaining compiler tests failures
 - Fix some of the test failures (3 remains)
 - Fix the remaining test failures of SwitchExpressionTest2
 - ... and 15 more: https://git.openjdk.org/babylon/compare/3d8aac9e...3e3095cb

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

Changes:
  - all: https://git.openjdk.org/babylon/pull/305/files
  - new: https://git.openjdk.org/babylon/pull/305/files/bf96a44a..3e3095cb

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=babylon&pr=305&range=21
 - incr: https://webrevs.openjdk.org/?repo=babylon&pr=305&range=20-21

  Stats: 12377 lines in 214 files changed: 7994 ins; 3410 del; 973 mod
  Patch: https://git.openjdk.org/babylon/pull/305.diff
  Fetch: git fetch https://git.openjdk.org/babylon.git pull/305/head:pull/305

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


More information about the babylon-dev mailing list