[code-reflection] RFR: Replace the use of Interpreter to create Quoted instance with specialized code [v23]
Mourad Abbay
mabbay at openjdk.org
Fri Jun 20 11:31:33 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 34 commits:
- Merge branch 'code-reflection' into quoted-instance-creation
# Conflicts:
# src/java.base/share/classes/java/lang/invoke/InnerClassLambdaMetafactory.java
# src/jdk.incubator.code/share/classes/jdk/incubator/code/bytecode/BytecodeGenerator.java
# src/jdk.incubator.code/share/classes/jdk/incubator/code/internal/QuotedHelper.java
# src/jdk.incubator.code/share/classes/jdk/incubator/code/op/CoreOp.java
- Remove TODOs
- Pass runtime values when unquoting an op
- Add test case for when model has less than two operations
- Check that model has at least two operations
- Combine validation of param with its user
- Remove model print statement to reduce noise
- Add tests
- Strengthen the checks
- Validate params upfront
- ... and 24 more: https://git.openjdk.org/babylon/compare/47c1459b...207032fd
-------------
Changes: https://git.openjdk.org/babylon/pull/424/files
Webrev: https://webrevs.openjdk.org/?repo=babylon&pr=424&range=22
Stats: 606 lines in 7 files changed: 552 ins; 44 del; 10 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