[code-reflection] RFR: Replace the use of Interpreter to create Quoted instance with specialized code [v4]
Maurizio Cimadamore
mcimadamore at openjdk.org
Wed May 28 10:51:05 UTC 2025
On Wed, 28 May 2025 10:17:53 GMT, Mourad Abbay <mabbay at openjdk.org> wrote:
>> I'm looking to see how CoreOp.quoteOp can be used in javac.
>
> CoreOp.quoteOp result is different from what javac produces. For instance, CoreOp.quoteOp doesn't keep captured constants in the model. We can update it to do so, but then the goal of such as method was to take an operation from its original context by representing its captured values and operands as parameters.
I'm a bit confused -- if the new `CoreOp` methods cannot be used in javac/`QuotedHelper` -- then why are they in this PR? @PaulSandoz did you intend for the new methods to be the official way to deal with quoted models both in javac and elsewhere -- or was that just an API suggestion unrelated from the goal of this PR? (I'm a bit confused)
-------------
PR Review Comment: https://git.openjdk.org/babylon/pull/424#discussion_r2111544145
More information about the babylon-dev
mailing list