public abstract class GraalCompilerAssumptionsTest extends GraalCompilerTest
GraalCompilerTest.ArgSupplier, GraalCompilerTest.Result
GraalTest.MultiCauseAssertionError
lastCompiledGraph
Constructor and Description |
---|
GraalCompilerAssumptionsTest() |
GraalCompilerAssumptionsTest(Class<? extends Architecture> arch) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkGraph(Assumptions.Assumption expectedAssumption,
StructuredGraph graph) |
protected ResolvedJavaType |
resolveAndInitialize(Class<?> clazz)
Converts a
Class to an initialized ResolvedJavaType . |
protected void |
testAssumption(String methodName,
Assumptions.Assumption expectedAssumption,
String classToLoad,
boolean willInvalidate)
Checks the behavior of class loading on
invalidation . |
protected void |
testAssumptionInvalidate(String methodName,
Assumptions.Assumption expected,
String classToLoad) |
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 GraalCompilerAssumptionsTest()
public GraalCompilerAssumptionsTest(Class<? extends Architecture> arch)
protected void testAssumptionInvalidate(String methodName, Assumptions.Assumption expected, String classToLoad)
protected void testAssumption(String methodName, Assumptions.Assumption expectedAssumption, String classToLoad, boolean willInvalidate)
invalidation
. methodName
is compiled and the resulting graph is checked for expectedAssumption
. The code is
installed and optionally classToLoad
is loaded. The class is assumed to be an inner
class of the test class and the name of the class to load is constructed relative to that.methodName
- the method to compileexpectedAssumption
- expected Assumptions.Assumption
instance to find in graphclassToLoad
- an optional class to load to trigger an invalidation checkwillInvalidate
- true if loading classToLoad
should invalidate the methodprotected void checkGraph(Assumptions.Assumption expectedAssumption, StructuredGraph graph)
protected ResolvedJavaType resolveAndInitialize(Class<?> clazz)
Class
to an initialized ResolvedJavaType
.