/aosp12/art/runtime/mirror/ |
H A D | method_type.h | 31 class MANAGED MethodType : public Object { 35 static ObjPtr<MethodType> Create(Thread* const self, 40 static ObjPtr<MethodType> CloneWithoutLeadingParameter(Thread* const self, 46 static ObjPtr<MethodType> CollectTrailingArguments(Thread* const self, 47 ObjPtr<MethodType> method_type, 76 return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); in FormOffset() 80 return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); in MethodDescriptorOffset() 84 return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); in PTypesOffset() 88 return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); in RTypeOffset() 92 return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); in WrapAltOffset() [all …]
|
H A 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 …]
|
H A 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()
|
H A D | emulated_stack_frame.h | 32 class MethodType; variable 43 Handle<mirror::MethodType> args_type, 44 Handle<mirror::MethodType> frame_type, 52 Handle<mirror::MethodType> callee_type, 62 ObjPtr<mirror::MethodType> GetType() REQUIRES_SHARED(Locks::mutator_lock_); 87 HeapReference<mirror::MethodType> callsite_type_; 90 HeapReference<mirror::MethodType> type_;
|
H A 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()
|
H A 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()
|
H A D | method_handle_impl.h | 73 ALWAYS_INLINE ObjPtr<mirror::MethodType> GetMethodType() REQUIRES_SHARED(Locks::mutator_lock_); 75 ALWAYS_INLINE ObjPtr<mirror::MethodType> GetNominalType() REQUIRES_SHARED(Locks::mutator_lock_); 96 void Initialize(uintptr_t art_field_or_method, Kind kind, Handle<MethodType> method_type) 101 HeapReference<mirror::MethodType> nominal_type_; 102 HeapReference<mirror::MethodType> method_type_; 135 Handle<MethodType> method_type)
|
/aosp12/art/runtime/ |
H A 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 …]
|
H A D | method_handles-inl.h | 108 inline bool ConvertArgumentValue(Handle<mirror::MethodType> callsite_type, in ConvertArgumentValue() 109 Handle<mirror::MethodType> callee_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() 231 Handle<mirror::MethodType> callsite_type, in PerformConversions() [all …]
|
H A D | reflection.h | 65 template<typename MethodType> 68 MethodType mid, 73 template<typename MethodType> 76 MethodType mid, 83 template<typename MethodType> 86 MethodType mid, 93 template<typename MethodType> 96 MethodType mid,
|
H A D | method_handles.cc | 195 Handle<mirror::MethodType> callsite_type, in ConvertJValueCommon() 196 Handle<mirror::MethodType> callee_type, in ConvertJValueCommon() 337 Handle<mirror::MethodType> callsite_type, in ConvertAndCopyArgumentsFromCallerFrame() 338 Handle<mirror::MethodType> callee_type, in ConvertAndCopyArgumentsFromCallerFrame() 650 Handle<mirror::MethodType> handle_type, in RefineTargetMethod() 756 Handle<mirror::MethodType> callee_type = in DoInvokePolymorphicMethod() 1064 Handle<mirror::MethodType> vh_type = in DoVarHandleInvokeTranslation() 1066 Handle<mirror::MethodType> mh_invoke_type = hs.NewHandle( in DoVarHandleInvokeTranslation() 1081 Handle<mirror::MethodType> callsite_type_without_varhandle = in DoVarHandleInvokeTranslation() 1141 Handle<mirror::MethodType> callsite_type, in MethodHandleInvokeExactInternal() [all …]
|
/aosp12/art/test/956-methodhandles/src/ |
H A D | Main.java | 21 import java.lang.invoke.MethodType; 206 MethodType.methodType(String.class, String.class)); in testExceptionDetailMessages() 308 MethodType.methodType(String.class)); in testfindVirtual() 331 MethodType.methodType(String.class)); in testfindVirtual() 345 MethodType.methodType(String.class)); in testfindVirtual() 354 MethodType.methodType(String.class)); in testfindVirtual() 361 MethodType.methodType(String.class)); in testfindVirtual() 368 MethodType.methodType(String.class)); in testfindVirtual() 803 String.class, MethodType.methodType(void.class)); in testStringConstructors() 1708 MethodType type = MethodType.methodType(String.class); in testRevealDirect() [all …]
|
/aosp12/art/test/957-methodhandle-transforms/src/ |
H A D | Main.java | 20 import java.lang.invoke.MethodType; 237 final MethodType type = MethodType.methodType(String.class, in testGuardWithTest() 823 final MethodType newType = MethodType.methodType(void.class, new Class<?>[] { in testPermuteArguments() 865 final MethodType newType = MethodType.methodType(String.class, String.class, in testPermuteArguments() 887 final MethodType newType = MethodType.methodType(void.class, in testPermuteArguments() 905 final MethodType targetType = MethodType.methodType(String.class, String.class); in testInvokers() 943 MethodType methodType = MethodType.methodType(int.class, in testSpreaders_reference() 996 MethodType methodType2 = MethodType.methodType(int.class, in testSpreaders_reference() 1101 MethodType type = MethodType.methodType(int.class, in testSpreaders_primitive() 1233 MethodType methodType = MethodType.methodType(int.class, in testInvokeWithArguments() [all …]
|
/aosp12/art/test/952-invoke-custom/src/ |
H A D | TestVariableArityLinkerMethod.java | 24 import java.lang.invoke.MethodType; 58 MethodType methodType, in bsmWithStringArray() 74 MethodType.class, 97 MethodType.class, 129 MethodType methodType, in bsmWithIntAndStringArray() 215 MethodType methodType, in bsmWithLongAndIntArray() 253 MethodType methodType, in bsmWithFloatAndLongArray() 290 MethodType methodType, in bsmWithClassAndFloatArray() 329 MethodType methodType, in bsmWithDoubleArray() 364 MethodType methodType, in bsmWithClassArray() [all …]
|
H A 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() 266 MethodType methodType, in bsmDJ() [all …]
|
H A 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()
|
H A D | TestLinkerMethodWithRange.java | 24 import java.lang.invoke.MethodType; 36 MethodType.class, 80 MethodType methodType, in primLinkerMethod() 121 MethodType.class, 150 MethodHandles.Lookup caller, String name, MethodType methodType) throws Throwable { in refLinkerMethod()
|
H A D | TestLinkerUnrelatedBSM.java | 21 import java.lang.invoke.MethodType; 31 MethodType.class, 57 MethodType.class,
|
/aosp12/art/test/dexdump/ |
H A D | invoke-custom.lst | 21 …a/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/Class… 30 …a/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;DJ)Ljava/lang/in… 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… 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/… 75 …a/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;)Ljava/lang/invo… 77 …a/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;)Ljava/lang/invo… 78 …a/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;)Ljava/lang/invo… 79 …a/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;)Ljava/lang/invo… [all …]
|
H A D | all-dex-files.lst | 107 0x000004a4 50 constmethodhandle.ConstTest displayMethodType (Ljava/lang/invoke/MethodType;)V ConstT… 110 0x00000530 6 constmethodhandle.ConstTest test2 ()Ljava/lang/invoke/MethodType; ConstTest.java -1 130 …a/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/Class… 139 …a/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;DJ)Ljava/lang/in… 141 …a/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;)Ljava/lang/Inte… 142 …a/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;)Ljava/lang/Obje… 144 …a/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;)V TestBadBootst… 145 …a/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;ZBCS)Ljava/lang/… 184 …a/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;)Ljava/lang/invo… 187 …a/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;)Ljava/lang/invo… [all …]
|
/aosp12/art/test/958-methodhandle-stackframe/src-art/ |
H A 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()
|
/aosp12/art/test/953-invoke-polymorphic-compiler/src/ |
H A 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() 257 MethodType.methodType(char.class, char.class)); in $opt$ReturnCharTest() 275 MethodType.methodType(short.class, short.class, short.class)); in $opt$ReturnShortTest() 284 MethodType.methodType(int.class, int.class, int.class)); in $opt$ReturnIntTest() 293 MethodType.methodType(long.class, long.class, long.class)); in $opt$ReturnLongTest() 302 MethodType.methodType(float.class, float.class, float.class)); in $opt$ReturnFloatTest() [all …]
|
/aosp12/art/test/979-const-method-handle/src/ |
H A 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()
|
/aosp12/art/test/955-methodhandles-smali/smali/ |
H A D | Main.smali | 18 # MethodHandle Main.getHandleForVirtual(Class<?> defc, String name, MethodType type); 22 …tHandleForVirtual(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/invoke/MethodType;)Ljava/lang/invo… 35 # MethodHandle Main.getHandleForStatic(Class<?> defc, String name, MethodType type); 59 # Call MethodType.methodType(rtype=String.class, ptype[0] = String.class) 60 …atic {v1, v1}, Ljava/lang/invoke/MethodType;->methodType(Ljava/lang/Class;Ljava/lang/Class;)Ljava/… 81 # Call MethodType.methodType(rtype=int.class, ptype[0] = Long.class) 82 …atic {v1, v0}, Ljava/lang/invoke/MethodType;->methodType(Ljava/lang/Class;Ljava/lang/Class;)Ljava/… 106 # Call MethodType.methodType(rtype=String.class, ptype[0]=Object.class) 107 …atic {v2, v0}, Ljava/lang/invoke/MethodType;->methodType(Ljava/lang/Class;Ljava/lang/Class;)Ljava/… 127 # Call MethodType.methodType(rtype=String.class, ptype[0]=Long.class) [all …]
|
/aosp12/art/test/674-hiddenapi/src-ex/ |
H A 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()
|