/art/test/674-hiddenapi/src-ex/ |
D | JLI.java | 23 MethodHandles.Lookup lookup, Class<?> klass, String fieldName, Class<?> fieldType) { in canDiscoverWithLookupFindGetter() argument 25 return lookup.findGetter(klass, fieldName, fieldType) != null; in canDiscoverWithLookupFindGetter() 34 MethodHandles.Lookup lookup, Class<?> klass, String fieldName, Class<?> fieldType) { in canDiscoverWithLookupFindSetter() argument 36 return lookup.findSetter(klass, fieldName, fieldType) != null; in canDiscoverWithLookupFindSetter() 45 MethodHandles.Lookup lookup, Class<?> klass, String fieldName, Class<?> fieldType) { in canDiscoverWithLookupFindStaticGetter() argument 47 return lookup.findStaticGetter(klass, fieldName, fieldType) != null; in canDiscoverWithLookupFindStaticGetter() 56 MethodHandles.Lookup lookup, Class<?> klass, String fieldName, Class<?> fieldType) { in canDiscoverWithLookupFindStaticSetter() argument 58 return lookup.findStaticSetter(klass, fieldName, fieldType) != null; in canDiscoverWithLookupFindStaticSetter() 67 MethodHandles.Lookup lookup, Class<?> klass, MethodType methodType) { in canDiscoverWithLookupFindConstructor() argument 69 return lookup.findConstructor(klass, methodType) != null; in canDiscoverWithLookupFindConstructor() [all …]
|
D | ChildClass.java | 261 final MethodHandles.Lookup lookup = MethodHandles.lookup(); in checkField() local 262 if (JLI.canDiscoverWithLookupFindGetter(lookup, klass, name, int.class) in checkField() 267 if (JLI.canDiscoverWithLookupFindStaticGetter(lookup, klass, name, int.class) in checkField() 371 final MethodHandles.Lookup lookup = MethodHandles.lookup(); in checkMethod() local 373 if (JLI.canDiscoverWithLookupFindVirtual(lookup, klass, name, methodType) != canDiscover) { in checkMethod() 378 if (JLI.canDiscoverWithLookupFindStatic(lookup, klass, name, methodType) != canDiscover) { in checkMethod() 470 final MethodHandles.Lookup lookup = MethodHandles.lookup(); in checkConstructor() local 471 if (JLI.canDiscoverWithLookupFindConstructor(lookup, klass, methodType) != canDiscover) { in checkConstructor()
|
/art/test/953-invoke-polymorphic-compiler/src/ |
D | Main.java | 115 mh = MethodHandles.lookup().findStatic( in $opt$BasicTest() 120 mh = MethodHandles.lookup().findStatic( in $opt$BasicTest() 127 mh = MethodHandles.lookup().findStatic( in $opt$BasicTest() 149 mh = MethodHandles.lookup().findStatic( in $opt$BasicTest() 227 MethodHandles.Lookup lookup = MethodHandles.lookup(); in $opt$ReturnBooleanTest() local 229 lookup.findStatic(Main.class, "And", in $opt$ReturnBooleanTest() 240 mh = lookup.findStatic(Main.class, "Xor", in $opt$ReturnBooleanTest() 255 MethodHandles.Lookup lookup = MethodHandles.lookup(); in $opt$ReturnCharTest() local 256 MethodHandle mh = lookup.findStatic(Main.class, "Next", in $opt$ReturnCharTest() 264 MethodHandles.Lookup lookup = MethodHandles.lookup(); in $opt$ReturnByteTest() local [all …]
|
/art/test/952-invoke-custom/src/ |
D | TestVariableArityLinkerMethod.java | 56 MethodHandles.Lookup lookup, in bsmWithStringArray() argument 61 printBsmArgs("bsmWithStringArray", lookup, methodName, methodType, arityArgs); in bsmWithStringArray() 62 MethodHandle mh = lookup.findStatic(lookup.lookupClass(), methodName, methodType); in bsmWithStringArray() 127 MethodHandles.Lookup lookup, in bsmWithIntAndStringArray() argument 135 lookup, in bsmWithIntAndStringArray() 140 MethodHandle mh = lookup.findStatic(lookup.lookupClass(), methodName, methodType); in bsmWithIntAndStringArray() 213 MethodHandles.Lookup lookup, in bsmWithLongAndIntArray() argument 219 printBsmArgs("bsmWithLongAndIntArray", lookup, methodName, methodType, extraArg, arityArgs); in bsmWithLongAndIntArray() 220 MethodHandle mh = lookup.findStatic(lookup.lookupClass(), methodName, methodType); in bsmWithLongAndIntArray() 251 MethodHandles.Lookup lookup, in bsmWithFloatAndLongArray() argument [all …]
|
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 55 lookup.findStaticSetter( 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 147 MethodHandle mh = lookup.findVirtual(TestInvocationKinds.class, name, mt); in lookupVirtual() [all …]
|
D | TestBadBootstrapArguments.java | 29 MethodHandles.Lookup lookup, in bsm() argument 36 System.out.print(lookup.lookupClass()); in bsm() 46 MethodHandle mh = lookup.findStatic(lookup.lookupClass(), methodName, methodType); in bsm() 219 MethodHandles.Lookup lookup, in bsmZBCS() argument 264 MethodHandles.Lookup lookup, in bsmDJ() argument 275 MethodHandle mh = lookup.findStatic(lookup.lookupClass(), methodName, methodType); in bsmDJ() 308 MethodHandles.Lookup lookup, in bsmDoubleLong() argument 319 MethodHandle mh = lookup.findStatic(lookup.lookupClass(), methodName, methodType); in bsmDoubleLong() 379 static void bsmReturningVoid(MethodHandles.Lookup lookup, String name, MethodType type) { in bsmReturningVoid() argument 401 static Object bsmReturningObject(MethodHandles.Lookup lookup, String name, MethodType type) { in bsmReturningObject() argument [all …]
|
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 | TestDynamicBootstrapArguments.java | 30 MethodHandles.Lookup lookup, in bsm() argument 39 MethodHandle mh = lookup.findStatic(definingClass, methodName, methodType); in bsm()
|
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 | 47 public static final Lookup lookup = MethodHandles.lookup(); field in Main.A 55 public static final Lookup lookup = MethodHandles.lookup(); field in Main.B 59 public static final Lookup lookup = MethodHandles.lookup(); field in Main.C 67 public static final Lookup lookup = MethodHandles.lookup(); field in Main.D 71 public static final Lookup lookup = MethodHandles.lookup(); field in Main.E 85 return MethodHandles.lookup(); in getLookup() 94 return MethodHandles.lookup(); in getLookup() 125 MethodHandle mh1 = B.lookup.findSpecial(A.class /* refC */, "foo", in testfindSpecial_invokeSuperBehaviour() 155 MethodHandle mh2 = C.lookup.findSpecial(A.class /* refC */, "foo", in testfindSpecial_invokeSuperBehaviour() 161 C.lookup.findSpecial(A.class, "foo", in testfindSpecial_invokeSuperBehaviour() [all …]
|
/art/test/959-invoke-polymorphic-accessors/src/ |
D | Main.java | 565 MethodHandles.Lookup lookup = MethodHandles.lookup(); in main() local 570 tryAccessor(lookup.findSetter(ValueHolder.class, "m_z", boolean.class), in main() 572 tryAccessor(lookup.findGetter(ValueHolder.class, "m_z", boolean.class), in main() 575 tryAccessor(lookup.findStaticSetter(ValueHolder.class, "s_z", boolean.class), in main() 577 tryAccessor(lookup.findStaticGetter(ValueHolder.class, "s_z", boolean.class), in main() 585 tryAccessor(lookup.findSetter(ValueHolder.class, "m_b", byte.class), in main() 587 tryAccessor(lookup.findGetter(ValueHolder.class, "m_b", byte.class), in main() 590 tryAccessor(lookup.findStaticSetter(ValueHolder.class, "s_b", byte.class), in main() 592 tryAccessor(lookup.findStaticGetter(ValueHolder.class, "s_b", byte.class), in main() 600 tryAccessor(lookup.findSetter(ValueHolder.class, "m_c", char.class), in main() [all …]
|
/art/test/1981-structural-redef-private-method-handles/src/art/ |
D | Test1981.java | 114 return MethodHandles.lookup(); in getLookup() 174 MethodHandles.Lookup lookup = Transform.getLookup(); in doTest() local 181 lookup.findStaticGetter(Transform.class, "FOO", Object.class), in doTest() 182 lookup.findStaticGetter(Transform.class, "BAR", Object.class), in doTest() 184 Object foo_handle = vh.findStaticVarHandle(lookup, Transform.class, "FOO", Object.class); in doTest() 187 foo_handle, vh.findStaticVarHandle(lookup, Transform.class, "BAR", Object.class), in doTest() 208 MethodHandle old_field_write = lookup.findStaticSetter(Transform.class, "FOO", Object.class); in doTest() 220 lookup.findStaticGetter(Transform.class, "BAZ", Object.class), in doTest() 221 lookup.findStaticGetter(Transform.class, "FOO", Object.class), in doTest() 222 lookup.findStaticGetter(Transform.class, "BAR", Object.class), in doTest() [all …]
|
/art/test/958-methodhandle-stackframe/src-art/ |
D | Main.java | 84 MethodHandle specialFunctionHandle = MethodHandles.lookup().findStatic( in main() 118 MethodHandle returner = MethodHandles.lookup().findStatic( in main() 126 returner = MethodHandles.lookup().findStatic( in main() 134 returner = MethodHandles.lookup().findStatic( in main() 142 returner = MethodHandles.lookup().findStatic( in main() 150 returner = MethodHandles.lookup().findStatic( in main() 158 returner = MethodHandles.lookup().findStatic( in main() 166 returner = MethodHandles.lookup().findStatic( in main()
|
/art/test/957-methodhandle-transforms/src/ |
D | Main.java | 72 MethodHandle delegate = MethodHandles.lookup().findStatic(Main.class, in testDropArguments() 158 MethodHandle target = MethodHandles.lookup().findStatic(Main.class, in testCatchException() 162 MethodHandle handler = MethodHandles.lookup().findStatic(Main.class, in testCatchException() 186 handler = MethodHandles.lookup().findStatic(Main.class, in testCatchException() 200 handler = MethodHandles.lookup().findVirtual(IllegalArgumentException.class, in testCatchException() 233 MethodHandle test = MethodHandles.lookup().findStatic(Main.class, in testGuardWithTest() 240 final MethodHandle target = MethodHandles.lookup().findStatic(Main.class, in testGuardWithTest() 242 final MethodHandle fallback = MethodHandles.lookup().findStatic(Main.class, in testGuardWithTest() 685 MethodHandle stringCharAt = MethodHandles.lookup().findVirtual( in testBindTo() 712 MethodHandle integerParseInt = MethodHandles.lookup().findStatic( in testBindTo() [all …]
|
/art/test/712-varhandle-invocations/src/ |
D | VarHandleAccessorExceptionTests.java | 48 vh = MethodHandles.lookup().findStaticVarHandle(cls, "b", boolean.class); 79 vh = MethodHandles.lookup().findVarHandle(cls, "s", short.class); 108 vh = MethodHandles.lookup().findVarHandle(cls, "i", int.class); 136 vh = MethodHandles.lookup().findVarHandle(cls, "i", int.class); 167 vh = MethodHandles.lookup().findVarHandle(cls, "i", int.class); 199 vh = MethodHandles.lookup().findStaticVarHandle(cls, "b", boolean.class);
|
D | VarHandleTypeConversionTests.java | 31 vh = MethodHandles.lookup().findVarHandle(cls, "i", int.class); 68 vh = MethodHandles.lookup().findStaticVarHandle(cls, "z", boolean.class); 96 vh = MethodHandles.lookup().findVarHandle(cls, "b", byte.class); 297 vh = MethodHandles.lookup().findStaticVarHandle(cls, "v", boolean.class); 355 vh = MethodHandles.lookup().findStaticVarHandle(cls, "v", byte.class); 413 vh = MethodHandles.lookup().findStaticVarHandle(cls, "v", char.class); 471 vh = MethodHandles.lookup().findStaticVarHandle(cls, "v", short.class); 525 vh = MethodHandles.lookup().findStaticVarHandle(cls, "v", int.class); 573 vh = MethodHandles.lookup().findStaticVarHandle(cls, "v", long.class); 615 vh = MethodHandles.lookup().findStaticVarHandle(cls, "v", float.class); [all …]
|
D | VarHandleReflectiveTest.java | 30 vh = MethodHandles.lookup().findStaticVarHandle(cls, "field", int.class);
|
/art/test/1948-obsolete-const-method-handle/util-src/src/art/ |
D | Test1948.java | 35 MethodHandle getClassBase64 = MethodHandles.lookup().findStatic( 37 MethodHandle getDexBase64 = MethodHandles.lookup().findStatic(
|
/art/runtime/mirror/ |
D | method_handles_lookup.cc | 45 ArtMethod* lookup = jni::DecodeArtMethod(WellKnownClasses::java_lang_invoke_MethodHandles_lookup); in GetDefault() local 47 lookup->Invoke(self, nullptr, 0, &result, "L"); in GetDefault()
|
/art/test/716-jli-jit-samples/src-art/ |
D | Main.java | 45 widgetIdVarHandle = MethodHandles.lookup().findVarHandle(Widget.class, "id", int.class); 82 MethodHandles.lookup() in testMethodHandleCounters() 95 MethodHandles.lookup() in testMethodHandleCounters()
|
/art/test/2000-virtual-list-structural/src/ |
D | Main.java | 26 public static MethodHandles.Lookup lookup = MethodHandles.publicLookup(); field in Main 30 getcnt = lookup.findGetter(AbstractCollection.class, "cnt", Integer.TYPE); in GetHandles() 31 get_total_cnt = lookup.findStaticGetter(AbstractCollection.class, "TOTAL_COUNT", Integer.TYPE); in GetHandles()
|
/art/test/710-varhandle-creation/src/ |
D | Main.java | 129 vz = MethodHandles.lookup().findVarHandle(Main.class, "z", boolean.class); 130 vb = MethodHandles.lookup().findVarHandle(Main.class, "b", byte.class); 131 vc = MethodHandles.lookup().findVarHandle(Main.class, "c", char.class); 132 vs = MethodHandles.lookup().findVarHandle(Main.class, "s", short.class); 133 vi = MethodHandles.lookup().findVarHandle(Main.class, "i", int.class); 134 vj = MethodHandles.lookup().findVarHandle(Main.class, "j", long.class); 135 vf = MethodHandles.lookup().findVarHandle(Main.class, "f", float.class); 136 vd = MethodHandles.lookup().findVarHandle(Main.class, "d", double.class); 137 vo = MethodHandles.lookup().findVarHandle(Main.class, "o", Object.class); 139 vfz = MethodHandles.lookup().findVarHandle(Main.class, "fz", boolean.class); [all …]
|
/art/test/656-annotation-lookup-generic-jni/ |
D | info.txt | 7 annotation lookup).
|
/art/test/807-method-handle-and-mr/src/ |
D | Main.java | 32 this.handle = MethodHandles.lookup().findVirtual(A.class, "binaryFunction", in Test()
|
/art/test/1975-hello-structural-transformation/src/art/ |
D | Test1975.java | 162 final MethodHandles.Lookup l = MethodHandles.lookup(); in getMethodHandles() 203 …MethodHandleWrapper write_wrapper = new MethodHandleWrapper(MethodHandles.lookup().unreflectSetter… in doTest()
|