/art/test/956-methodhandles/src/ |
D | Main.java | 288 MethodHandle mh = BarImpl.lookup.findVirtual( in testfindVirtual() local 290 String str = (String) mh.invoke(new BarImpl()); in testfindVirtual() 297 mh = MethodHandles.lookup().findVirtual(BarImpl.class, "foo", in testfindVirtual() 299 str = (String) mh.invoke(new BarImpl()); in testfindVirtual() 306 mh = MethodHandles.lookup().findVirtual(BarImpl.class, "foo", in testfindVirtual() 312 mh = MethodHandles.lookup().findVirtual( in testfindVirtual() 315 mh = MethodHandles.lookup().findVirtual( in testfindVirtual() 320 mh = MethodHandles.lookup().findVirtual(BarImpl.class, "bar", in testfindVirtual() 322 str = (String) mh.invoke(new BarImpl()); in testfindVirtual() 327 mh = MethodHandles.lookup().findVirtual(Bar.class, "bar", in testfindVirtual() [all …]
|
/art/test/953-invoke-polymorphic-compiler/src/ |
D | Main.java | 114 MethodHandle mh; in $opt$BasicTest() local 115 mh = MethodHandles.lookup().findStatic( in $opt$BasicTest() 117 assertEquals((int) mh.invokeExact(33, -4), 33); in $opt$BasicTest() 118 assertEquals((int) mh.invokeExact(-4, 33), 33); in $opt$BasicTest() 120 mh = MethodHandles.lookup().findStatic( in $opt$BasicTest() 123 assertEquals((int) mh.invokeExact(33, -4, 17), 33); in $opt$BasicTest() 124 assertEquals((int) mh.invokeExact(-4, 17, 33), 17); in $opt$BasicTest() 125 assertEquals((int) mh.invokeExact(17, 33, -4), 33); in $opt$BasicTest() 127 mh = MethodHandles.lookup().findStatic( in $opt$BasicTest() 131 assertEquals((int) mh.invokeExact(33, -4, 77, 88, 99, 111), 33); in $opt$BasicTest() [all …]
|
/art/test/952-invoke-custom/src/ |
D | TestInvokeCustomWithConcurrentThreads.java | 87 MethodHandle mh = in linkerMethod() local 89 assertEquals(methodType, mh.type()); in linkerMethod() 90 assertEquals(mh.type().parameterCount(), 1); in linkerMethod() 91 mh = MethodHandles.insertArguments(mh, 0, getThreadIndex()); in linkerMethod() 92 mh = MethodHandles.dropArguments(mh, 0, int.class); in linkerMethod() 93 assertEquals(mh.type().parameterCount(), 1); in linkerMethod() 94 assertEquals(methodType, mh.type()); in linkerMethod() 101 instantiated[getThreadIndex()] = new ConstantCallSite(mh); in linkerMethod()
|
D | TestInvocationKinds.java | 32 MethodHandle mh = in lookupStaticFieldGetter() local 34 return new ConstantCallSite(mh); in lookupStaticFieldGetter() 54 MethodHandle mh = in lookupStaticFieldSetter() local 57 return new ConstantCallSite(mh); in lookupStaticFieldSetter() 78 MethodHandle mh = in lookupInstanceFieldSetter() local 80 return new ConstantCallSite(mh); in lookupInstanceFieldSetter() 101 MethodHandle mh = in lookupInstanceFieldGetter() local 103 return new ConstantCallSite(mh); in lookupInstanceFieldGetter() 147 MethodHandle mh = lookup.findVirtual(TestInvocationKinds.class, name, mt); in lookupVirtual() local 148 return new ConstantCallSite(mh); in lookupVirtual() [all …]
|
D | UnrelatedBSM.java | 27 MethodHandle mh = lookup.findStatic(target, name, methodType); in bsm() local 28 return new ConstantCallSite(mh); in bsm()
|
/art/runtime/mirror/ |
D | method_handle_impl.cc | 78 Handle<mirror::MethodHandleImpl> mh( in Create() local 80 mh->Initialize(art_field_or_method, kind, method_type); in Create() 81 return mh.Get(); in Create()
|
/art/test/1948-obsolete-const-method-handle/util-src/src/art/constmethodhandle/ |
D | TestGenerator.java | 166 Handle mh = new Handle( in generateRunTest() local 175 mv.visitLdcInsn(mh); in generateRunTest()
|
/art/test/959-invoke-polymorphic-accessors/src/ |
D | Main.java | 713 MethodHandle mh = lookup.findStaticGetter(ValueHolder.class, "s_fi", int.class); in main() local 714 int initialValue = (int) mh.invokeExact(); in main() 718 MethodHandle mh = lookup.findStaticSetter(ValueHolder.class, "s_i", int.class); in main() local 719 mh.invokeExact(0); in main() 982 MethodHandle mh = MethodHandles.lookup().unreflectSetter(f); in main() local 986 MethodHandle mh = MethodHandles.lookup().unreflectGetter(f); in main() local 998 MethodHandle mh = MethodHandles.lookup().unreflectGetter(f); in main() local 1002 MethodHandle mh = MethodHandles.lookup().unreflectSetter(f); in main() local
|
/art/runtime/interpreter/ |
D | interpreter_switch_impl.cc | 553 ObjPtr<mirror::MethodHandle> mh = cl->ResolveMethodHandle(self, in ExecuteSwitchImplCpp() local 556 if (UNLIKELY(mh == nullptr)) { in ExecuteSwitchImplCpp() 559 shadow_frame.SetVRegReference(inst->VRegA_21c(inst_data), mh.Ptr()); in ExecuteSwitchImplCpp()
|