Search in sources :

Example 1 with HotSpotJITClassInitializationPlugin

use of org.graalvm.compiler.hotspot.meta.HotSpotJITClassInitializationPlugin in project graal by oracle.

the class LambdaStableNameTest method findStableLambdaName.

private String findStableLambdaName(ResolvedJavaType type) {
    OptionValues options = new OptionValues(OptionValues.newOptionMap());
    DebugContext debug = new Builder(options, Collections.emptyList()).build();
    GraalJVMCICompiler compiler = (GraalJVMCICompiler) JVMCI.getRuntime().getCompiler();
    Providers providers = compiler.getGraalRuntime().getCapability(RuntimeProvider.class).getHostBackend().getProviders();
    final HotSpotJITClassInitializationPlugin initializationPlugin = new HotSpotJITClassInitializationPlugin();
    return LambdaUtils.findStableLambdaName(initializationPlugin, providers, type, options, debug, this);
}
Also used : GraalJVMCICompiler(org.graalvm.compiler.api.runtime.GraalJVMCICompiler) OptionValues(org.graalvm.compiler.options.OptionValues) Builder(org.graalvm.compiler.debug.DebugContext.Builder) DebugContext(org.graalvm.compiler.debug.DebugContext) Providers(org.graalvm.compiler.phases.util.Providers) HotSpotJITClassInitializationPlugin(org.graalvm.compiler.hotspot.meta.HotSpotJITClassInitializationPlugin)

Aggregations

GraalJVMCICompiler (org.graalvm.compiler.api.runtime.GraalJVMCICompiler)1 DebugContext (org.graalvm.compiler.debug.DebugContext)1 Builder (org.graalvm.compiler.debug.DebugContext.Builder)1 HotSpotJITClassInitializationPlugin (org.graalvm.compiler.hotspot.meta.HotSpotJITClassInitializationPlugin)1 OptionValues (org.graalvm.compiler.options.OptionValues)1 Providers (org.graalvm.compiler.phases.util.Providers)1