Home
last modified time | relevance | path

Searched refs:mh (Results 1 – 18 of 18) sorted by relevance

/art/test/956-methodhandles/src/
DMain.java289 MethodHandle mh = BarImpl.lookup.findVirtual( in testfindVirtual() local
291 String str = (String) mh.invoke(new BarImpl()); in testfindVirtual()
298 mh = MethodHandles.lookup().findVirtual(BarImpl.class, "foo", in testfindVirtual()
300 str = (String) mh.invoke(new BarImpl()); in testfindVirtual()
307 mh = MethodHandles.lookup().findVirtual(BarImpl.class, "foo", in testfindVirtual()
313 mh = MethodHandles.lookup().findVirtual( in testfindVirtual()
316 mh = MethodHandles.lookup().findVirtual( in testfindVirtual()
321 mh = MethodHandles.lookup().findVirtual(BarImpl.class, "bar", in testfindVirtual()
323 str = (String) mh.invoke(new BarImpl()); in testfindVirtual()
328 mh = MethodHandles.lookup().findVirtual(Bar.class, "bar", in testfindVirtual()
[all …]
/art/test/953-invoke-polymorphic-compiler/src/
DMain.java114 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/
DTestInvokeCustomWithConcurrentThreads.java87 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()
DTestInvocationKinds.java32 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 …]
DTestVariableArityLinkerMethod.java62 MethodHandle mh = lookup.findStatic(lookup.lookupClass(), methodName, methodType); in bsmWithStringArray() local
63 return new ConstantCallSite(mh); in bsmWithStringArray()
140 MethodHandle mh = lookup.findStatic(lookup.lookupClass(), methodName, methodType); in bsmWithIntAndStringArray() local
141 return new ConstantCallSite(mh); in bsmWithIntAndStringArray()
220 MethodHandle mh = lookup.findStatic(lookup.lookupClass(), methodName, methodType); in bsmWithLongAndIntArray() local
221 return new ConstantCallSite(mh); in bsmWithLongAndIntArray()
259 MethodHandle mh = lookup.findStatic(lookup.lookupClass(), methodName, methodType); in bsmWithFloatAndLongArray() local
260 return new ConstantCallSite(mh); in bsmWithFloatAndLongArray()
296 MethodHandle mh = lookup.findStatic(lookup.lookupClass(), methodName, methodType); in bsmWithClassAndFloatArray() local
297 return new ConstantCallSite(mh); in bsmWithClassAndFloatArray()
[all …]
DUnrelatedBSM.java27 MethodHandle mh = lookup.findStatic(target, name, methodType); in bsm() local
28 return new ConstantCallSite(mh); in bsm()
DTestBadBootstrapArguments.java46 MethodHandle mh = lookup.findStatic(lookup.lookupClass(), methodName, methodType); in bsm() local
47 return new ConstantCallSite(mh); in bsm()
275 MethodHandle mh = lookup.findStatic(lookup.lookupClass(), methodName, methodType); in bsmDJ() local
276 return new ConstantCallSite(mh); in bsmDJ()
319 MethodHandle mh = lookup.findStatic(lookup.lookupClass(), methodName, methodType); in bsmDoubleLong() local
320 return new ConstantCallSite(mh); in bsmDoubleLong()
448 public TestersConstantCallSite(MethodHandle mh) { in TestersConstantCallSite() argument
449 super(mh); in TestersConstantCallSite()
DTestDynamicBootstrapArguments.java39 MethodHandle mh = lookup.findStatic(definingClass, methodName, methodType); in bsm() local
41 return new ConstantCallSite(mh); in bsm()
DTestReturnValues.java28 MethodHandle mh = lookup.findStatic(TestReturnValues.class, name, methodType); in bsm() local
29 return new ConstantCallSite(mh); in bsm()
/art/runtime/mirror/
Dmethod_handle_impl.cc51 Handle<mirror::MethodHandleImpl> mh(hs.NewHandle(ObjPtr<MethodHandleImpl>::DownCast( in Create() local
53 mh->Initialize(art_field_or_method, kind, method_type); in Create()
54 return mh.Get(); in Create()
/art/test/716-jli-jit-samples/src-art/
DMain.java81 MethodHandle mh = in testMethodHandleCounters() local
85 Widget w = (Widget) mh.invoke(3); in testMethodHandleCounters()
86 w = (Widget) mh.invokeExact(3); in testMethodHandleCounters()
/art/test/1948-obsolete-const-method-handle/util-src/src/art/constmethodhandle/
DTestGenerator.java166 Handle mh = new Handle( in generateRunTest() local
175 mv.visitLdcInsn(mh); in generateRunTest()
/art/test/959-invoke-polymorphic-accessors/src/
DMain.java713 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/mterp/
Dmterp.cc379 ObjPtr<mirror::MethodHandle> mh = ResolveMethodHandle(self, index, shadow_frame->GetMethod()); in MterpConstMethodHandle() local
380 if (UNLIKELY(mh == nullptr)) { in MterpConstMethodHandle()
383 shadow_frame->SetVRegReference(tgt_vreg, mh); in MterpConstMethodHandle()
/art/dexdump/
Ddexdump.cc1578 const dex::MethodHandleItem& mh = pDexFile->GetMethodHandle(idx); in dumpMethodHandle() local
1582 switch (static_cast<DexFile::MethodHandleType>(mh.method_handle_type_)) { in dumpMethodHandle()
1635 const dex::MethodId& method_id = pDexFile->GetMethodId(mh.field_or_method_idx_); in dumpMethodHandle()
1640 const dex::FieldId& field_id = pDexFile->GetFieldId(mh.field_or_method_idx_); in dumpMethodHandle()
/art/test/dexdump/
Dinvoke-custom.txt70 0x0000 - 0x0004 reg=1 mh Ljava/lang/invoke/MethodHandle;
708 0x0004 - 0x000a reg=0 mh Ljava/lang/invoke/MethodHandle;
1142 0x004f - 0x0055 reg=0 mh Ljava/lang/invoke/MethodHandle;
1189 0x0027 - 0x002d reg=0 mh Ljava/lang/invoke/MethodHandle;
1236 0x0027 - 0x002d reg=0 mh Ljava/lang/invoke/MethodHandle;
2364 0x001e - 0x002b reg=2 mh Ljava/lang/invoke/MethodHandle;
2649 0x000e - 0x0014 reg=2 mh Ljava/lang/invoke/MethodHandle;
2681 0x000e - 0x0014 reg=0 mh Ljava/lang/invoke/MethodHandle;
2714 0x000f - 0x0015 reg=0 mh Ljava/lang/invoke/MethodHandle;
2743 0x000a - 0x0010 reg=0 mh Ljava/lang/invoke/MethodHandle;
[all …]
/art/runtime/interpreter/
Dinterpreter_switch_impl-inl.h733 ObjPtr<mirror::MethodHandle> mh = cl->ResolveMethodHandle(self, in CONST_METHOD_HANDLE() local
736 if (UNLIKELY(mh == nullptr)) { in CONST_METHOD_HANDLE()
739 shadow_frame.SetVRegReference(inst->VRegA_21c(inst_data), mh); in CONST_METHOD_HANDLE()
/art/runtime/verifier/
Dmethod_verifier.cc4175 const dex::MethodHandleItem& mh = dex_file_->GetMethodHandle(index[0]); in CheckCallSite() local
4176 if (mh.method_handle_type_ != static_cast<uint16_t>(DexFile::MethodHandleType::kInvokeStatic)) { in CheckCallSite()
4179 << mh.method_handle_type_; in CheckCallSite()