Home
last modified time | relevance | path

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

1234

/art/runtime/mirror/
Dmethod_type.h31 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 …]
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.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_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()
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()
Demulated_stack_frame.h32 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_;
Dmethod_handle_impl.h71 ALWAYS_INLINE ObjPtr<mirror::MethodType> GetMethodType() REQUIRES_SHARED(Locks::mutator_lock_);
73 ALWAYS_INLINE ObjPtr<mirror::MethodType> GetNominalType() REQUIRES_SHARED(Locks::mutator_lock_);
94 void Initialize(uintptr_t art_field_or_method, Kind kind, Handle<MethodType> method_type)
99 HeapReference<mirror::MethodType> nominal_type_;
100 HeapReference<mirror::MethodType> method_type_;
131 Handle<MethodType> method_type)
Demulated_stack_frame-inl.h29 inline ObjPtr<mirror::MethodType> EmulatedStackFrame::GetType() { in GetType()
30 return GetFieldObject<MethodType>(OFFSET_OF_OBJECT_MEMBER(EmulatedStackFrame, type_)); in GetType()
/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.h64 template<typename MethodType>
67 MethodType mid,
72 template<typename MethodType>
75 MethodType mid,
82 template<typename MethodType>
85 MethodType mid,
92 template<typename MethodType>
95 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 …]
/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,
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/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/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/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));
/art/test/952-invoke-custom/util-src/annotations/
DBootstrapMethod.java25 import java.lang.invoke.MethodType;
44 Class<?>[] parameterTypes() default {Lookup.class, String.class, MethodType.class}; in parameterTypes()

1234