public class InliningTest extends GraalCompilerTest
Modifier and Type | Class and Description |
---|---|
static interface |
InliningTest.Attributes |
private static class |
InliningTest.Fields |
private static class |
InliningTest.FinalFields |
private static class |
InliningTest.FinalSubClass |
private static interface |
InliningTest.MultipleImplementorsInterface |
class |
InliningTest.NullAttributes |
private static interface |
InliningTest.SingleImplementorInterface |
private static class |
InliningTest.StaticFinalFields |
private static class |
InliningTest.SubClassA |
private static class |
InliningTest.SubClassB |
private static class |
InliningTest.SubClassC |
private static class |
InliningTest.SuperClass |
class |
InliningTest.TenAttributes |
GraalCompilerTest.ArgSupplier, GraalCompilerTest.Result
GraalTest.MultiCauseAssertionError
lastCompiledGraph
Constructor and Description |
---|
InliningTest() |
addMethod, after, afterTest, applyArgSuppliers, argsWithReceiver, asResolvedJavaMethod, assertConstantReturn, assertEquals, assertEquals, assertEquals, before, beforeTest, branchProbability, breakpoint, breakpoint, checkArgs, checkHighTierGraph, checkLowTierGraph, checkMidTierGraph, compile, countUnusedConstants, createLIRSuites, createSuites, editGraphBuilderConfiguration, executeActual, executeActualCheckDeopt, executeExpected, getBackend, getCanonicalGraphString, getCode, getCode, getCode, getCodeCache, getConstantReflection, getCustomGraphBuilderSuite, getDefaultGraphBuilderPlugins, getDefaultGraphBuilderSuite, getDefaultHighTierContext, getLIRSuites, getLowerer, getMetaAccess, getNodeCountExcludingUnusedConstants, getProviders, getReplacements, getResolvedJavaMethod, getResolvedJavaMethod, getResolvedJavaMethod, getSnippetReflection, getSpeculationLog, getSuites, getTarget, initializeDebugging, invoke, isArchitecture, iterationCount, lookupMethod, parseDebug, parseEager, parseEager, parseForCompile, parseProfiled, parseProfiled, referenceInvoke, supply, test, test, testAgainstExpected, testAgainstExpected, testN
assertDeepEquals, assertDeepEquals, assertDeepEquals, assertDeepEquals, assertFalse, assertFalse, assertFalse, assertTrue, assertTrue, assertTrue, equalFloatsOrDoublesDelta, fail, getMethod, getMethod, getMethod, ulpsDelta
public InliningTest()
public void testInvokeStaticInlining()
public static Boolean invokeStaticSnippet(boolean value)
public static Boolean invokeStaticOnInstanceSnippet(Boolean obj, boolean value)
public void testStaticBindableInlining()
public void testDependentStaticBindableInlining()
public void testStaticBindableInliningIP()
public void testDependentStaticBindableInliningIP()
public static Object invokeConstructorSnippet(int value)
public static int invokeFinalMethodSnippet(InliningTest.SuperClass superClass, InliningTest.SubClassA subClassA, InliningTest.FinalSubClass finalSubClass)
public static int invokeMethodOnFinalClassSnippet(InliningTest.FinalSubClass finalSubClass)
public static int invokeMethodOnStaticFinalFieldSnippet()
public static int invokeMethodOnFinalFieldSnippet()
public static int invokeMethodOnFieldSnippet()
public int getAttributesLength(InliningTest.Attributes a)
public void testGuardedInline()
public void testClassHierarchyAnalysis()
public void testClassHierarchyAnalysisIP()
public static int invokeLeafClassMethodSnippet(InliningTest.SubClassA subClassA)
public static int invokeConcreteMethodSnippet(InliningTest.SuperClass superClass)
public static int invokeSingleImplementorInterfaceSnippet(InliningTest.SingleImplementorInterface testInterface)
public static int invokeConcreteInterfaceMethodSnippet(InliningTest.MultipleImplementorsInterface testInterface)
public static int invokeOverriddenInterfaceMethodSnippet(InliningTest.MultipleImplementorsInterface testInterface)
public static int invokeOverriddenPublicMethodSnippet(InliningTest.SuperClass superClass)
public static int invokeOverriddenProtectedMethodSnippet(InliningTest.SuperClass superClass)
private StructuredGraph getGraph(String snippet, boolean eagerInfopointMode)
private static StructuredGraph assertInlined(StructuredGraph graph)
private static StructuredGraph assertNotInlined(StructuredGraph graph)
private static StructuredGraph assertNotInGraph(StructuredGraph graph, Class<?> clazz)
private static StructuredGraph assertInGraph(StructuredGraph graph, Class<?> clazz)
private static int[] countMethodInfopoints(StructuredGraph graph)
private static StructuredGraph assertManyMethodInfopoints(StructuredGraph graph)
private static StructuredGraph assertFewMethodInfopoints(StructuredGraph graph)