Home
last modified time | relevance | path

Searched refs:MethodType (Results 1 – 25 of 88) sorted by relevance

1234

/art/runtime/mirror/
Dmethod_type.h31 class MANAGED MethodType : public Object {
35 static ObjPtr<MethodType> Create(Thread* const self,
40 static ObjPtr<MethodType> CloneWithoutLeadingParameter(Thread* const self,
41 ObjPtr<MethodType> method_type)
46 static ObjPtr<MethodType> CollectTrailingArguments(Thread* const self,
47 ObjPtr<MethodType> method_type,
64 bool IsExactMatch(ObjPtr<MethodType> target) REQUIRES_SHARED(Locks::mutator_lock_);
68 bool IsConvertible(ObjPtr<MethodType> target) REQUIRES_SHARED(Locks::mutator_lock_);
76 return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); in FormOffset()
80 return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); in MethodDescriptorOffset()
[all …]
Dmethod_type.cc39 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 …]
Dmethod_type-inl.h27 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()
Dmethod_type_test.cc41 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()
Dmethod_handle_impl-inl.h28 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()
Demulated_stack_frame.h32 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_;
Dmethod_handle_impl.h73 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)
/art/runtime/
Dmethod_handles.h33 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 …]
Dreflection.h65 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,
Dmethod_handles-inl.h108 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 …]
Dmethod_handles.cc195 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()
405 static inline bool IsCallerTransformer(Handle<mirror::MethodType> callsite_type) in IsCallerTransformer()
420 Handle<mirror::MethodType> callsite_type, in MethodHandleInvokeMethod()
421 Handle<mirror::MethodType> target_type, in MethodHandleInvokeMethod()
422 Handle<mirror::MethodType> nominal_type, in MethodHandleInvokeMethod()
534 Handle<mirror::MethodType> emulated_stack_type(hs.NewHandle(emulated_stack_frame->GetType())); in MethodHandleInvokeMethod()
556 Handle<mirror::MethodType> callsite_type, in MethodHandleInvokeTransform()
[all …]
/art/test/952-invoke-custom/src/
DTestVariableArityLinkerMethod.java24 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 …]
DTestBadBootstrapArguments.java24 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 …]
DTestInvocationKinds.java23 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()
DTestLinkerUnrelatedBSM.java21 import java.lang.invoke.MethodType;
31 MethodType.class,
57 MethodType.class,
DTestLinkerMethodMinimalArguments.java23 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()
DUnrelatedBSM.java21 import java.lang.invoke.MethodType;
25 MethodHandles.Lookup lookup, String name, MethodType methodType, Class<?> target) in bsm()
/art/test/956-methodhandles/src/
DMain.java21 import java.lang.invoke.MethodType;
126 MethodType.methodType(void.class), B.class /* specialCaller */); in testfindSpecial_invokeSuperBehaviour()
156 MethodType.methodType(void.class), C.class /* specialCaller */); in testfindSpecial_invokeSuperBehaviour()
162 MethodType.methodType(void.class), D.class /* specialCaller */); in testfindSpecial_invokeSuperBehaviour()
170 MethodType.methodType(int.class), B.class /* specialCaller */); in testfindSpecial_invokeSuperBehaviour()
176 MethodType.methodType(void.class), B.class /* specialCaller */); in testfindSpecial_invokeSuperBehaviour()
185 MethodType.methodType(void.class), D.class /* specialCaller */); in testfindSpecial_invokeDirectBehaviour()
191 D.lookup.findSpecial(D.class, "privateRyan", MethodType.methodType(void.class), C.class); in testfindSpecial_invokeDirectBehaviour()
198 E.lookup.findSpecial(D.class, "privateRyan", MethodType.methodType(void.class), E.class); in testfindSpecial_invokeDirectBehaviour()
206 MethodType.methodType(String.class, String.class)); in testExceptionDetailMessages()
[all …]
/art/test/957-methodhandle-transforms/src/
DMain.java20 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()
160MethodType.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/
DMain.java20 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/
Dinvoke-custom.lst21 …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/
DMain.java20 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/
DMain.java20 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/
DJLI.java18 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/
DTest1948.java23 import java.lang.invoke.MethodType;
36 Test1948.class, "getClassBase64", MethodType.methodType(String.class));
38 Test1948.class, "getDexBase64", MethodType.methodType(String.class));

1234