Home
last modified time | relevance | path

Searched defs:constant (Results 1 – 4 of 4) sorted by relevance

/libcore/benchmarks/src/benchmarks/
DAdditionBenchmark.java32 int constant = 123; in timeAddTwoLocalInts() local
47 long constant = 123L; in timeAddTwoLocalLongs() local
62 float constant = 123.0f; in timeAddTwoLocalFloats() local
77 double constant = 123.0; in timeAddTwoLocalDoubles() local
/libcore/luni/src/test/java/libcore/java/lang/invoke/
DMethodHandleCombinersTest.java529 MethodHandle constant = MethodHandles.constant(int.class, 56); in testConstant() local
573 MethodHandle constant = MethodHandles.constant(long.class, 56l); in testConstant() local
582 MethodHandle constant = MethodHandles.constant(byte.class, (byte) 0x12); in testConstant() local
588 MethodHandle constant = MethodHandles.constant(boolean.class, true); in testConstant() local
594 MethodHandle constant = MethodHandles.constant(char.class, 'f'); in testConstant() local
600 MethodHandle constant = MethodHandles.constant(short.class, (short) 123); in testConstant() local
606 MethodHandle constant = MethodHandles.constant(float.class, 56.0f); in testConstant() local
612 MethodHandle constant = MethodHandles.constant(double.class, 256.0); in testConstant() local
618 MethodHandle constant = MethodHandles.constant(String.class, "256.0"); in testConstant() local
1803 MethodHandle constant = MethodHandles.constant(double.class, value); in testConstantMultithreaded() local
/libcore/ojluni/src/lambda/java/java/lang/invoke/
DMethodHandles.java115 MethodHandle constant(Class<?> type, Object value) { return null; } in constant() method in MethodHandles
/libcore/ojluni/src/main/java/java/lang/invoke/
DMethodHandles.java2111 MethodHandle constant(Class<?> type, Object value) { in constant() method in MethodHandles