New JEP: Javac intrinsics for LDC and INVOKEDYNAMIC

Brian Goetz brian.goetz at oracle.com
Tue Apr 11 18:27:56 UTC 2017


You don't need a separate intrinsic for that.

Intrinsics.indy(BootstrapSpecifier.of(bsm, bsmArgs),
                 Object... dynArgs);

On 4/11/2017 2:11 PM, forax at univ-mlv.fr wrote:
> And what about a Java compatible syntax that still separate the bootstrap arguments from the regular arguments ?
>
>    class InvokedynamicCompilerIntrinsics {
>          // empty
>    }
>
>    MethodHanlde bsm = ... // a constant method handle to a bootstrap method
>    Xxx bsmargs = ... // some constants
>    InvokedynamicCompilerIntrinsics.bsm(bsm, bsmargs, ...).foo(args, ...)




More information about the valhalla-dev mailing list