public class JTTTest extends GraalCompilerTest
These tests are executed twice: once with arguments passed to the execution and once with the arguments bound to the test's parameters during compilation. The latter is a good test of canonicalization.
| Modifier and Type | Class and Description |
|---|---|
static class |
JTTTest.DummyTestClass |
GraalCompilerTest.ArgSupplier, GraalCompilerTest.ResultGraalTest.MultiCauseAssertionError| Modifier and Type | Field and Description |
|---|---|
(package private) Object[] |
argsToBind
The arguments which, if non-null, will replace the Locals in the test method's graph.
|
(package private) Double |
delta |
protected static Set<DeoptimizationReason> |
EMPTY |
lastCompiledGraph| Constructor and Description |
|---|
JTTTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertDeepEquals(Object expected,
Object actual)
Compares two given objects for equality.
|
protected InstalledCode |
getCode(ResolvedJavaMethod method,
StructuredGraph graph)
Gets installed code for a given method, compiling it first if necessary.
|
protected StructuredGraph |
parseEager(ResolvedJavaMethod m,
StructuredGraph.AllowAssumptions allowAssumptions)
Parses a Java method in eager mode to
produce a graph.
|
protected void |
runTest(Set<DeoptimizationReason> shouldNotDeopt,
boolean bind,
boolean noProfile,
String name,
Object... args) |
protected void |
runTest(Set<DeoptimizationReason> shouldNotDeopt,
String name,
Object... args) |
protected void |
runTest(String name,
Object... args) |
protected void |
runTestWithDelta(double delta,
String name,
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, parseForCompile, parseProfiled, parseProfiled, referenceInvoke, supply, test, test, testAgainstExpected, testAgainstExpected, testNassertDeepEquals, assertDeepEquals, assertDeepEquals, assertFalse, assertFalse, assertFalse, assertTrue, assertTrue, assertTrue, equalFloatsOrDoublesDelta, fail, getMethod, getMethod, getMethod, ulpsDeltaprotected static final Set<DeoptimizationReason> EMPTY
Object[] argsToBind
public JTTTest()
protected StructuredGraph parseEager(ResolvedJavaMethod m, StructuredGraph.AllowAssumptions allowAssumptions)
GraalCompilerTestparseEager in class GraalCompilerTestprotected InstalledCode getCode(ResolvedJavaMethod method, StructuredGraph graph)
GraalCompilerTestgetCode in class GraalCompilerTestmethod - 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 void assertDeepEquals(Object expected, Object actual)
GraalTestexpected is an array.assertDeepEquals in class GraalTestprotected void runTestWithDelta(double delta, String name, Object... args)
protected void runTest(Set<DeoptimizationReason> shouldNotDeopt, String name, Object... args)
protected void runTest(Set<DeoptimizationReason> shouldNotDeopt, boolean bind, boolean noProfile, String name, Object... args)