comparison graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/GraalCompilerTest.java @ 19050:75da87c96605

initial commit of GraphBuilderPhase plugins
author Doug Simon <doug.simon@oracle.com>
date Sat, 31 Jan 2015 00:30:00 +0100
parents 173bdcc85ab8
children e4fda434ba74
comparison
equal deleted inserted replaced
19049:c198e397bb59 19050:75da87c96605
523 523
524 private CompilationResult compileBaseline(ResolvedJavaMethod javaMethod) { 524 private CompilationResult compileBaseline(ResolvedJavaMethod javaMethod) {
525 try (Scope bds = Debug.scope("CompileBaseline", javaMethod, providers.getCodeCache())) { 525 try (Scope bds = Debug.scope("CompileBaseline", javaMethod, providers.getCodeCache())) {
526 BaselineCompiler baselineCompiler = new BaselineCompiler(GraphBuilderConfiguration.getDefault(), providers.getMetaAccess()); 526 BaselineCompiler baselineCompiler = new BaselineCompiler(GraphBuilderConfiguration.getDefault(), providers.getMetaAccess());
527 OptimisticOptimizations optimisticOpts = OptimisticOptimizations.ALL; 527 OptimisticOptimizations optimisticOpts = OptimisticOptimizations.ALL;
528 return baselineCompiler.generate(javaMethod, -1, getBackend(), new CompilationResult(), javaMethod, CompilationResultBuilderFactory.Default, optimisticOpts); 528 return baselineCompiler.generate(javaMethod, -1, getBackend(), new CompilationResult(), javaMethod, CompilationResultBuilderFactory.Default, optimisticOpts, getReplacements());
529 } catch (Throwable e) { 529 } catch (Throwable e) {
530 throw Debug.handle(e); 530 throw Debug.handle(e);
531 } 531 }
532 } 532 }
533 533