[code-reflection] RFR: Replace the use of Interpreter to create Quoted instance with specialized code [v31]

Mourad Abbay mabbay at openjdk.org
Thu Jun 26 15:54:28 UTC 2025


> Creating Quoted instance was done by invoking the Interpreter. The Interpreter is too general and if someone could somehow inject any code model we will interpret that as well. This PR replace the use of the interpreter with specialized code.

Mourad Abbay has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 45 commits:

 - Revert changes to the Interpreter
 - Merge branch 'code-reflection' into quoted-instance-creation
   
   # Conflicts:
   #	src/jdk.incubator.code/share/classes/jdk/incubator/code/bytecode/BytecodeGenerator.java
 - Make lambda proxy class 's __internal_quoted method private
 - Minimally document the two methods
 - Remove QuotedHelper.java
 - Update TestQuoted to expect a RuntimeException in case the model is invalid
 - Standardize error messages
 - Move the methods to Quoted class
 - Check that binding of symbolic values to runtime values is correct
 - Add test case when args and params differ in size
 - ... and 35 more: https://git.openjdk.org/babylon/compare/d7489585...f7f4c234

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

Changes: https://git.openjdk.org/babylon/pull/424/files
  Webrev: https://webrevs.openjdk.org/?repo=babylon&pr=424&range=30
  Stats: 701 lines in 8 files changed: 609 ins; 84 del; 8 mod
  Patch: https://git.openjdk.org/babylon/pull/424.diff
  Fetch: git fetch https://git.openjdk.org/babylon.git pull/424/head:pull/424

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


More information about the babylon-dev mailing list