public class BlackholeDirectiveTest extends GraalCompilerTest
GraalDirectives.blackhole(boolean)
.
There are two snippets for each kind:
Modifier and Type | Class and Description |
---|---|
private static interface |
BlackholeDirectiveTest.BlackholeSnippet |
private static class |
BlackholeDirectiveTest.Dummy |
GraalCompilerTest.ArgSupplier, GraalCompilerTest.Result
GraalTest.MultiCauseAssertionError
lastCompiledGraph
Constructor and Description |
---|
BlackholeDirectiveTest() |
Modifier and Type | Method and Description |
---|---|
static int |
blackholeBooleanSnippet(int arg) |
static int |
blackholeIntSnippet(int arg) |
static int |
blackholeObjectSnippet(int arg) |
static int |
booleanSnippet(int arg) |
protected boolean |
checkLowTierGraph(StructuredGraph graph)
Can be overridden by unit tests to verify properties of the graph.
|
static int |
intSnippet(int arg) |
static int |
objectSnippet(int arg) |
void |
testBoolean() |
void |
testInt() |
void |
testObject() |
addMethod, after, afterTest, applyArgSuppliers, argsWithReceiver, asResolvedJavaMethod, assertConstantReturn, assertEquals, assertEquals, assertEquals, before, beforeTest, branchProbability, breakpoint, breakpoint, checkArgs, checkHighTierGraph, 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 BlackholeDirectiveTest()
public static int booleanSnippet(int arg)
public static int blackholeBooleanSnippet(int arg)
public void testBoolean()
public static int intSnippet(int arg)
public static int blackholeIntSnippet(int arg)
public void testInt()
public static int objectSnippet(int arg)
public static int blackholeObjectSnippet(int arg)
public void testObject()
protected boolean checkLowTierGraph(StructuredGraph graph)
GraalCompilerTest
checkLowTierGraph
in class GraalCompilerTest
graph
- the graph at the end of LowTier