/libcore/ojluni/src/main/java/java/lang/runtime/ |
D | ObjectMethods.java | 96 STRING_FORMAT = publicLookup.findStatic(String.class, "format", 98 OBJECTS_EQUALS = publicLookup.findStatic(Objects.class, "equals", 100 OBJECTS_HASHCODE = publicLookup.findStatic(Objects.class, "hashCode", 102 OBJECTS_TOSTRING = publicLookup.findStatic(Objects.class, "toString", 105 OBJECT_EQ = lookup.findStatic(OBJECT_METHODS_CLASS, "eq", 107 HASH_COMBINER = lookup.findStatic(OBJECT_METHODS_CLASS, "hashCombiner", 110 primitiveEquals.put(byte.class, lookup.findStatic(OBJECT_METHODS_CLASS, "eq", in primitiveEquals.put() 112 primitiveEquals.put(short.class, lookup.findStatic(OBJECT_METHODS_CLASS, "eq", in primitiveEquals.put() 114 primitiveEquals.put(char.class, lookup.findStatic(OBJECT_METHODS_CLASS, "eq", in primitiveEquals.put() 116 primitiveEquals.put(int.class, lookup.findStatic(OBJECT_METHODS_CLASS, "eq", in primitiveEquals.put() [all …]
|
/libcore/luni/src/test/java/libcore/java/lang/invoke/ |
D | MethodHandleCombinersTest.java | 59 MethodHandle delegate = MethodHandles.lookup().findStatic(MethodHandleCombinersTest.class, in testDropArguments() 125 MethodHandle delegate = MethodHandles.lookup().findStatic(MethodHandleCombinersTest.class, in testDropArguments_List() 173 MethodHandle target = MethodHandles.lookup().findStatic(MethodHandleCombinersTest.class, in testCatchException() 178 MethodHandle handler = MethodHandles.lookup().findStatic(MethodHandleCombinersTest.class, in testCatchException() 202 handler = MethodHandles.lookup().findStatic(MethodHandleCombinersTest.class, in testCatchException() 257 MethodHandle test = MethodHandles.lookup().findStatic(MethodHandleCombinersTest.class, in testGuardWithTest() 264 … final MethodHandle target = MethodHandles.lookup().findStatic(MethodHandleCombinersTest.class, in testGuardWithTest() 266 … final MethodHandle fallback = MethodHandles.lookup().findStatic(MethodHandleCombinersTest.class, in testGuardWithTest() 681 MethodHandle integerParseInt = MethodHandles.lookup().findStatic( in testBindTo() 717 … final MethodHandle target = MethodHandles.lookup().findStatic(MethodHandleCombinersTest.class, in testFilterReturnValue() [all …]
|
D | CallSitesTest.java | 44 return MethodHandles.lookup().findStatic(CallSitesTest.class, "add2", mt); in methodHandleForAdd2() 67 return MethodHandles.lookup().findStatic(CallSitesTest.class, "add2", add2MethodType); in createTargetHook() 75 MethodHandles.lookup().findStatic(OurConstantCallSite.class, "createTargetHook", in test_ConstantCallSiteWithHook() 122 MethodHandles.lookup().findStatic(CallSitesTest.class, "add3", mt_add3); in test_MutableCallSite() 134 MethodHandles.lookup().findStatic(CallSitesTest.class, "sub2", in test_MutableCallSite() 180 MethodHandles.lookup().findStatic(CallSitesTest.class, "add3", mt_add3); in test_VolatileCallSite() 193 MethodHandles.lookup().findStatic(CallSitesTest.class, "sub2", in test_VolatileCallSite() 203 MethodHandles.lookup().findStatic(CallSitesTest.class, "add2", type); in test_EarlyBoundMutableCallSite() 211 MethodHandles.lookup().findStatic(CallSitesTest.class, "add2", type); in test_EarlyBoundVolatileCallSite() 227 MethodHandles.lookup().findStatic(CallSitesTest.class, "add2", type); in test_LateBoundMutableCallSite() [all …]
|
D | MethodHandlesTest.java | 126 MethodHandle handle = defaultLookup.findStatic(String.class, "valueOf", in test_findStatic() 139 inUtil.findStatic(MethodHandlesTest.class, "packagePrivateStaticMethod", in test_findStatic() 147 inUtil.findStatic(MethodHandlesTest.class, "protectedStaticMethod", in test_findStatic() 155 inUtil.findStatic(MethodHandlesTest.class, "privateStaticMethod", in test_findStatic() 163 inUtil.findStatic(PackageSibling.class, "publicStaticMethod", in test_findStatic() 171 inUtil.findStatic(MethodHandlesTest.class, "publicMethod", in test_findStatic() 681 MethodHandles.lookup().findStatic(BarImpl.class, "staticMethod", in testfindStatic() 684 MethodHandles.lookup().findStatic(BarImpl.class, "staticMethod", in testfindStatic() 691 MethodHandles.lookup().findStatic(BarImpl.class, "staticMethod", in testfindStatic() 698 MethodHandles.lookup().findStatic(BarImpl.class, "<clinit>", in testfindStatic() [all …]
|
/libcore/ojluni/src/test/java/lang/invoke/ |
D | InvokeWithArgumentsTest.java | 49 MethodHandle mh = L.findStatic(L.lookupClass(), "arity", in testArity() 70 MethodHandle mh = L.findStatic(L.lookupClass(), "passThrough", in testArrayNoPassThrough() 87 MethodHandle mh = L.findStatic(L.lookupClass(), "pack", in testArrayPack() 103 MethodHandle mh = L.findStatic(L.lookupClass(), "intArray", in testPrimitiveArrayWithNull() 113 MethodHandle mh = L.findStatic(L.lookupClass(), "intArray", in testPrimitiveArrayWithRef() 127 MethodHandle mh = L.findStatic(L.lookupClass(), "numberArray", in testRefArrayWithCast()
|
D | TryFinallyTest.java | 254 MH_greet = LOOKUP.findStatic(TRY_FINALLY, "greet", MT_greet); 255 MH_exclaim = LOOKUP.findStatic(TRY_FINALLY, "exclaim", MT_exclaim); 256 MH_print = LOOKUP.findStatic(TRY_FINALLY, "print", MT_print); 257 MH_printMore = LOOKUP.findStatic(TRY_FINALLY, "printMore", MT_printMore); 258 MH_greetMore = LOOKUP.findStatic(TRY_FINALLY, "greetMore", MT_greetMore); 259 MH_exclaimMore = LOOKUP.findStatic(TRY_FINALLY, "exclaimMore", MT_exclaimMore); 260 MH_voidTarget = LOOKUP.findStatic(TRY_FINALLY, "voidTarget", MT_voidTarget); 261 MH_voidCleanup = LOOKUP.findStatic(TRY_FINALLY, "voidCleanup", MT_voidCleanup); 262 … MH_throwingTarget = LOOKUP.findStatic(TRY_FINALLY, "throwingTarget", MT_throwingTarget); 263 …MH_throwingTargetIdentity = LOOKUP.findStatic(TRY_FINALLY, "throwingTargetIdentity", MT_throwingTa… [all …]
|
D | FoldTest.java | 146 MH_adder = LOOKUP.findStatic(FOLD, "adder", MT_adder); 147 MH_adder1 = LOOKUP.findStatic(FOLD, "adder1", MT_adder1); 148 MH_multer = LOOKUP.findStatic(FOLD, "multer", MT_multer); 149 MH_str = LOOKUP.findStatic(FOLD, "str", MT_str); 150 MH_comb = LOOKUP.findStatic(FOLD, "comb", MT_comb); 151 MH_comb2 = LOOKUP.findStatic(FOLD, "comb2", MT_comb2);
|
D | RicochetTest.java | 514 private static MethodHandle findStatic(String name, in findStatic() method in RicochetTest 518 return LOOKUP.findStatic(LOOKUP.lookupClass(), name, methodType(rtype, ptypes)); in findStatic() 523 private static MethodHandle findStatic(String name, in findStatic() method in RicochetTest 526 return findStatic(name, rtype, ptypes.toArray(new Class<?>[ptypes.size()])); in findStatic() 561 opI4 = findStatic("opI4", int.class, int.class, int.class, int.class, int.class); 562 opI3 = findStatic("opI3", int.class, int.class, int.class, int.class); 563 opI2 = findStatic("opI2", int.class, int.class, int.class); 564 opI = findStatic("opI", int.class, int.class); 565 opI_L = findStatic("opI_L", Object.class, int.class); 566 opJ = findStatic("opJ", long.class, long.class); [all …]
|
D | JavaDocExamplesTest.java | 98 ADD_2 = LOOKUP.findStatic(THIS_CLASS, "add", methodType(int.class, int.class, int.class)); 99 SUB_2 = LOOKUP.findStatic(THIS_CLASS, "sub", methodType(int.class, int.class, int.class)); 127 MethodHandle MH_asList = publicLookup().findStatic(Arrays.class, in testFindStatic() 323 .findStatic(Arrays.class, "deepToString", methodType(String.class, Object[].class)); in testCollectArguments() 386 mh = lookup.findStatic(java.util.Arrays.class, "asList", mt); in testMethodHandlesSummary() 449 .findStatic(Arrays.class, "toString", methodType(String.class, char[].class)); in testAsSpreader() 462 .findStatic(Arrays.class, "deepToString", methodType(String.class, Object[].class)); in testAsCollector() 479 .findStatic(Arrays.class, "toString", methodType(String.class, byte[].class)) in testAsCollector() 483 .findStatic(Arrays.class, "toString", methodType(String.class, long[].class)) in testAsCollector() 494 .findStatic(Arrays.class, "deepToString", methodType(String.class, Object[].class)); in testAsVarargsCollector() [all …]
|
D | LoopCombinatorTest.java | 213 …MH_loop = LOOKUP.findStatic(MethodHandles.class, "loop", methodType(MethodHandle.class, MethodHand… 902 MH_f = LOOKUP.findStatic(EMPTY, "f", MT_f); 903 MH_pred = LOOKUP.findStatic(EMPTY, "pred", MT_pred); 904 MH_c = LOOKUP.findStatic(EMPTY, "c", MT_c); 960 MH_zero = LOOKUP.findStatic(FAC, "zero", MT_init); 961 MH_one = LOOKUP.findStatic(FAC, "one", MT_init); 962 MH_pred = LOOKUP.findStatic(FAC, "pred", MT_pred); 963 MH_inc = LOOKUP.findStatic(FAC, "inc", MT_fn); 964 MH_mult = LOOKUP.findStatic(FAC, "mult", MT_fn); 965 MH_dot = LOOKUP.findStatic(FAC, "dot", MT_dot); [all …]
|
D | FilterArgumentsTest.java | 120 MH_TEST = LOOKUP.findStatic(FilterTest.class, "test", 122 MH_FILTER_A = LOOKUP.findStatic(FilterTest.class, "filterA", 124 MH_FILTER_B = LOOKUP.findStatic(FilterTest.class, "filterB", 126 MH_FILTER_C = LOOKUP.findStatic(FilterTest.class, "filterC",
|
D | PermuteArgsReturnVoidTest.java | 56 MethodHandle consumeIdentity = l.findStatic( in testReturnOnStack() 59 MethodHandle consumeVoid = l.findStatic( in testReturnOnStack() 78 MethodHandle consumeVoid = l.findStatic( in testReturnFromArg()
|
D | MethodHandlesCastFailureTest.java | 88 REF_IDENTITY = PRIVATE.findStatic( 91 BOX_IDENTITY = PRIVATE.findStatic( 94 INT_IDENTITY = PRIVATE.findStatic(
|
D | VarArgsTest.java | 47 .findStatic(Arrays.class, "deepToString", methodType(String.class, Object[].class)); in testWithVarargs() 64 .findStatic(Arrays.class, "asList", methodType(List.class, Object[].class)); in testWithVarargs2()
|
D | SpreadCollectTest.java | 65 …MethodHandle compare = LOOKUP.findStatic(Objects.class, "compare", methodType(int.class, Object.cl… in testAsSpreaderExample() 245 … MH_forSpreading = LOOKUP.findStatic(SPREAD_COLLECT, "forSpreading", MT_forSpreading); 246 … MH_forCollecting = LOOKUP.findStatic(SPREAD_COLLECT, "forCollecting", MT_forCollecting); 247 …MH_forCollectingLeading = LOOKUP.findStatic(SPREAD_COLLECT, "forCollectingLeading", MT_forCollecti…
|
D | DropArgumentsTest.java | 117 MethodHandle mh1 = MethodHandles.lookup().findStatic(MethodSet.class, "mVoid", in dropArgumentsToMatchPosSkipRange() 123 MethodHandle mh2 = MethodHandles.lookup().findStatic(MethodSet.class, "mVoid", in dropArgumentsToMatchPosSkipRange()
|
D | CountedLoopIterationCountsTest.java | 83 … MH_step = MethodHandles.lookup().findStatic(CountedLoopIterationCountsTest.class, "step",
|
D | MethodHandlesGeneralTest.java | 120 target = maybeMoveIn(lookup, defc).findStatic(defc, methodName, type); in testFindStatic() 1089 MethodHandle vac0 = PRIVATE.findStatic(MethodHandlesTest.class, "called", in testVarargsCollector() 1371 …MethodHandle target = PRIVATE.findStatic(MethodHandlesTest.class, "targetIfEquals", MethodType.gen… in testGuardWithTest() 1372 …MethodHandle fallback = PRIVATE.findStatic(MethodHandlesTest.class, "fallbackIfNotEquals", MethodT… in testGuardWithTest() 1467 final MethodHandle hip = l.findStatic(MHT, "loopIntPred", methodType(B, I)); in testGenericLoopCombinator() 1468 final MethodHandle hdp = l.findStatic(MHT, "loopDoublePred", methodType(B, I, D)); in testGenericLoopCombinator() 1469 final MethodHandle hsp = l.findStatic(MHT, "loopStringPred", methodType(B, I, D, S)); in testGenericLoopCombinator() 1470 final MethodHandle his = l.findStatic(MHT, "loopIntStep", methodType(I, I)); in testGenericLoopCombinator() 1471 final MethodHandle hds = l.findStatic(MHT, "loopDoubleStep", methodType(D, I, D)); in testGenericLoopCombinator() 1472 final MethodHandle hss = l.findStatic(MHT, "loopStringStep", methodType(S, I, D, S)); in testGenericLoopCombinator() [all …]
|
D | MethodHandlesTest.java | 351 LIST_TO_STRING = PRIVATE.findStatic(PRIVATE.lookupClass(), "listToString", in varargsList() 358 LIST_TO_INT = PRIVATE.findStatic(PRIVATE.lookupClass(), "listToInt", in varargsList() 651 return PRIVATE.findStatic(Callee.class, name, type); 819 array = lookup.findStatic(ValueConversions.class, name, type); in makeArrays() 863 CHANGE_ARRAY_TYPE = IMPL_LOOKUP.findStatic(ValueConversions.class, "changeArrayType", 913 list = lookup.findStatic(ValueConversions.class, name, type); in makeLists() 929 …AS_LIST = IMPL_LOOKUP.findStatic(Arrays.class, "asList", MethodType.methodType(List.class, Object[…
|
/libcore/ojluni/src/test/java/util/Arrays/ |
D | ArraysEqCmpTest.java | 110 cpy = l.findStatic(Arrays.class, "copyOfRange", in ArrayType() 118 eq = l.findStatic(Arrays.class, "equals", eqt); in ArrayType() 119 eqr = l.findStatic(Arrays.class, "equals", eqrt); in ArrayType() 122 cmp = l.findStatic(Arrays.class, compareName, in ArrayType() 124 cmpr = l.findStatic(Arrays.class, compareName, in ArrayType() 127 mm = l.findStatic(Arrays.class, "mismatch", in ArrayType() 129 mmr = l.findStatic(Arrays.class, "mismatch", in ArrayType() 132 toString = l.findStatic(Arrays.class, "toString", in ArrayType() 136 cpy = l.findStatic(Arrays.class, "copyOfRange", in ArrayType() 144 eq = l.findStatic(Arrays.class, "equals", eqt); in ArrayType() [all …]
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/lang/invoke/ |
D | SerializedLambdaTest.java | 309 …MethodHandle fooMH = MethodHandles.lookup().findStatic(SerializedLambdaTest.class, "foo", predicat… in testDirectStdNonser() 321 …MethodHandle fooMH = MethodHandles.lookup().findStatic(SerializedLambdaTest.class, "foo", predicat… in testDirectStdSer() 332 …MethodHandle fooMH = MethodHandles.lookup().findStatic(SerializedLambdaTest.class, "foo", predicat… in testAltStdNonser() 343 …MethodHandle fooMH = MethodHandles.lookup().findStatic(SerializedLambdaTest.class, "foo", predicat… in testAltStdSer()
|
/libcore/ojluni/src/test/java/lang/StackWalker/ |
D | GetCallerClassTest.java | 254 MethodHandle mh = lookup.findStatic(GetCallerClassTest.class, in callMethodHandle() 265 MethodHandle mh = lookup.findStatic(GetCallerClassTest.class, in callMethodHandleRefl()
|
/libcore/ojluni/src/test/java/util/function/ |
D | PredicateNotTest.java | 54 return MethodHandles.lookup().findStatic(Predicate.class, "not", notType); in initializeNot()
|
/libcore/ojluni/src/test/java/nio/Buffer/ |
D | BulkPutBuffer.java | 171 alloc = lookup.findStatic(bufferType, "allocate", in BufferProxy() 173 allocBB = lookup.findStatic(ByteBuffer.class, "allocate", in BufferProxy() 175 allocDirect = lookup.findStatic(ByteBuffer.class, "allocateDirect", in BufferProxy()
|
/libcore/ojluni/src/test/java/lang/Long/ |
D | ParsingTest.java | 194 MethodHandles.lookup().findStatic(Long.class, "parseLong", parseType); in Long_parseLong()
|