public abstract class TypeCheckTest extends GraalCompilerTest
GraalCompilerTest.ArgSupplier, GraalCompilerTest.Result
GraalTest.MultiCauseAssertionError
Modifier and Type | Field and Description |
---|---|
protected JavaTypeProfile |
currentProfile |
lastCompiledGraph
Constructor and Description |
---|
TypeCheckTest() |
Modifier and Type | Method and Description |
---|---|
protected InstalledCode |
getCode(ResolvedJavaMethod method,
StructuredGraph graph)
Gets installed code for a given method, compiling it first if necessary.
|
protected StructuredGraph |
parseForCompile(ResolvedJavaMethod method)
Used to produce a graph for a method about to be compiled by
GraalCompilerTest.compile(ResolvedJavaMethod, StructuredGraph) if the second parameter to that method
is null. |
protected JavaTypeProfile |
profile(Class<?>... types) |
protected JavaTypeProfile |
profile(TriState nullSeen,
Class<?>... types) |
protected abstract void |
replaceProfile(StructuredGraph graph,
JavaTypeProfile profile) |
protected void |
test(String name,
JavaTypeProfile profile,
Object... args) |
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, 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, 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
protected JavaTypeProfile currentProfile
public TypeCheckTest()
protected abstract void replaceProfile(StructuredGraph graph, JavaTypeProfile profile)
protected StructuredGraph parseForCompile(ResolvedJavaMethod method)
GraalCompilerTest
GraalCompilerTest.compile(ResolvedJavaMethod, StructuredGraph)
if the second parameter to that method
is null.
The default implementation in GraalCompilerTest
is to call
#parseEager(ResolvedJavaMethod, AllowAssumptions)
.parseForCompile
in class GraalCompilerTest
protected InstalledCode getCode(ResolvedJavaMethod method, StructuredGraph graph)
GraalCompilerTest
getCode
in class GraalCompilerTest
method
- the method the compiled code will be associated with when installedgraph
- the graph to be compiled. If null, a graph will be obtained from
installedCodeOwner
via GraalCompilerTest.parseForCompile(ResolvedJavaMethod)
.protected JavaTypeProfile profile(Class<?>... types)
protected JavaTypeProfile profile(TriState nullSeen, Class<?>... types)
protected void test(String name, JavaTypeProfile profile, Object... args)