comparison graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/InfopointReasonTest.java @ 19232:66c60942c06c

GraalCompiler.emitLowLevel: use LowLevelSuites instead of LowLevelCompilerConfiguration.
author Josef Eisl <josef.eisl@jku.at>
date Tue, 10 Feb 2015 11:09:28 +0100
parents 173bdcc85ab8
children 8ab925a6f724 292442bed972
comparison
equal deleted inserted replaced
19231:df89224ee04a 19232:66c60942c06c
59 public void callInfopoints() { 59 public void callInfopoints() {
60 final ResolvedJavaMethod method = getResolvedJavaMethod("testMethod"); 60 final ResolvedJavaMethod method = getResolvedJavaMethod("testMethod");
61 final StructuredGraph graph = parseEager(method); 61 final StructuredGraph graph = parseEager(method);
62 CallingConvention cc = getCallingConvention(getCodeCache(), Type.JavaCallee, graph.method(), false); 62 CallingConvention cc = getCallingConvention(getCodeCache(), Type.JavaCallee, graph.method(), false);
63 final CompilationResult cr = compileGraph(graph, cc, graph.method(), getProviders(), getBackend(), getCodeCache().getTarget(), null, getDefaultGraphBuilderSuite(), 63 final CompilationResult cr = compileGraph(graph, cc, graph.method(), getProviders(), getBackend(), getCodeCache().getTarget(), null, getDefaultGraphBuilderSuite(),
64 OptimisticOptimizations.ALL, getProfilingInfo(graph), null, getSuites(), new CompilationResult(), CompilationResultBuilderFactory.Default); 64 OptimisticOptimizations.ALL, getProfilingInfo(graph), null, getSuites(), getLowLevelSuites(), new CompilationResult(), CompilationResultBuilderFactory.Default);
65 for (Infopoint sp : cr.getInfopoints()) { 65 for (Infopoint sp : cr.getInfopoints()) {
66 assertNotNull(sp.reason); 66 assertNotNull(sp.reason);
67 if (sp instanceof Call) { 67 if (sp instanceof Call) {
68 assertDeepEquals(InfopointReason.CALL, sp.reason); 68 assertDeepEquals(InfopointReason.CALL, sp.reason);
69 } 69 }
82 } 82 }
83 assertTrue(graphLineSPs > 0); 83 assertTrue(graphLineSPs > 0);
84 CallingConvention cc = getCallingConvention(getCodeCache(), Type.JavaCallee, graph.method(), false); 84 CallingConvention cc = getCallingConvention(getCodeCache(), Type.JavaCallee, graph.method(), false);
85 PhaseSuite<HighTierContext> graphBuilderSuite = getCustomGraphBuilderSuite(GraphBuilderConfiguration.getFullDebugDefault()); 85 PhaseSuite<HighTierContext> graphBuilderSuite = getCustomGraphBuilderSuite(GraphBuilderConfiguration.getFullDebugDefault());
86 final CompilationResult cr = compileGraph(graph, cc, graph.method(), getProviders(), getBackend(), getCodeCache().getTarget(), null, graphBuilderSuite, OptimisticOptimizations.ALL, 86 final CompilationResult cr = compileGraph(graph, cc, graph.method(), getProviders(), getBackend(), getCodeCache().getTarget(), null, graphBuilderSuite, OptimisticOptimizations.ALL,
87 getProfilingInfo(graph), getSpeculationLog(), getSuites(), new CompilationResult(), CompilationResultBuilderFactory.Default); 87 getProfilingInfo(graph), getSpeculationLog(), getSuites(), getLowLevelSuites(), new CompilationResult(), CompilationResultBuilderFactory.Default);
88 int lineSPs = 0; 88 int lineSPs = 0;
89 for (Infopoint sp : cr.getInfopoints()) { 89 for (Infopoint sp : cr.getInfopoints()) {
90 assertNotNull(sp.reason); 90 assertNotNull(sp.reason);
91 if (sp.reason == InfopointReason.LINE_NUMBER) { 91 if (sp.reason == InfopointReason.LINE_NUMBER) {
92 ++lineSPs; 92 ++lineSPs;