/art/test/952-invoke-custom/src/ |
D | TestInvocationKinds.java | 30 MethodHandles.Lookup lookup, String name, MethodType methodType) throws Throwable { in lookupStaticFieldGetter() argument 33 lookup.findStaticGetter(TestInvocationKinds.class, name, methodType.returnType()); in lookupStaticFieldGetter() 52 MethodHandles.Lookup lookup, String name, MethodType methodType) throws Throwable { in lookupStaticFieldSetter() argument 56 TestInvocationKinds.class, name, methodType.parameterType(0)); in lookupStaticFieldSetter() 76 MethodHandles.Lookup lookup, String name, MethodType methodType) throws Throwable { in lookupInstanceFieldSetter() argument 79 lookup.findSetter(methodType.parameterType(0), name, methodType.parameterType(1)); in lookupInstanceFieldSetter() 99 MethodHandles.Lookup lookup, String name, MethodType methodType) throws Throwable { in lookupInstanceFieldGetter() argument 102 lookup.findGetter(methodType.parameterType(0), name, methodType.returnType()); in lookupInstanceFieldGetter() 143 MethodHandles.Lookup lookup, String name, MethodType methodType) throws Throwable { in lookupVirtual() argument 146 MethodType mt = methodType.dropParameterTypes(0, 1); in lookupVirtual() [all …]
|
D | TestVariableArityLinkerMethod.java | 58 MethodType methodType, in bsmWithStringArray() argument 61 printBsmArgs("bsmWithStringArray", lookup, methodName, methodType, arityArgs); in bsmWithStringArray() 62 MethodHandle mh = lookup.findStatic(lookup.lookupClass(), methodName, methodType); in bsmWithStringArray() 129 MethodType methodType, in bsmWithIntAndStringArray() argument 137 methodType, in bsmWithIntAndStringArray() 140 MethodHandle mh = lookup.findStatic(lookup.lookupClass(), methodName, methodType); in bsmWithIntAndStringArray() 215 MethodType methodType, in bsmWithLongAndIntArray() argument 219 printBsmArgs("bsmWithLongAndIntArray", lookup, methodName, methodType, extraArg, arityArgs); in bsmWithLongAndIntArray() 220 MethodHandle mh = lookup.findStatic(lookup.lookupClass(), methodName, methodType); in bsmWithLongAndIntArray() 253 MethodType methodType, in bsmWithFloatAndLongArray() argument [all …]
|
D | TestLinkerMethodWithRange.java | 80 MethodType methodType, in primLinkerMethod() argument 92 System.out.println("Linking " + name + " " + methodType); in primLinkerMethod() 104 caller.findStatic(TestLinkerMethodWithRange.class, name, methodType); in primLinkerMethod() 150 MethodHandles.Lookup caller, String name, MethodType methodType) throws Throwable { in refLinkerMethod() argument 151 System.out.println("Linking " + name + " " + methodType); in refLinkerMethod() 153 caller.findStatic(TestLinkerMethodWithRange.class, name, methodType); in refLinkerMethod()
|
D | UnrelatedBSM.java | 25 MethodHandles.Lookup lookup, String name, MethodType methodType, Class<?> target) in bsm() argument 27 MethodHandle mh = lookup.findStatic(target, name, methodType); in bsm()
|
D | TestLinkerMethodMinimalArguments.java | 60 MethodHandles.Lookup caller, String name, MethodType methodType) throws Throwable { in linkerMethod() argument 63 caller.findStatic(TestLinkerMethodMinimalArguments.class, name, methodType); in linkerMethod() 67 "Returning null instead of CallSite for " + name + " " + methodType); in linkerMethod()
|
D | TestInvokeCustomWithConcurrentThreads.java | 86 MethodHandles.Lookup caller, String name, MethodType methodType) throws Throwable { in linkerMethod() argument 88 caller.findStatic(TestInvokeCustomWithConcurrentThreads.class, name, methodType); in linkerMethod() 89 assertEquals(methodType, mh.type()); in linkerMethod() 94 assertEquals(methodType, mh.type()); in linkerMethod()
|
D | TestLinkerMethodMultipleArgumentTypes.java | 81 MethodType methodType, in linkerMethod() argument 93 System.out.println("Linking " + name + " " + methodType); in linkerMethod() 105 caller.findStatic(TestLinkerMethodMultipleArgumentTypes.class, name, methodType); in linkerMethod()
|
D | TestBadBootstrapArguments.java | 31 MethodType methodType, in bsm() argument 40 System.out.print(methodType); in bsm() 46 MethodHandle mh = lookup.findStatic(lookup.lookupClass(), methodName, methodType); in bsm() 221 MethodType methodType, in bsmZBCS() argument 266 MethodType methodType, in bsmDJ() argument 275 MethodHandle mh = lookup.findStatic(lookup.lookupClass(), methodName, methodType); in bsmDJ() 310 MethodType methodType, in bsmDoubleLong() argument 319 MethodHandle mh = lookup.findStatic(lookup.lookupClass(), methodName, methodType); in bsmDoubleLong()
|
D | TestDynamicBootstrapArguments.java | 32 MethodType methodType, in bsm() argument 39 MethodHandle mh = lookup.findStatic(definingClass, methodName, methodType); in bsm()
|
D | Main.java | 24 CallSite callSite = new MutableCallSite(MethodType.methodType(int.class)); in TestUninitializedCallSite() 32 callSite = new MutableCallSite(MethodType.methodType(String.class, int.class, char.class)); in TestUninitializedCallSite()
|
D | TestReturnValues.java | 26 static CallSite bsm(MethodHandles.Lookup lookup, String name, MethodType methodType) in bsm() argument 28 MethodHandle mh = lookup.findStatic(TestReturnValues.class, name, methodType); in bsm()
|
/art/test/956-methodhandles/src/ |
D | Main.java | 126 MethodType.methodType(void.class), B.class /* specialCaller */); in testfindSpecial_invokeSuperBehaviour() 156 MethodType.methodType(void.class), C.class /* specialCaller */); in testfindSpecial_invokeSuperBehaviour() 162 MethodType.methodType(void.class), D.class /* specialCaller */); in testfindSpecial_invokeSuperBehaviour() 170 MethodType.methodType(int.class), B.class /* specialCaller */); in testfindSpecial_invokeSuperBehaviour() 176 MethodType.methodType(void.class), B.class /* specialCaller */); in testfindSpecial_invokeSuperBehaviour() 185 MethodType.methodType(void.class), D.class /* specialCaller */); in testfindSpecial_invokeDirectBehaviour() 191 D.lookup.findSpecial(D.class, "privateRyan", MethodType.methodType(void.class), C.class); in testfindSpecial_invokeDirectBehaviour() 198 E.lookup.findSpecial(D.class, "privateRyan", MethodType.methodType(void.class), E.class); in testfindSpecial_invokeDirectBehaviour() 206 MethodType.methodType(String.class, String.class)); in testExceptionDetailMessages() 282 BarImpl.class, "staticMethod", MethodType.methodType(String.class)); in testfindVirtual() [all …]
|
/art/test/674-hiddenapi/src-ex/ |
D | JLI.java | 67 MethodHandles.Lookup lookup, Class<?> klass, MethodType methodType) { in canDiscoverWithLookupFindConstructor() argument 69 return lookup.findConstructor(klass, methodType) != null; in canDiscoverWithLookupFindConstructor() 78 MethodHandles.Lookup lookup, Class<?> klass, String methodName, MethodType methodType) { in canDiscoverWithLookupFindVirtual() argument 80 return lookup.findVirtual(klass, methodName, methodType) != null; in canDiscoverWithLookupFindVirtual() 89 MethodHandles.Lookup lookup, Class<?> klass, String methodName, MethodType methodType) { in canDiscoverWithLookupFindStatic() argument 91 return lookup.findStatic(klass, methodName, methodType) != null; in canDiscoverWithLookupFindStatic()
|
D | ChildClass.java | 371 final MethodType methodType = MethodType.methodType(int.class); in checkMethod() local 372 if (JLI.canDiscoverWithLookupFindVirtual(lookup, klass, name, methodType) != canDiscover) { in checkMethod() 377 if (JLI.canDiscoverWithLookupFindStatic(lookup, klass, name, methodType) != canDiscover) { in checkMethod() 437 MethodType methodType = MethodType.methodType(void.class, args); in checkConstructor() local 470 if (JLI.canDiscoverWithLookupFindConstructor(lookup, klass, methodType) != canDiscover) { in checkConstructor() 476 if (JLI.canDiscoverWithLookupFindConstructor(publicLookup, klass, methodType) != canDiscover) { in checkConstructor()
|
/art/test/957-methodhandle-transforms/src/ |
D | Main.java | 74 MethodType.methodType(void.class, new Class<?>[] { String.class, long.class })); in testDropArguments() 111 transform = transform.asType(MethodType.methodType(void.class, in testDropArguments() 160 … MethodType.methodType(String.class, new Class<?>[] { String.class, long.class, String.class })); in testCatchException() 164 MethodType.methodType(String.class, new Class<?>[] { IllegalArgumentException.class, in testCatchException() 188 MethodType.methodType(String.class, new Class<?>[] { IllegalArgumentException.class, in testCatchException() 201 "toString", MethodType.methodType(String.class)); in testCatchException() 212 adapter = adapter.asType(MethodType.methodType(String.class, in testCatchException() 235 MethodType.methodType(boolean.class, new Class<?>[] { String.class, long.class })); in testGuardWithTest() 237 final MethodType type = MethodType.methodType(String.class, in testGuardWithTest() 260 adapter = adapter.asType(MethodType.methodType(String.class, in testGuardWithTest() [all …]
|
/art/test/958-methodhandle-stackframe/src-art/ |
D | Main.java | 85 Main.class, "testDelegate_allTypes", MethodType.methodType(void.class, in main() 119 Main.class, "testDelegate_returnBoolean", MethodType.methodType(boolean.class)); in main() 127 Main.class, "testDelegate_returnChar", MethodType.methodType(char.class)); in main() 135 Main.class, "testDelegate_returnInt", MethodType.methodType(int.class)); in main() 143 Main.class, "testDelegate_returnLong", MethodType.methodType(long.class)); in main() 151 Main.class, "testDelegate_returnFloat", MethodType.methodType(float.class)); in main() 159 Main.class, "testDelegate_returnDouble", MethodType.methodType(double.class)); in main() 167 Main.class, "testDelegate_returnString", MethodType.methodType(String.class)); in main()
|
/art/test/953-invoke-polymorphic-compiler/src/ |
D | Main.java | 116 Main.class, "Min2Print2", MethodType.methodType(int.class, int.class, int.class)); in $opt$BasicTest() 122 MethodType.methodType(int.class, int.class, int.class, int.class)); in $opt$BasicTest() 129 MethodType.methodType( in $opt$BasicTest() 151 MethodType.methodType( in $opt$BasicTest() 230 MethodType.methodType(boolean.class, boolean.class, boolean.class)); in $opt$ReturnBooleanTest() 241 MethodType.methodType(boolean.class, boolean.class, boolean.class)); in $opt$ReturnBooleanTest() 257 MethodType.methodType(char.class, char.class)); in $opt$ReturnCharTest() 266 MethodType.methodType(byte.class, byte.class, byte.class)); in $opt$ReturnByteTest() 275 MethodType.methodType(short.class, short.class, short.class)); in $opt$ReturnShortTest() 284 MethodType.methodType(int.class, int.class, int.class)); in $opt$ReturnIntTest() [all …]
|
/art/test/1948-obsolete-const-method-handle/util-src/src/art/ |
D | Test1948.java | 36 Test1948.class, "getClassBase64", MethodType.methodType(String.class)); 38 Test1948.class, "getDexBase64", MethodType.methodType(String.class));
|
/art/test/955-methodhandles-smali/smali/ |
D | Main.smali | 59 # Call MethodType.methodType(rtype=String.class, ptype[0] = String.class) 60 …invoke-static {v1, v1}, Ljava/lang/invoke/MethodType;->methodType(Ljava/lang/Class;Ljava/lang/Clas… 63 # Call Main.getHandleForVirtual(String.class, "concat", methodType); 81 # Call MethodType.methodType(rtype=int.class, ptype[0] = Long.class) 82 …invoke-static {v1, v0}, Ljava/lang/invoke/MethodType;->methodType(Ljava/lang/Class;Ljava/lang/Clas… 86 # Call Main.getHandleForVirtual(Long.class, "compareTo", methodType); 106 # Call MethodType.methodType(rtype=String.class, ptype[0]=Object.class) 107 …invoke-static {v2, v0}, Ljava/lang/invoke/MethodType;->methodType(Ljava/lang/Class;Ljava/lang/Clas… 110 # Call Main.getHandleForStatic(String.class, "valueOf", methodType); 127 # Call MethodType.methodType(rtype=String.class, ptype[0]=Long.class) [all …]
|
/art/test/713-varhandle-invokers/src/ |
D | Main.java | 88 MethodType.methodType( in run() 192 MethodType.methodType( in run() 318 MethodType.methodType( in run() 392 MethodType.methodType( in run()
|
/art/test/716-jli-jit-samples/src-art/ |
D | Main.java | 84 Widget.class, MethodType.methodType(void.class, int.class)); in testMethodHandleCounters() 97 Widget.class, "getId", MethodType.methodType(int.class)); in testMethodHandleCounters()
|
/art/test/952-invoke-custom/util-src/transformer/ |
D | IndyTransformer.java | 116 String methodType = in visitMethod() local 117 MethodType.methodType( in visitMethod() 125 methodType, in visitMethod()
|
/art/test/807-method-handle-and-mr/src/ |
D | Main.java | 33 MethodType.methodType(Long.class, int.class, in Test()
|
/art/test/979-const-method-handle/src/ |
D | Main.java | 207 MethodType.methodType(String.class, int.class, Integer.class, System.class)); in main() 208 repeatConstMethodType1(MethodType.methodType(void.class, LocalClass.class)); in main()
|
/art/test/979-const-method-handle/util-src/transformer/ |
D | ConstantTransformer.java | 151 Type methodType = in visitMethod() local 155 mv.visitLdcInsn(methodType); in visitMethod()
|