use of com.oracle.svm.graal.meta.SubstrateInstalledCodeImpl in project graal by oracle.
the class SubstrateGraalUtils method compileAndInstall.
public static InstalledCode compileAndInstall(OptionValues options, RuntimeConfiguration runtimeConfig, Suites suites, LIRSuites lirSuites, SubstrateMethod method, boolean testTrampolineJumps) {
updateGraalArchitectureWithHostCPUFeatures(runtimeConfig.lookupBackend(method));
DebugContext debug = DebugContext.create(options, new GraalDebugHandlersFactory(GraalSupport.getRuntimeConfig().getSnippetReflection()));
// create the installed code descriptor
SubstrateInstalledCodeImpl installedCode = new SubstrateInstalledCodeImpl(method);
// do compilation and code installation and update the installed code descriptor
SubstrateGraalUtils.doCompileAndInstall(debug, runtimeConfig, suites, lirSuites, method, installedCode, testTrampolineJumps);
// return the installed code
return installedCode;
}
Aggregations