Search in sources :

Example 86 with OptionValues

use of org.graalvm.compiler.options.OptionValues in project graal by oracle.

the class GraalOSRLockTest method testLockOSROuterInnerImmediateDeoptAfter.

@Test
@SuppressWarnings("try")
public void testLockOSROuterInnerImmediateDeoptAfter() {
    run(() -> {
        OptionValues options = new OptionValues(getInitialOptions(), osrLockDeopt());
        testOSR(options, "testOuterInnerLockImmediateDeoptAfter");
    });
}
Also used : OptionValues(org.graalvm.compiler.options.OptionValues) Test(org.junit.Test)

Example 87 with OptionValues

use of org.graalvm.compiler.options.OptionValues in project graal by oracle.

the class GraalOSRLockTest method testLockOSROuterInnerLockDepthDeopt.

@Test
@SuppressWarnings("try")
public void testLockOSROuterInnerLockDepthDeopt() {
    run(() -> {
        EconomicMap<OptionKey<?>, Object> overrides = osrLockNoDeopt();
        overrides.put(HighTier.Options.Inline, false);
        OptionValues options = new OptionValues(getInitialOptions(), overrides);
        testOSR(options, "testOuterInnerLockDepth1DeoptAfter");
    });
}
Also used : OptionValues(org.graalvm.compiler.options.OptionValues) OptionKey(org.graalvm.compiler.options.OptionKey) Test(org.junit.Test)

Example 88 with OptionValues

use of org.graalvm.compiler.options.OptionValues in project graal by oracle.

the class GraalOSRLockTest method testLockOSROuterInnerSameLockCompileRestOfMethod.

@Test
@SuppressWarnings("try")
public void testLockOSROuterInnerSameLockCompileRestOfMethod() {
    run(() -> {
        OptionValues options = new OptionValues(getInitialOptions(), osrLockNoDeopt());
        testOSR(options, "testOuterInnerSameLockCompileRestOfMethod");
    });
}
Also used : OptionValues(org.graalvm.compiler.options.OptionValues) Test(org.junit.Test)

Example 89 with OptionValues

use of org.graalvm.compiler.options.OptionValues in project graal by oracle.

the class GraalOSRLockTest method testLockOSROuterCompileRestOfMethodSubsequentLock.

@Test
@SuppressWarnings("try")
public void testLockOSROuterCompileRestOfMethodSubsequentLock() {
    run(() -> {
        OptionValues options = new OptionValues(getInitialOptions(), osrLockNoDeopt());
        testOSR(options, "testOuterLockCompileRestOfMethodSubsequentLock");
    });
}
Also used : OptionValues(org.graalvm.compiler.options.OptionValues) Test(org.junit.Test)

Example 90 with OptionValues

use of org.graalvm.compiler.options.OptionValues in project graal by oracle.

the class GraalOSRLockTest method testLockOSROuterInnerLockDepthRecursiveCompileRestOfMethod1.

@Test
@SuppressWarnings("try")
public void testLockOSROuterInnerLockDepthRecursiveCompileRestOfMethod1() {
    run(() -> {
        OptionValues options = new OptionValues(getInitialOptions(), osrLockNoDeopt());
        testOSR(options, "testOuterInnerLockDepth1RecursiveCompileRestOfMethod2");
    });
}
Also used : OptionValues(org.graalvm.compiler.options.OptionValues) Test(org.junit.Test)

Aggregations

OptionValues (org.graalvm.compiler.options.OptionValues)158 Test (org.junit.Test)65 DebugContext (org.graalvm.compiler.debug.DebugContext)50 StructuredGraph (org.graalvm.compiler.nodes.StructuredGraph)36 ResolvedJavaMethod (jdk.vm.ci.meta.ResolvedJavaMethod)30 Graph (org.graalvm.compiler.graph.Graph)22 OptionKey (org.graalvm.compiler.options.OptionKey)16 HighTierContext (org.graalvm.compiler.phases.tiers.HighTierContext)13 Plugins (org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderConfiguration.Plugins)11 GraphBuilderConfiguration (org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderConfiguration)10 InvocationPlugins (org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugins)10 CanonicalizerPhase (org.graalvm.compiler.phases.common.CanonicalizerPhase)10 MetaAccessProvider (jdk.vm.ci.meta.MetaAccessProvider)9 DebugCloseable (org.graalvm.compiler.debug.DebugCloseable)9 GraphBuilderPhase (org.graalvm.compiler.java.GraphBuilderPhase)9 Providers (org.graalvm.compiler.phases.util.Providers)9 IOException (java.io.IOException)8 Method (java.lang.reflect.Method)8 CompilationResult (org.graalvm.compiler.code.CompilationResult)7 CompilationIdentifier (org.graalvm.compiler.core.common.CompilationIdentifier)7