[code-reflection] RFR: Replace the use of Interpreter to create Quoted instance with specialized code [v5]
Paul Sandoz
psandoz at openjdk.org
Thu May 22 23:55:05 UTC 2025
On Thu, 22 May 2025 23:40:22 GMT, Mourad Abbay <mabbay at openjdk.org> wrote:
>> 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 refreshed the contents of this pull request, and previous commits have been removed. The incremental views will show differences compared to the previous content of the PR. The pull request contains two new commits since the last revision:
>
> - Focus on captured values for the moment
> - Implement quotedOp method
src/jdk.incubator.code/share/classes/jdk/incubator/code/op/CoreOp.java line 4443:
> 4441: return func("q", FunctionType.VOID).body(block -> {
> 4442:
> 4443: List<Value> capturedValues = op.capturedValues();
Don't forget operands, they can occur in order before any captured variables.
-------------
PR Review Comment: https://git.openjdk.org/babylon/pull/424#discussion_r2103576263
More information about the babylon-dev
mailing list