Home
last modified time | relevance | path

Searched refs:lookup (Results 1 – 25 of 48) sorted by relevance

12

/art/test/674-hiddenapi/src-ex/
DJLI.java23 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 …]
DChildClass.java260 final MethodHandles.Lookup lookup = MethodHandles.lookup(); in checkField() local
261 if (JLI.canDiscoverWithLookupFindGetter(lookup, klass, name, int.class) in checkField()
266 if (JLI.canDiscoverWithLookupFindStaticGetter(lookup, klass, name, int.class) in checkField()
370 final MethodHandles.Lookup lookup = MethodHandles.lookup(); 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()
469 final MethodHandles.Lookup lookup = MethodHandles.lookup(); in checkConstructor() local
470 if (JLI.canDiscoverWithLookupFindConstructor(lookup, klass, methodType) != canDiscover) { in checkConstructor()
/art/test/953-invoke-polymorphic-compiler/src/
DMain.java115 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/
DTestVariableArityLinkerMethod.java56 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 …]
DTestInvocationKinds.java30 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 …]
DTestBadBootstrapArguments.java29 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 …]
DUnrelatedBSM.java25 MethodHandles.Lookup lookup, String name, MethodType methodType, Class<?> target) in bsm() argument
27 MethodHandle mh = lookup.findStatic(target, name, methodType); in bsm()
DTestDynamicBootstrapArguments.java30 MethodHandles.Lookup lookup, in bsm() argument
39 MethodHandle mh = lookup.findStatic(definingClass, methodName, methodType); in bsm()
/art/test/956-methodhandles/src/
DMain.java47 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/
DMain.java567 MethodHandles.Lookup lookup = MethodHandles.lookup(); in main() local
572 tryAccessor(lookup.findSetter(ValueHolder.class, "m_z", boolean.class), in main()
574 tryAccessor(lookup.findGetter(ValueHolder.class, "m_z", boolean.class), in main()
577 tryAccessor(lookup.findStaticSetter(ValueHolder.class, "s_z", boolean.class), in main()
579 tryAccessor(lookup.findStaticGetter(ValueHolder.class, "s_z", boolean.class), in main()
587 tryAccessor(lookup.findSetter(ValueHolder.class, "m_b", byte.class), in main()
589 tryAccessor(lookup.findGetter(ValueHolder.class, "m_b", byte.class), in main()
592 tryAccessor(lookup.findStaticSetter(ValueHolder.class, "s_b", byte.class), in main()
594 tryAccessor(lookup.findStaticGetter(ValueHolder.class, "s_b", byte.class), in main()
602 tryAccessor(lookup.findSetter(ValueHolder.class, "m_c", char.class), in main()
[all …]
/art/test/179-nonvirtual-jni/
Dexpected-stdout.txt2 Call lookup: Base, caller: Base, Obj: Base
4 Call lookup: Base, caller: Base, Obj: Ext
6 Call lookup: Base, caller: Ext, Obj: Ext
8 Call lookup: Ext, caller: Ext, Obj: Ext
Dnonvirtual-call.cc26 JNIEnv* env, jclass, jclass lookup, jclass caller, jobject recv) { in Java_Main_callSayHiMethodNonvirtualWith() argument
27 jmethodID meth = env->GetMethodID(lookup, "sayHi", "()V"); in Java_Main_callSayHiMethodNonvirtualWith()
/art/test/1981-structural-redef-private-method-handles/src/art/
DTest1981.java114 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/
DMain.java84 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/
DMain.java73 MethodHandle delegate = MethodHandles.lookup().findStatic(Main.class, in testDropArguments()
159 MethodHandle target = MethodHandles.lookup().findStatic(Main.class, in testCatchException()
163 MethodHandle handler = MethodHandles.lookup().findStatic(Main.class, in testCatchException()
187 handler = MethodHandles.lookup().findStatic(Main.class, in testCatchException()
201 handler = MethodHandles.lookup().findVirtual(IllegalArgumentException.class, in testCatchException()
234 MethodHandle test = MethodHandles.lookup().findStatic(Main.class, in testGuardWithTest()
241 final MethodHandle target = MethodHandles.lookup().findStatic(Main.class, in testGuardWithTest()
243 final MethodHandle fallback = MethodHandles.lookup().findStatic(Main.class, in testGuardWithTest()
686 MethodHandle stringCharAt = MethodHandles.lookup().findVirtual( in testBindTo()
713 MethodHandle integerParseInt = MethodHandles.lookup().findStatic( in testBindTo()
[all …]
/art/test/712-varhandle-invocations/src/
DVarHandleAccessorExceptionTests.java48 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);
DVarHandleTypeConversionTests.java31 vh = MethodHandles.lookup().findVarHandle(cls, "i", int.class);
64 vh = MethodHandles.lookup().findVarHandle(cls, "i", Object.class);
116 vh = MethodHandles.lookup().findStaticVarHandle(cls, "z", boolean.class);
144 vh = MethodHandles.lookup().findVarHandle(cls, "b", byte.class);
345 vh = MethodHandles.lookup().findStaticVarHandle(cls, "v", boolean.class);
403 vh = MethodHandles.lookup().findStaticVarHandle(cls, "v", byte.class);
461 vh = MethodHandles.lookup().findStaticVarHandle(cls, "v", char.class);
519 vh = MethodHandles.lookup().findStaticVarHandle(cls, "v", short.class);
573 vh = MethodHandles.lookup().findStaticVarHandle(cls, "v", int.class);
621 vh = MethodHandles.lookup().findStaticVarHandle(cls, "v", long.class);
[all …]
DVarHandleFpCasTests.java30 vh = MethodHandles.lookup().findVarHandle(A.class, "field", float.class);
60 vh = MethodHandles.lookup().findVarHandle(A.class, "field", double.class);
/art/runtime/mirror/
Dmethod_handles_lookup.cc44 ArtMethod* lookup = WellKnownClasses::java_lang_invoke_MethodHandles_lookup; in GetDefault() local
45 return ObjPtr<MethodHandlesLookup>::DownCast(lookup->InvokeStatic<'L'>(self)); in GetDefault()
/art/test/1948-obsolete-const-method-handle/util-src/src/art/
DTest1948.java35 MethodHandle getClassBase64 = MethodHandles.lookup().findStatic(
37 MethodHandle getDexBase64 = MethodHandles.lookup().findStatic(
/art/test/716-jli-jit-samples/src-art/
DMain.java46 widgetIdVarHandle = MethodHandles.lookup().findVarHandle(Widget.class, "id", int.class);
83 MethodHandles.lookup() in testMethodHandleCounters()
96 MethodHandles.lookup() in testMethodHandleCounters()
/art/test/710-varhandle-creation/src/
DMain.java130 vz = MethodHandles.lookup().findVarHandle(Main.class, "z", boolean.class);
131 vb = MethodHandles.lookup().findVarHandle(Main.class, "b", byte.class);
132 vc = MethodHandles.lookup().findVarHandle(Main.class, "c", char.class);
133 vs = MethodHandles.lookup().findVarHandle(Main.class, "s", short.class);
134 vi = MethodHandles.lookup().findVarHandle(Main.class, "i", int.class);
135 vj = MethodHandles.lookup().findVarHandle(Main.class, "j", long.class);
136 vf = MethodHandles.lookup().findVarHandle(Main.class, "f", float.class);
137 vd = MethodHandles.lookup().findVarHandle(Main.class, "d", double.class);
138 vo = MethodHandles.lookup().findVarHandle(Main.class, "o", Object.class);
140 vfz = MethodHandles.lookup().findVarHandle(Main.class, "fz", boolean.class);
[all …]
/art/test/2000-virtual-list-structural/src/
DMain.java26 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/728-imt-conflict-zygote/
Dinfo.txt2 lookup an ArtMethod for an invokeinterface.
/art/test/836-32768classes/
Dinfo.txt2 shift behavior in the type lookup table code.

12