use of jdk.vm.ci.runtime.JVMCICompiler in project graal by oracle.
the class Graal method initializeRuntime.
private static GraalRuntime initializeRuntime() {
Services.initializeJVMCI();
JVMCICompiler compiler = JVMCI.getRuntime().getCompiler();
if (compiler instanceof GraalJVMCICompiler) {
GraalJVMCICompiler graal = (GraalJVMCICompiler) compiler;
return graal.getGraalRuntime();
} else {
return new InvalidGraalRuntime();
}
}
use of jdk.vm.ci.runtime.JVMCICompiler in project graal by oracle.
the class HotSpotTruffleCompilerImpl method getCompiler.
private static GraalJVMCICompiler getCompiler(OptionValues options) {
HotSpotJVMCIRuntime runtime = HotSpotJVMCIRuntime.runtime();
if (!Options.TruffleCompilerConfiguration.hasBeenSet(options)) {
JVMCICompiler compiler = runtime.getCompiler();
if (compiler instanceof GraalJVMCICompiler) {
return (GraalJVMCICompiler) compiler;
}
}
CompilerConfigurationFactory compilerConfigurationFactory = CompilerConfigurationFactory.selectFactory(Options.TruffleCompilerConfiguration.getValue(options), options, runtime);
return HotSpotGraalCompilerFactory.createCompiler("Truffle", runtime, options, compilerConfigurationFactory);
}
Aggregations