public class StandardMethodSubstitutionsTest extends MethodSubstitutionTest
MethodSubstitution
s.GraalCompilerTest.ArgSupplier, GraalCompilerTest.Result
GraalTest.MultiCauseAssertionError
lastCompiledGraph
Constructor and Description |
---|
StandardMethodSubstitutionsTest() |
Modifier and Type | Method and Description |
---|---|
static long |
doubleToLongBits(double value) |
static int |
floatToIntBits(float value) |
static float |
intBitsToFloat(int value) |
static int |
integerBitCount(int value) |
static int |
integerNumberOfLeadingZeros(int value) |
static int |
integerNumberOfTrailingZeros(int value) |
static int |
integerReverseBytes(int value) |
static boolean |
isAssignableFrom(Class<?> clazz,
Class<?> other) |
static boolean |
isInstance(Class<?> clazz,
Object object) |
static boolean |
isInstance2(boolean cond,
Object object) |
static int |
longBitCount(long value) |
static double |
longBitsToDouble(long value) |
static int |
longNumberOfLeadingZeros(long value) |
static int |
longNumberOfTrailingZeros(long value) |
static long |
longReverseBytes(long value) |
static double |
mathAbs(double value) |
static double |
mathAll(double value) |
static double |
mathCos(double value) |
static double |
mathLog(double value) |
static double |
mathLog10(double value) |
static double |
mathPow(double a,
double b) |
static double |
mathPow0(double a,
double b) |
static double |
mathSin(double value) |
static double |
mathSqrt(double value) |
static double |
mathTan(double value) |
void |
testClassSubstitutions() |
void |
testDoubleSubstitutions() |
void |
testFloatSubstitutions() |
void |
testIntegerSubstitutions() |
void |
testLongSubstitutions() |
void |
testMathPow() |
void |
testMathSubstitutions() |
void |
testSubstitution(String testMethodName,
Class<?> intrinsicClass,
Class<?> holder,
String methodName,
boolean optional,
Object... args) |
assertInGraph, assertNotInGraph, executeVarargsSafe, invokeSafe, testGraph, testSubstitution
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, 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 StandardMethodSubstitutionsTest()
public void testMathSubstitutions()
public void testMathPow()
public static double mathPow(double a, double b)
public static double mathPow0(double a, double b)
public static double mathAbs(double value)
public static double mathSqrt(double value)
public static double mathLog(double value)
public static double mathLog10(double value)
public static double mathSin(double value)
public static double mathCos(double value)
public static double mathTan(double value)
public static double mathAll(double value)
public void testSubstitution(String testMethodName, Class<?> intrinsicClass, Class<?> holder, String methodName, boolean optional, Object... args)
public void testIntegerSubstitutions()
public static int integerReverseBytes(int value)
public static int integerNumberOfLeadingZeros(int value)
public static int integerNumberOfTrailingZeros(int value)
public static int integerBitCount(int value)
public void testLongSubstitutions()
public static long longReverseBytes(long value)
public static int longNumberOfLeadingZeros(long value)
public static int longNumberOfTrailingZeros(long value)
public static int longBitCount(long value)
public void testFloatSubstitutions()
public static int floatToIntBits(float value)
public static float intBitsToFloat(int value)
public void testDoubleSubstitutions()
public static long doubleToLongBits(double value)
public static double longBitsToDouble(long value)
public static boolean isInstance(Class<?> clazz, Object object)
public static boolean isInstance2(boolean cond, Object object)
public static boolean isAssignableFrom(Class<?> clazz, Class<?> other)
public void testClassSubstitutions()