per-instance inlining hint for MethodHandle
Garcia Gutierrez Miguel Alfredo
miguelalfredo.garcia at epfl.ch
Mon May 7 12:50:53 PDT 2012
<https://ewa.epfl.ch/owa/?ae=Item&a=New&t=IPM.Note&cc=MTQuMS4zNTUuMixlbi1VUyw0Mjk0OTY3Mjk1LEhUTUwsMCww&pspid=_1336418354753_382397484#>
It appears that the most effective way to deal with MethodHandle instance (to inline or not to inline) would be for each MH instance to carry a marker emitted by the static compiler, to indicate ForceInlining.
In the case of Scala, such facility would be instrumental to achieving both goals of "lambdas-without-autoboxing", "runtime specialization to primitive types", and straight line code.
And yes, Java would also benefit from that facility, too :)
Miguel
http://lampwww.epfl.ch/~magarcia/ScalaCompilerCornerReloaded<http://lampwww.epfl.ch/%7Emagarcia/ScalaCompilerCornerReloaded>
--
Miguel Garcia
Swiss Federal Institute of Technology
EPFL - IC - LAMP1 - INR 328 - Station 14
CH-1015 Lausanne - Switzerland
http://lamp.epfl.ch/~magarcia/
More information about the graal-dev
mailing list