Search in sources :

Example 11 with Call

use of jdk.vm.ci.code.site.Call in project graal by oracle.

the class InfopointReasonTest method callInfopoints.

@Test
public void callInfopoints() {
    final ResolvedJavaMethod method = getResolvedJavaMethod("testMethod");
    final StructuredGraph graph = parseEager(method, AllowAssumptions.YES);
    final CompilationResult cr = compileGraph(graph, graph.method(), getProviders(), getBackend(), getDefaultGraphBuilderSuite(), OptimisticOptimizations.ALL, graph.getProfilingInfo(), createSuites(graph.getOptions()), createLIRSuites(graph.getOptions()), new CompilationResult(graph.compilationId()), CompilationResultBuilderFactory.Default);
    for (Infopoint sp : cr.getInfopoints()) {
        assertNotNull(sp.reason);
        if (sp instanceof Call) {
            assertDeepEquals(InfopointReason.CALL, sp.reason);
        }
    }
}
Also used : Call(jdk.vm.ci.code.site.Call) StructuredGraph(org.graalvm.compiler.nodes.StructuredGraph) Infopoint(jdk.vm.ci.code.site.Infopoint) CompilationResult(org.graalvm.compiler.code.CompilationResult) ResolvedJavaMethod(jdk.vm.ci.meta.ResolvedJavaMethod) Test(org.junit.Test)

Aggregations

Call (jdk.vm.ci.code.site.Call)11 Infopoint (jdk.vm.ci.code.site.Infopoint)9 DeoptEntryInfopoint (com.oracle.svm.core.deopt.DeoptEntryInfopoint)4 CompilationResult (org.graalvm.compiler.code.CompilationResult)4 HostedMethod (com.oracle.svm.hosted.meta.HostedMethod)3 HashMap (java.util.HashMap)3 BytecodeFrame (jdk.vm.ci.code.BytecodeFrame)3 DataPatch (jdk.vm.ci.code.site.DataPatch)3 StructuredGraph (org.graalvm.compiler.nodes.StructuredGraph)3 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)2 DebugInfo (jdk.vm.ci.code.DebugInfo)2 Backend (org.graalvm.compiler.core.target.Backend)2 DebugContext (org.graalvm.compiler.debug.DebugContext)2 GraalError (org.graalvm.compiler.debug.GraalError)2 Indent (org.graalvm.compiler.debug.Indent)2 LIRSuites (org.graalvm.compiler.lir.phases.LIRSuites)2 Suites (org.graalvm.compiler.phases.tiers.Suites)2 Purpose (com.oracle.graal.pointsto.infrastructure.GraphProvider.Purpose)1 HostedProviders (com.oracle.graal.pointsto.meta.HostedProviders)1 SubstrateIntrinsicGraphBuilder (com.oracle.graal.pointsto.phases.SubstrateIntrinsicGraphBuilder)1