public class ObjectAccessTest extends GraalCompilerTest implements Snippets
Pointer
read and write operations.GraalCompilerTest.ArgSupplier, GraalCompilerTest.Result
GraalTest.MultiCauseAssertionError
Modifier and Type | Field and Description |
---|---|
private static LocationIdentity |
ID |
private ReplacementsImpl |
installer |
private static Kind[] |
KINDS |
lastCompiledGraph
Constructor and Description |
---|
ObjectAccessTest() |
Modifier and Type | Method and Description |
---|---|
private static void |
assertRead(StructuredGraph graph,
Kind kind,
boolean indexConvert,
LocationIdentity locationIdentity) |
private static void |
assertWrite(StructuredGraph graph,
boolean indexConvert,
LocationIdentity locationIdentity) |
protected StructuredGraph |
parseEager(ResolvedJavaMethod m,
StructuredGraph.AllowAssumptions allowAssumptions)
Parses a Java method in eager mode to
produce a graph.
|
static byte |
readByte1(Object o,
int offset) |
static byte |
readByte2(Object o,
int offset) |
static byte |
readByte3(Object o,
int offset) |
static char |
readChar1(Object o,
int offset) |
static char |
readChar2(Object o,
int offset) |
static char |
readChar3(Object o,
int offset) |
static double |
readDouble1(Object o,
int offset) |
static double |
readDouble2(Object o,
int offset) |
static double |
readDouble3(Object o,
int offset) |
static float |
readFloat1(Object o,
int offset) |
static float |
readFloat2(Object o,
int offset) |
static float |
readFloat3(Object o,
int offset) |
static int |
readInt1(Object o,
int offset) |
static int |
readInt2(Object o,
int offset) |
static int |
readInt3(Object o,
int offset) |
static long |
readLong1(Object o,
int offset) |
static long |
readLong2(Object o,
int offset) |
static long |
readLong3(Object o,
int offset) |
static Object |
readObject1(Object o,
int offset) |
static Object |
readObject2(Object o,
int offset) |
static Object |
readObject3(Object o,
int offset) |
static short |
readShort1(Object o,
int offset) |
static short |
readShort2(Object o,
int offset) |
static short |
readShort3(Object o,
int offset) |
void |
testRead1() |
void |
testRead2() |
void |
testRead3() |
void |
testWrite1() |
void |
testWrite2() |
void |
testWrite3() |
static void |
writeByte1(Object o,
int offset,
byte value) |
static void |
writeByte2(Object o,
int offset,
byte value) |
static void |
writeByte3(Object o,
int offset,
byte value) |
static void |
writeChar1(Object o,
int offset,
char value) |
static void |
writeChar2(Object o,
int offset,
char value) |
static void |
writeChar3(Object o,
int offset,
char value) |
static void |
writeDouble1(Object o,
int offset,
double value) |
static void |
writeDouble2(Object o,
int offset,
double value) |
static void |
writeDouble3(Object o,
int offset,
double value) |
static void |
writeFloat1(Object o,
int offset,
float value) |
static void |
writeFloat2(Object o,
int offset,
float value) |
static void |
writeFloat3(Object o,
int offset,
float value) |
static void |
writeInt1(Object o,
int offset,
int value) |
static void |
writeInt2(Object o,
int offset,
int value) |
static void |
writeInt3(Object o,
int offset,
int value) |
static void |
writeLong1(Object o,
int offset,
long value) |
static void |
writeLong2(Object o,
int offset,
long value) |
static void |
writeLong3(Object o,
int offset,
long value) |
static void |
writeObject1(Object o,
int offset,
Object value) |
static void |
writeObject2(Object o,
int offset,
Object value) |
static void |
writeObject3(Object o,
int offset,
Object value) |
static void |
writeShort1(Object o,
int offset,
short value) |
static void |
writeShort2(Object o,
int offset,
short value) |
static void |
writeShort3(Object o,
int offset,
short value) |
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, 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 LocationIdentity ID
private final ReplacementsImpl installer
public ObjectAccessTest()
protected StructuredGraph parseEager(ResolvedJavaMethod m, StructuredGraph.AllowAssumptions allowAssumptions)
GraalCompilerTest
parseEager
in class GraalCompilerTest
public void testRead1()
public void testRead2()
public void testRead3()
public void testWrite1()
public void testWrite2()
public void testWrite3()
private static void assertRead(StructuredGraph graph, Kind kind, boolean indexConvert, LocationIdentity locationIdentity)
private static void assertWrite(StructuredGraph graph, boolean indexConvert, LocationIdentity locationIdentity)
public static void writeByte1(Object o, int offset, byte value)
public static void writeByte2(Object o, int offset, byte value)
public static void writeByte3(Object o, int offset, byte value)
public static void writeChar1(Object o, int offset, char value)
public static void writeChar2(Object o, int offset, char value)
public static void writeChar3(Object o, int offset, char value)
public static short readShort1(Object o, int offset)
public static short readShort2(Object o, int offset)
public static short readShort3(Object o, int offset)
public static void writeShort1(Object o, int offset, short value)
public static void writeShort2(Object o, int offset, short value)
public static void writeShort3(Object o, int offset, short value)
public static void writeLong1(Object o, int offset, long value)
public static void writeLong2(Object o, int offset, long value)
public static void writeLong3(Object o, int offset, long value)
public static float readFloat1(Object o, int offset)
public static float readFloat2(Object o, int offset)
public static float readFloat3(Object o, int offset)
public static void writeFloat1(Object o, int offset, float value)
public static void writeFloat2(Object o, int offset, float value)
public static void writeFloat3(Object o, int offset, float value)
public static double readDouble1(Object o, int offset)
public static double readDouble2(Object o, int offset)
public static double readDouble3(Object o, int offset)
public static void writeDouble1(Object o, int offset, double value)
public static void writeDouble2(Object o, int offset, double value)
public static void writeDouble3(Object o, int offset, double value)
public static Object readObject1(Object o, int offset)
public static Object readObject2(Object o, int offset)
public static Object readObject3(Object o, int offset)
public static void writeObject1(Object o, int offset, Object value)
public static void writeObject2(Object o, int offset, Object value)
public static void writeObject3(Object o, int offset, Object value)