public class LambdaEagerTest extends GraalCompilerTest
GraalCompilerTest.ArgSupplier, GraalCompilerTest.Result
GraalTest.MultiCauseAssertionError
Modifier and Type | Field and Description |
---|---|
private static EnumSet<DeoptimizationReason> |
UNRESOLVED_UNREACHED |
lastCompiledGraph
Constructor and Description |
---|
LambdaEagerTest() |
Modifier and Type | Method and Description |
---|---|
private static int |
add(int x,
int y) |
static int |
capturing(int x,
int y,
int z) |
private static int |
doBinary(IntBinaryOperator op,
int x,
int y) |
protected InstalledCode |
getCode(ResolvedJavaMethod installedCodeOwner,
StructuredGraph graph,
boolean forceCompile)
Gets installed code for a given method and graph, compiling it first if necessary.
|
static int |
nonCapturing(int x,
int y) |
static int |
nonCapturing2(int x,
int y) |
void |
testEagerResolveCapturing() |
void |
testEagerResolveNonCapturing01() |
void |
testEagerResolveNonCapturing02() |
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, 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
private static final EnumSet<DeoptimizationReason> UNRESOLVED_UNREACHED
public LambdaEagerTest()
private static int doBinary(IntBinaryOperator op, int x, int y)
private static int add(int x, int y)
public static int nonCapturing(int x, int y)
public static int nonCapturing2(int x, int y)
public static int capturing(int x, int y, int z)
public void testEagerResolveNonCapturing01()
public void testEagerResolveNonCapturing02()
public void testEagerResolveCapturing()
protected InstalledCode getCode(ResolvedJavaMethod installedCodeOwner, StructuredGraph graph, boolean forceCompile)
GraalCompilerTest
getCode
in class GraalCompilerTest
installedCodeOwner
- 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)
.forceCompile
- specifies whether to ignore any previous code cached for the (method,
key) pair