/art/runtime/mirror/ |
D | method_type.h | 31 class MANAGED MethodType : public Object { 33 static ObjPtr<MethodType> Create(Thread* const self, 38 static ObjPtr<MethodType> CloneWithoutLeadingParameter(Thread* const self, 39 ObjPtr<MethodType> method_type) 44 static ObjPtr<MethodType> CollectTrailingArguments(Thread* const self, 45 ObjPtr<MethodType> method_type, 62 bool IsExactMatch(ObjPtr<MethodType> target) REQUIRES_SHARED(Locks::mutator_lock_); 66 bool IsConvertible(ObjPtr<MethodType> target) REQUIRES_SHARED(Locks::mutator_lock_); 74 return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); in FormOffset() 78 return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); in MethodDescriptorOffset() [all …]
|
D | method_type.cc | 39 ObjPtr<MethodType> MethodType::Create(Thread* const self, in Create() 43 Handle<MethodType> mt( in Create() 44 hs.NewHandle(ObjPtr<MethodType>::DownCast(GetClassRoot<MethodType>()->AllocObject(self)))); in Create() 58 ObjPtr<MethodType> MethodType::CloneWithoutLeadingParameter(Thread* const self, in CloneWithoutLeadingParameter() 59 ObjPtr<MethodType> method_type) { in CloneWithoutLeadingParameter() 74 ObjPtr<MethodType> MethodType::CollectTrailingArguments(Thread* self, in CollectTrailingArguments() 75 ObjPtr<MethodType> method_type, in CollectTrailingArguments() 98 size_t MethodType::NumberOfVRegs() { in NumberOfVRegs() 114 bool MethodType::IsExactMatch(ObjPtr<MethodType> target) { in IsExactMatch() 130 bool MethodType::IsConvertible(ObjPtr<MethodType> target) { in IsConvertible() [all …]
|
D | method_type-inl.h | 27 inline ObjPtr<ObjectArray<Class>> MethodType::GetPTypes() { in GetPTypes() 28 return GetFieldObject<ObjectArray<Class>>(OFFSET_OF_OBJECT_MEMBER(MethodType, p_types_)); in GetPTypes() 31 inline int MethodType::GetNumberOfPTypes() { in GetNumberOfPTypes() 35 inline ObjPtr<Class> MethodType::GetRType() { in GetRType() 36 return GetFieldObject<Class>(OFFSET_OF_OBJECT_MEMBER(MethodType, r_type_)); in GetRType()
|
D | method_type_test.cc | 41 static ObjPtr<mirror::MethodType> CreateMethodType(const std::string& return_type, in CreateMethodType() 69 return mirror::MethodType::Create(self, return_clazz, param_classes); in CreateMethodType() 77 Handle<mirror::MethodType> mt1 = hs.NewHandle(CreateMethodType("String", { "Integer" })); in TEST_F() 78 Handle<mirror::MethodType> mt2 = hs.NewHandle(CreateMethodType("String", { "Integer" })); in TEST_F() 85 Handle<mirror::MethodType> mt1 = hs.NewHandle(CreateMethodType("String", { "Integer" })); in TEST_F() 86 Handle<mirror::MethodType> mt2 = hs.NewHandle(CreateMethodType("Integer", { "Integer" })); in TEST_F() 93 Handle<mirror::MethodType> mt1 = hs.NewHandle(CreateMethodType("String", { "Integer" })); in TEST_F() 94 Handle<mirror::MethodType> mt2 = hs.NewHandle(CreateMethodType("String", { "String" })); in TEST_F() 101 Handle<mirror::MethodType> mt1 = hs.NewHandle( in TEST_F() 103 Handle<mirror::MethodType> mt2 = hs.NewHandle(CreateMethodType("String", { "String" })); in TEST_F()
|
D | emulated_stack_frame.h | 32 class MethodType; variable 41 Handle<mirror::MethodType> args_type, 42 Handle<mirror::MethodType> frame_type, 50 Handle<mirror::MethodType> callee_type, 60 ObjPtr<mirror::MethodType> GetType() REQUIRES_SHARED(Locks::mutator_lock_); 85 HeapReference<mirror::MethodType> callsite_type_; 88 HeapReference<mirror::MethodType> type_;
|
D | method_handle_impl-inl.h | 28 inline ObjPtr<mirror::MethodType> MethodHandle::GetMethodType() { in GetMethodType() 29 return GetFieldObject<mirror::MethodType>(OFFSET_OF_OBJECT_MEMBER(MethodHandle, method_type_)); in GetMethodType() 32 inline ObjPtr<mirror::MethodType> MethodHandle::GetNominalType() { in GetNominalType() 33 return GetFieldObject<mirror::MethodType>(OFFSET_OF_OBJECT_MEMBER(MethodHandle, nominal_type_)); in GetNominalType()
|
D | method_handle_impl.h | 70 ALWAYS_INLINE ObjPtr<mirror::MethodType> GetMethodType() REQUIRES_SHARED(Locks::mutator_lock_); 72 ALWAYS_INLINE ObjPtr<mirror::MethodType> GetNominalType() REQUIRES_SHARED(Locks::mutator_lock_); 91 void Initialize(uintptr_t art_field_or_method, Kind kind, Handle<MethodType> method_type) 96 HeapReference<mirror::MethodType> nominal_type_; 97 HeapReference<mirror::MethodType> method_type_; 128 Handle<MethodType> method_type)
|
/art/runtime/ |
D | method_handles.h | 33 class MethodType; variable 50 bool ConvertJValueCommon(Handle<mirror::MethodType> callsite_type, 51 Handle<mirror::MethodType> callee_type, 61 ALWAYS_INLINE bool ConvertArgumentValue(Handle<mirror::MethodType> callsite_type, 62 Handle<mirror::MethodType> callee_type, 72 ALWAYS_INLINE bool ConvertReturnValue(Handle<mirror::MethodType> callsite_type, 73 Handle<mirror::MethodType> callee_type, 123 Handle<mirror::MethodType> callsite_type, 124 Handle<mirror::MethodType> callee_type, 133 Handle<mirror::MethodType> callsite_type, [all …]
|
D | method_handles-inl.h | 108 inline bool ConvertArgumentValue(Handle<mirror::MethodType> callsite_type, in ConvertArgumentValue() 109 Handle<mirror::MethodType> callee_type, in ConvertArgumentValue() 131 inline bool ConvertArgumentValue(Handle<mirror::MethodType> callsite_type, in ConvertArgumentValue() 132 Handle<mirror::MethodType> callee_type, in ConvertArgumentValue() 142 inline bool ConvertReturnValue(Handle<mirror::MethodType> callsite_type, in ConvertReturnValue() 143 Handle<mirror::MethodType> callee_type, in ConvertReturnValue() 167 Handle<mirror::MethodType> callsite_type, in PerformConversions() 168 Handle<mirror::MethodType> callee_type, in PerformConversions() 220 Handle<mirror::MethodType> callsite_type, in PerformConversions() 221 Handle<mirror::MethodType> callee_type, in PerformConversions() [all …]
|
D | method_handles.cc | 194 Handle<mirror::MethodType> callsite_type, in ConvertJValueCommon() 195 Handle<mirror::MethodType> callee_type, in ConvertJValueCommon() 336 Handle<mirror::MethodType> callsite_type, in ConvertAndCopyArgumentsFromCallerFrame() 337 Handle<mirror::MethodType> callee_type, in ConvertAndCopyArgumentsFromCallerFrame() 404 static inline bool IsCallerTransformer(Handle<mirror::MethodType> callsite_type) in IsCallerTransformer() 419 Handle<mirror::MethodType> callsite_type, in MethodHandleInvokeMethod() 420 Handle<mirror::MethodType> target_type, in MethodHandleInvokeMethod() 532 Handle<mirror::MethodType> emulated_stack_type(hs.NewHandle(emulated_stack_frame->GetType())); in MethodHandleInvokeMethod() 549 Handle<mirror::MethodType> callsite_type, in MethodHandleInvokeTransform() 550 Handle<mirror::MethodType> callee_type, in MethodHandleInvokeTransform() [all …]
|
/art/test/956-methodhandles/src/ |
D | Main.java | 21 import java.lang.invoke.MethodType; 117 MethodType.methodType(void.class), B.class /* specialCaller */); in testfindSpecial_invokeSuperBehaviour() 147 MethodType.methodType(void.class), C.class /* specialCaller */); in testfindSpecial_invokeSuperBehaviour() 153 MethodType.methodType(void.class), D.class /* specialCaller */); in testfindSpecial_invokeSuperBehaviour() 161 MethodType.methodType(int.class), B.class /* specialCaller */); in testfindSpecial_invokeSuperBehaviour() 167 MethodType.methodType(void.class), B.class /* specialCaller */); in testfindSpecial_invokeSuperBehaviour() 176 MethodType.methodType(void.class), D.class /* specialCaller */); in testfindSpecial_invokeDirectBehaviour() 182 D.lookup.findSpecial(D.class, "privateRyan", MethodType.methodType(void.class), C.class); in testfindSpecial_invokeDirectBehaviour() 189 E.lookup.findSpecial(D.class, "privateRyan", MethodType.methodType(void.class), E.class); in testfindSpecial_invokeDirectBehaviour() 197 MethodType.methodType(String.class, String.class)); in testExceptionDetailMessages() [all …]
|
/art/test/952-invoke-custom/src/ |
D | TestVariableArityLinkerMethod.java | 24 import java.lang.invoke.MethodType; 58 MethodType methodType, in bsmWithStringArray() 74 MethodType.class, 97 MethodType.class, 116 MethodType.class, 129 MethodType methodType, in bsmWithIntAndStringArray() 152 MethodType.class, 177 MethodType.class, 200 MethodType.class, 215 MethodType methodType, in bsmWithLongAndIntArray() [all …]
|
D | TestBadBootstrapArguments.java | 24 import java.lang.invoke.MethodType; 31 MethodType methodType, in bsm() 58 MethodType.class, 86 MethodType.class, 115 MethodType.class, 141 MethodType.class, 170 MethodType.class, 198 MethodType.class, 221 MethodType methodType, in bsmZBCS() 240 MethodType.class, [all …]
|
D | TestInvocationKinds.java | 23 import java.lang.invoke.MethodType; 30 MethodHandles.Lookup lookup, String name, MethodType methodType) throws Throwable { in lookupStaticFieldGetter() 52 MethodHandles.Lookup lookup, String name, MethodType methodType) throws Throwable { in lookupStaticFieldSetter() 76 MethodHandles.Lookup lookup, String name, MethodType methodType) throws Throwable { in lookupInstanceFieldSetter() 99 MethodHandles.Lookup lookup, String name, MethodType methodType) throws Throwable { in lookupInstanceFieldGetter() 143 MethodHandles.Lookup lookup, String name, MethodType methodType) throws Throwable { in lookupVirtual() 146 MethodType mt = methodType.dropParameterTypes(0, 1); in lookupVirtual() 181 MethodHandles.Lookup lookup, String name, MethodType methodType) throws Throwable { in lookupConstructor() 184 MethodType constructorMethodType = methodType.changeReturnType(void.class); in lookupConstructor()
|
D | TestLinkerUnrelatedBSM.java | 21 import java.lang.invoke.MethodType; 31 MethodType.class, 57 MethodType.class,
|
D | Main.java | 18 import java.lang.invoke.MethodType; 24 CallSite callSite = new MutableCallSite(MethodType.methodType(int.class)); in TestUninitializedCallSite() 32 callSite = new MutableCallSite(MethodType.methodType(String.class, int.class, char.class)); in TestUninitializedCallSite()
|
D | UnrelatedBSM.java | 21 import java.lang.invoke.MethodType; 25 MethodHandles.Lookup lookup, String name, MethodType methodType, Class<?> target) in bsm()
|
D | TestLinkerMethodMinimalArguments.java | 23 import java.lang.invoke.MethodType; 37 parameterTypes = {MethodHandles.Lookup.class, String.class, MethodType.class}, 60 MethodHandles.Lookup caller, String name, MethodType methodType) throws Throwable { in linkerMethod()
|
/art/test/957-methodhandle-transforms/src/ |
D | Main.java | 20 import java.lang.invoke.MethodType; 74 MethodType.methodType(void.class, new Class<?>[] { String.class, long.class })); in testDropArguments() 111 transform = transform.asType(MethodType.methodType(void.class, in testDropArguments() 160 … MethodType.methodType(String.class, new Class<?>[] { String.class, long.class, String.class })); in testCatchException() 164 MethodType.methodType(String.class, new Class<?>[] { IllegalArgumentException.class, in testCatchException() 188 MethodType.methodType(String.class, new Class<?>[] { IllegalArgumentException.class, in testCatchException() 201 "toString", MethodType.methodType(String.class)); in testCatchException() 212 adapter = adapter.asType(MethodType.methodType(String.class, in testCatchException() 235 MethodType.methodType(boolean.class, new Class<?>[] { String.class, long.class })); in testGuardWithTest() 237 final MethodType type = MethodType.methodType(String.class, in testGuardWithTest() [all …]
|
/art/test/958-methodhandle-stackframe/src-art/ |
D | Main.java | 20 import java.lang.invoke.MethodType; 85 Main.class, "testDelegate_allTypes", MethodType.methodType(void.class, in main() 119 Main.class, "testDelegate_returnBoolean", MethodType.methodType(boolean.class)); in main() 127 Main.class, "testDelegate_returnChar", MethodType.methodType(char.class)); in main() 135 Main.class, "testDelegate_returnInt", MethodType.methodType(int.class)); in main() 143 Main.class, "testDelegate_returnLong", MethodType.methodType(long.class)); in main() 151 Main.class, "testDelegate_returnFloat", MethodType.methodType(float.class)); in main() 159 Main.class, "testDelegate_returnDouble", MethodType.methodType(double.class)); in main() 167 Main.class, "testDelegate_returnString", MethodType.methodType(String.class)); in main()
|
/art/test/dexdump/ |
D | invoke-custom.lst | 21 …a/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/Class… 29 …a/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;ILjava/lang/Stri… 30 …a/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;DJ)Ljava/lang/in… 31 …a/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/Doubl… 32 …a/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;)Ljava/lang/Inte… 33 …a/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;)Ljava/lang/Obje… 34 …a/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;)LTestBadBootstr… 35 …a/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;)V TestBadBootst… 36 …a/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;ZBCS)Ljava/lang/… 67 …a/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/Strin… [all …]
|
/art/test/979-const-method-handle/src/ |
D | Main.java | 20 import java.lang.invoke.MethodType; 62 private static MethodType methodType0() { in methodType0() 70 private static MethodType methodType1() { in methodType1() 75 private static void repeatConstMethodType0(MethodType expected) { in repeatConstMethodType0() 80 MethodType actual = methodType0(); in repeatConstMethodType0() 85 private static void repeatConstMethodType1(MethodType expected) { in repeatConstMethodType1() 90 MethodType actual = methodType1(); in repeatConstMethodType1() 207 MethodType.methodType(String.class, int.class, Integer.class, System.class)); in main() 208 repeatConstMethodType1(MethodType.methodType(void.class, LocalClass.class)); in main()
|
/art/test/953-invoke-polymorphic-compiler/src/ |
D | Main.java | 20 import java.lang.invoke.MethodType; 116 Main.class, "Min2Print2", MethodType.methodType(int.class, int.class, int.class)); in $opt$BasicTest() 122 MethodType.methodType(int.class, int.class, int.class, int.class)); in $opt$BasicTest() 129 MethodType.methodType( in $opt$BasicTest() 151 MethodType.methodType( in $opt$BasicTest() 230 MethodType.methodType(boolean.class, boolean.class, boolean.class)); in $opt$ReturnBooleanTest() 241 MethodType.methodType(boolean.class, boolean.class, boolean.class)); in $opt$ReturnBooleanTest() 257 MethodType.methodType(char.class, char.class)); in $opt$ReturnCharTest() 266 MethodType.methodType(byte.class, byte.class, byte.class)); in $opt$ReturnByteTest() 275 MethodType.methodType(short.class, short.class, short.class)); in $opt$ReturnShortTest() [all …]
|
/art/test/674-hiddenapi/src-ex/ |
D | JLI.java | 18 import java.lang.invoke.MethodType; 67 MethodHandles.Lookup lookup, Class<?> klass, MethodType methodType) { in canDiscoverWithLookupFindConstructor() 78 MethodHandles.Lookup lookup, Class<?> klass, String methodName, MethodType methodType) { in canDiscoverWithLookupFindVirtual() 89 MethodHandles.Lookup lookup, Class<?> klass, String methodName, MethodType methodType) { in canDiscoverWithLookupFindStatic()
|
/art/test/1948-obsolete-const-method-handle/util-src/src/art/ |
D | Test1948.java | 23 import java.lang.invoke.MethodType; 36 Test1948.class, "getClassBase64", MethodType.methodType(String.class)); 38 Test1948.class, "getDexBase64", MethodType.methodType(String.class));
|