public class ArrayCopyIntrinsificationTest extends GraalCompilerTest
System.arraycopy(Object, int, Object, int, int)
.GraalCompilerTest.ArgSupplier, GraalCompilerTest.Result
GraalTest.MultiCauseAssertionError
Modifier and Type | Field and Description |
---|---|
(package private) boolean |
mustIntrinsify |
lastCompiledGraph
Constructor and Description |
---|
ArrayCopyIntrinsificationTest() |
Modifier and Type | Method and Description |
---|---|
static boolean[] |
booleanArraycopy(boolean[] src,
int srcPos,
boolean[] dst,
int dstPos,
int length) |
static byte[] |
byteArraycopy(byte[] src,
int srcPos,
byte[] dst,
int dstPos,
int length) |
static char[] |
charArraycopy(char[] src,
int srcPos,
char[] dst,
int dstPos,
int length) |
static Object[][] |
copyRows(Object[][] rows,
int rowSize,
Integer rowCount) |
static double[] |
doubleArraycopy(double[] src,
int srcPos,
double[] dst,
int dstPos,
int length) |
static float[] |
floatArraycopy(float[] src,
int srcPos,
float[] dst,
int dstPos,
int length) |
static Object |
genericArraycopy(Object src,
int srcPos,
Object dst,
int dstPos,
int length) |
protected InstalledCode |
getCode(ResolvedJavaMethod method,
StructuredGraph g)
Gets installed code for a given method, compiling it first if necessary.
|
static int[] |
intArraycopy(int[] src,
int srcPos,
int[] dst,
int dstPos,
int length) |
static long[] |
longArraycopy(long[] src,
int srcPos,
long[] dst,
int dstPos,
int length) |
private static Object |
newArray(Object proto,
int length) |
static Object[] |
objectArraycopy(Object[] src,
int srcPos,
Object[] dst,
int dstPos,
int length) |
static Object[] |
objectArraycopyExact(Integer[] src,
int srcPos,
Integer[] dst,
int dstPos,
int length) |
static short[] |
shortArraycopy(short[] src,
int srcPos,
short[] dst,
int dstPos,
int length) |
void |
test0() |
void |
test1() |
void |
testArrayStoreException()
|
void |
testByte() |
void |
testChar() |
void |
testCopyRows()
Test case derived from assertion while compiling com.google.common.collect.ArrayTable(ArrayTable other).
|
void |
testDisjointObject() |
void |
testDouble() |
void |
testFloat() |
private void |
testHelper(String name,
Object src) |
void |
testInt() |
void |
testLong() |
void |
testObject() |
void |
testObjectExact() |
void |
testShort() |
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
boolean mustIntrinsify
public ArrayCopyIntrinsificationTest()
protected InstalledCode getCode(ResolvedJavaMethod method, StructuredGraph g)
GraalCompilerTest
getCode
in class GraalCompilerTest
method
- the method the compiled code will be associated with when installedg
- the graph to be compiled. If null, a graph will be obtained from
installedCodeOwner
via GraalCompilerTest.parseForCompile(ResolvedJavaMethod)
.public void test0()
public void test1()
public void testByte()
public void testChar()
public void testShort()
public void testInt()
public void testFloat()
public void testLong()
public void testDouble()
public void testObject()
public void testArrayStoreException()
public void testDisjointObject()
public void testObjectExact()
private void testHelper(String name, Object src)
public static Object genericArraycopy(Object src, int srcPos, Object dst, int dstPos, int length)
public static Object[] objectArraycopy(Object[] src, int srcPos, Object[] dst, int dstPos, int length)
public static Object[] objectArraycopyExact(Integer[] src, int srcPos, Integer[] dst, int dstPos, int length)
public static boolean[] booleanArraycopy(boolean[] src, int srcPos, boolean[] dst, int dstPos, int length)
public static byte[] byteArraycopy(byte[] src, int srcPos, byte[] dst, int dstPos, int length)
public static char[] charArraycopy(char[] src, int srcPos, char[] dst, int dstPos, int length)
public static short[] shortArraycopy(short[] src, int srcPos, short[] dst, int dstPos, int length)
public static int[] intArraycopy(int[] src, int srcPos, int[] dst, int dstPos, int length)
public static float[] floatArraycopy(float[] src, int srcPos, float[] dst, int dstPos, int length)
public static long[] longArraycopy(long[] src, int srcPos, long[] dst, int dstPos, int length)
public static double[] doubleArraycopy(double[] src, int srcPos, double[] dst, int dstPos, int length)
public void testCopyRows()