Searched refs:mh (Results 1 – 7 of 7) sorted by relevance
/art/test/956-methodhandles/src/ |
D | Main.java | 260 MethodHandle mh = BarImpl.lookup.findVirtual( in testfindVirtual() local 262 String str = (String) mh.invoke(new BarImpl()); in testfindVirtual() 269 mh = MethodHandles.lookup().findVirtual(BarImpl.class, "foo", in testfindVirtual() 271 str = (String) mh.invoke(new BarImpl()); in testfindVirtual() 278 mh = MethodHandles.lookup().findVirtual(BarImpl.class, "foo", in testfindVirtual() 284 mh = MethodHandles.lookup().findVirtual( in testfindVirtual() 287 mh = MethodHandles.lookup().findVirtual( in testfindVirtual() 292 mh = MethodHandles.lookup().findVirtual(BarImpl.class, "bar", in testfindVirtual() 294 str = (String) mh.invoke(new BarImpl()); in testfindVirtual() 299 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/generator/ |
D | TestInvokeCustomWithConcurrentThreads.java | 93 MethodHandle mh = in linkerMethod() local 95 assertEquals(methodType, mh.type()); in linkerMethod() 96 assertEquals(mh.type().parameterCount(), 1); in linkerMethod() 97 mh = MethodHandles.insertArguments(mh, 0, threadIndex); in linkerMethod() 98 mh = MethodHandles.dropArguments(mh, 0, int.class); in linkerMethod() 99 assertEquals(mh.type().parameterCount(), 1); in linkerMethod() 100 assertEquals(methodType, mh.type()); in linkerMethod() 107 instantiated[getThreadIndex()] = new ConstantCallSite(mh); in linkerMethod()
|
/art/runtime/mirror/ |
D | method_handle_impl.cc | 70 Handle<mirror::MethodHandleImpl> mh( in Create() local 72 mh->Initialize(art_field_or_method, kind, method_type); in Create() 73 return mh.Get(); in Create()
|
/art/test/959-invoke-polymorphic-accessors/src/ |
D | Main.java | 698 MethodHandle mh = lookup.findStaticGetter(ValueHolder.class, "s_fi", int.class); in main() local 699 int initialValue = (int)mh.invokeExact(); in main() 703 MethodHandle mh = lookup.findStaticSetter(ValueHolder.class, "s_i", int.class); in main() local 704 mh.invokeExact(0); in main()
|
/art/dexdump/ |
D | dexdump.cc | 1584 const DexFile::MethodHandleItem& mh = pDexFile->GetMethodHandle(idx); in dumpMethodHandle() local 1588 switch (static_cast<DexFile::MethodHandleType>(mh.method_handle_type_)) { in dumpMethodHandle() 1641 const DexFile::MethodId& method_id = pDexFile->GetMethodId(mh.field_or_method_idx_); in dumpMethodHandle() 1646 const DexFile::FieldId& field_id = pDexFile->GetFieldId(mh.field_or_method_idx_); in dumpMethodHandle()
|
/art/runtime/verifier/ |
D | method_verifier.cc | 4163 const DexFile::MethodHandleItem& mh = dex_file_->GetMethodHandle(method_handle_idx); in CheckCallSite() local 4164 if (mh.method_handle_type_ != static_cast<uint16_t>(DexFile::MethodHandleType::kInvokeStatic)) { in CheckCallSite() 4167 << mh.method_handle_type_; in CheckCallSite() 4180 const DexFile::MethodId& method_id = dex_file_->GetMethodId(mh.field_or_method_idx_); in CheckCallSite()
|