Lines Matching refs:Class

49 inline uint32_t Class::GetObjectSize() {  in GetObjectSize()
56 inline uint32_t Class::GetObjectSizeAllocFastPath() { in GetObjectSizeAllocFastPath()
63 inline ObjPtr<Class> Class::GetSuperClass() { in GetSuperClass()
69 return GetFieldObject<Class, kVerifyFlags, kReadBarrierOption>( in GetSuperClass()
70 OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); in GetSuperClass()
73 inline void Class::SetSuperClass(ObjPtr<Class> new_super_class) { in SetSuperClass()
76 ObjPtr<Class> old_super_class = in SetSuperClass()
77 GetFieldObject<Class>(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); in SetSuperClass()
82 OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); in SetSuperClass()
85 inline bool Class::HasSuperClass() { in HasSuperClass()
91 inline ObjPtr<ClassLoader> Class::GetClassLoader() { in GetClassLoader()
93 OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); in GetClassLoader()
97 inline ObjPtr<ClassExt> Class::GetExtData() { in GetExtData()
99 OFFSET_OF_OBJECT_MEMBER(Class, ext_data_)); in GetExtData()
103 inline ObjPtr<DexCache> Class::GetDexCache() { in GetDexCache()
105 OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); in GetDexCache()
108 inline uint32_t Class::GetCopiedMethodsStartOffset() { in GetCopiedMethodsStartOffset()
115 GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); in GetCopiedMethodsStartOffset()
118 inline uint32_t Class::GetDirectMethodsStartOffset() { in GetDirectMethodsStartOffset()
122 inline uint32_t Class::GetVirtualMethodsStartOffset() { in GetVirtualMethodsStartOffset()
129 GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); in GetVirtualMethodsStartOffset()
133 inline ArraySlice<ArtMethod> Class::GetDirectMethodsSlice(PointerSize pointer_size) { in GetDirectMethodsSlice()
138 inline ArraySlice<ArtMethod> Class::GetDirectMethodsSliceUnchecked(PointerSize pointer_size) { in GetDirectMethodsSliceUnchecked()
146 inline ArraySlice<ArtMethod> Class::GetDeclaredMethodsSlice(PointerSize pointer_size) { in GetDeclaredMethodsSlice()
151 inline ArraySlice<ArtMethod> Class::GetDeclaredMethodsSliceUnchecked(PointerSize pointer_size) { in GetDeclaredMethodsSliceUnchecked()
159 inline ArraySlice<ArtMethod> Class::GetDeclaredVirtualMethodsSlice(PointerSize pointer_size) { in GetDeclaredVirtualMethodsSlice()
164 inline ArraySlice<ArtMethod> Class::GetDeclaredVirtualMethodsSliceUnchecked( in GetDeclaredVirtualMethodsSliceUnchecked()
173 inline ArraySlice<ArtMethod> Class::GetVirtualMethodsSlice(PointerSize pointer_size) { in GetVirtualMethodsSlice()
178 inline ArraySlice<ArtMethod> Class::GetVirtualMethodsSliceUnchecked(PointerSize pointer_size) { in GetVirtualMethodsSliceUnchecked()
187 inline ArraySlice<ArtMethod> Class::GetCopiedMethodsSlice(PointerSize pointer_size) { in GetCopiedMethodsSlice()
192 inline ArraySlice<ArtMethod> Class::GetCopiedMethodsSliceUnchecked(PointerSize pointer_size) { in GetCopiedMethodsSliceUnchecked()
200 inline LengthPrefixedArray<ArtMethod>* Class::GetMethodsPtr() { in GetMethodsPtr()
202 static_cast<uintptr_t>(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); in GetMethodsPtr()
206 inline ArraySlice<ArtMethod> Class::GetMethodsSlice(PointerSize pointer_size) { in GetMethodsSlice()
212 inline ArraySlice<ArtMethod> Class::GetMethodsSliceRangeUnchecked( in GetMethodsSliceRangeUnchecked()
233 inline uint32_t Class::NumMethods() { in NumMethods()
237 inline uint32_t Class::NumMethods(LengthPrefixedArray<ArtMethod>* methods) { in NumMethods()
241 inline ArtMethod* Class::GetDirectMethodUnchecked(size_t i, PointerSize pointer_size) { in GetDirectMethodUnchecked()
246 inline ArtMethod* Class::GetDirectMethod(size_t i, PointerSize pointer_size) { in GetDirectMethod()
251 inline void Class::SetMethodsPtr(LengthPrefixedArray<ArtMethod>* new_methods, in SetMethodsPtr()
259 inline void Class::SetMethodsPtrUnchecked(LengthPrefixedArray<ArtMethod>* new_methods, in SetMethodsPtrUnchecked()
263 SetField64<false>(OFFSET_OF_OBJECT_MEMBER(Class, methods_), in SetMethodsPtrUnchecked()
265 SetFieldShort<false>(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), in SetMethodsPtrUnchecked()
267 SetFieldShort<false>(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), in SetMethodsPtrUnchecked()
272 inline ArtMethod* Class::GetVirtualMethod(size_t i, PointerSize pointer_size) { in GetVirtualMethod()
275 << Class::PrettyClass() << " status=" << GetStatus(); in GetVirtualMethod()
279 inline ArtMethod* Class::GetVirtualMethodDuringLinking(size_t i, PointerSize pointer_size) { in GetVirtualMethodDuringLinking()
285 inline ArtMethod* Class::GetVirtualMethodUnchecked(size_t i, PointerSize pointer_size) { in GetVirtualMethodUnchecked()
291 inline ObjPtr<PointerArray> Class::GetVTable() { in GetVTable()
294 OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); in GetVTable()
297 inline ObjPtr<PointerArray> Class::GetVTableDuringLinking() { in GetVTableDuringLinking()
299 return GetFieldObject<PointerArray>(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); in GetVTableDuringLinking()
302 inline void Class::SetVTable(ObjPtr<PointerArray> new_vtable) { in SetVTable()
304 OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); in SetVTable()
308 inline bool Class::ShouldHaveImt() { in ShouldHaveImt()
313 inline bool Class::ShouldHaveEmbeddedVTable() { in ShouldHaveEmbeddedVTable()
317 inline bool Class::HasVTable() { in HasVTable()
324 inline int32_t Class::GetVTableLength() { in GetVTableLength()
335 inline ArtMethod* Class::GetVTableEntry(uint32_t i, PointerSize pointer_size) { in GetVTableEntry()
345 inline int32_t Class::GetEmbeddedVTableLength() { in GetEmbeddedVTableLength()
349 inline void Class::SetEmbeddedVTableLength(int32_t len) { in SetEmbeddedVTableLength()
354 inline ImTable* Class::GetImt(PointerSize pointer_size) { in GetImt()
358 inline void Class::SetImt(ImTable* imt, PointerSize pointer_size) { in SetImt()
363 inline MemberOffset Class::EmbeddedVTableEntryOffset(uint32_t i, PointerSize pointer_size) { in EmbeddedVTableEntryOffset()
368 inline ArtMethod* Class::GetEmbeddedVTableEntry(uint32_t i, PointerSize pointer_size) { in GetEmbeddedVTableEntry()
372 inline void Class::SetEmbeddedVTableEntryUnchecked( in SetEmbeddedVTableEntryUnchecked()
378 inline void Class::SetEmbeddedVTableEntry(uint32_t i, ArtMethod* method, PointerSize pointer_size) { in SetEmbeddedVTableEntry()
384 inline bool Class::Implements(ObjPtr<Class> klass) { in Implements()
401 inline bool Class::IsVariableSize() { in IsVariableSize()
409 inline void Class::SetObjectSize(uint32_t new_object_size) { in SetObjectSize()
412 return SetField32<false>(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); in SetObjectSize()
416 inline bool Class::IsDiscoverable(bool public_only, in IsDiscoverable()
446 inline bool Class::IsArrayAssignableFromArray(ObjPtr<Class> src) { in IsArrayAssignableFromArray()
452 inline bool Class::IsAssignableFromArray(ObjPtr<Class> src) { in IsAssignableFromArray()
458 ObjPtr<Class> java_lang_Object = src->GetSuperClass(); in IsAssignableFromArray()
467 inline bool Class::ResolvedFieldAccessTest(ObjPtr<Class> access_to, in ResolvedFieldAccessTest()
480 ObjPtr<Class> dex_access_to = Runtime::Current()->GetClassLinker()->LookupResolvedType( in ResolvedFieldAccessTest()
501 inline bool Class::CanAccessResolvedField(ObjPtr<Class> access_to, in CanAccessResolvedField()
508 inline bool Class::CheckResolvedFieldAccess(ObjPtr<Class> access_to, in CheckResolvedFieldAccess()
515 inline bool Class::IsObsoleteVersionOf(ObjPtr<Class> klass) { in IsObsoleteVersionOf()
520 ObjPtr<Class> current(klass); in IsObsoleteVersionOf()
531 inline bool Class::IsSubClass(ObjPtr<Class> klass) { in IsSubClass()
542 ObjPtr<Class> current = this; in IsSubClass()
552 ObjPtr<mirror::Class> dis(this); in IsSubClass()
554 SubtypeCheckInfo::Result sc_result = SubtypeCheck<ObjPtr<Class>>::IsSubtypeOf(dis, klass); in IsSubClass()
574 inline ArtMethod* Class::FindVirtualMethodForInterface(ArtMethod* method, in FindVirtualMethodForInterface()
576 ObjPtr<Class> declaring_class = method->GetDeclaringClass(); in FindVirtualMethodForInterface()
596 inline ArtMethod* Class::FindVirtualMethodForVirtual(ArtMethod* method, PointerSize pointer_size) { in FindVirtualMethodForVirtual()
604 inline ArtMethod* Class::FindVirtualMethodForSuper(ArtMethod* method, PointerSize pointer_size) { in FindVirtualMethodForSuper()
609 inline ArtMethod* Class::FindVirtualMethodForVirtualOrInterface(ArtMethod* method, in FindVirtualMethodForVirtualOrInterface()
621 inline ObjPtr<IfTable> Class::GetIfTable() { in GetIfTable()
628 inline int32_t Class::GetIfTableCount() { in GetIfTableCount()
634 inline void Class::SetIfTable(ObjPtr<IfTable> new_iftable) { in SetIfTable()
640 inline LengthPrefixedArray<ArtField>* Class::GetIFieldsPtr() { in GetIFieldsPtr()
642 return GetFieldPtr<LengthPrefixedArray<ArtField>*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); in GetIFieldsPtr()
646 inline MemberOffset Class::GetFirstReferenceInstanceFieldOffset() { in GetFirstReferenceInstanceFieldOffset()
647 ObjPtr<Class> super_class = GetSuperClass<kVerifyFlags, kReadBarrierOption>(); in GetFirstReferenceInstanceFieldOffset()
654 inline MemberOffset Class::GetFirstReferenceStaticFieldOffset(PointerSize pointer_size) { in GetFirstReferenceStaticFieldOffset()
656 uint32_t base = sizeof(Class); // Static fields come after the class. in GetFirstReferenceStaticFieldOffset()
659 base = Class::ComputeClassSize( in GetFirstReferenceStaticFieldOffset()
665 inline MemberOffset Class::GetFirstReferenceStaticFieldOffsetDuringLinking( in GetFirstReferenceStaticFieldOffsetDuringLinking()
668 uint32_t base = sizeof(Class); // Static fields come after the class. in GetFirstReferenceStaticFieldOffsetDuringLinking()
671 base = Class::ComputeClassSize(true, GetVTableDuringLinking()->GetLength(), in GetFirstReferenceStaticFieldOffsetDuringLinking()
677 inline void Class::SetIFieldsPtr(LengthPrefixedArray<ArtField>* new_ifields) { in SetIFieldsPtr()
679 return SetFieldPtr<false>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); in SetIFieldsPtr()
682 inline void Class::SetIFieldsPtrUnchecked(LengthPrefixedArray<ArtField>* new_ifields) { in SetIFieldsPtrUnchecked()
683 SetFieldPtr<false, true, kVerifyNone>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); in SetIFieldsPtrUnchecked()
686 inline LengthPrefixedArray<ArtField>* Class::GetSFieldsPtrUnchecked() { in GetSFieldsPtrUnchecked()
687 return GetFieldPtr<LengthPrefixedArray<ArtField>*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); in GetSFieldsPtrUnchecked()
690 inline LengthPrefixedArray<ArtField>* Class::GetIFieldsPtrUnchecked() { in GetIFieldsPtrUnchecked()
691 return GetFieldPtr<LengthPrefixedArray<ArtField>*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); in GetIFieldsPtrUnchecked()
694 inline LengthPrefixedArray<ArtField>* Class::GetSFieldsPtr() { in GetSFieldsPtr()
699 inline void Class::SetSFieldsPtr(LengthPrefixedArray<ArtField>* new_sfields) { in SetSFieldsPtr()
701 GetFieldPtr<ArtField*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); in SetSFieldsPtr()
702 SetFieldPtr<false>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); in SetSFieldsPtr()
705 inline void Class::SetSFieldsPtrUnchecked(LengthPrefixedArray<ArtField>* new_sfields) { in SetSFieldsPtrUnchecked()
706 SetFieldPtr<false, true, kVerifyNone>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); in SetSFieldsPtrUnchecked()
709 inline ArtField* Class::GetStaticField(uint32_t i) { in GetStaticField()
713 inline ArtField* Class::GetInstanceField(uint32_t i) { in GetInstanceField()
718 inline uint32_t Class::GetReferenceInstanceOffsets() { in GetReferenceInstanceOffsets()
720 return GetField32<kVerifyFlags>(OFFSET_OF_OBJECT_MEMBER(Class, reference_instance_offsets_)); in GetReferenceInstanceOffsets()
723 inline void Class::SetClinitThreadId(pid_t new_clinit_thread_id) { in SetClinitThreadId()
724 SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); in SetClinitThreadId()
729 inline ObjPtr<String> Class::GetName() { in GetName()
731 OFFSET_OF_OBJECT_MEMBER(Class, name_)); in GetName()
734 inline void Class::SetName(ObjPtr<String> name) { in SetName()
735 SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); in SetName()
739 inline Primitive::Type Class::GetPrimitiveType() { in GetPrimitiveType()
742 int32_t v32 = GetField32<kVerifyFlags>(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); in GetPrimitiveType()
750 inline size_t Class::GetPrimitiveTypeSizeShift() { in GetPrimitiveTypeSizeShift()
753 int32_t v32 = GetField32<kVerifyFlags>(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); in GetPrimitiveTypeSizeShift()
760 inline uint32_t Class::ComputeClassSize(bool has_embedded_vtable, in ComputeClassSize()
769 uint32_t size = sizeof(Class); in ComputeClassSize()
806 inline bool Class::IsClassClass() { in IsClassClass()
810 ObjPtr<Class> java_lang_Class = GetClass<kVerifyFlags, kWithoutReadBarrier>(); in IsClassClass()
814 inline const DexFile& Class::GetDexFile() { in GetDexFile()
821 inline std::string_view Class::GetDescriptorView() { in GetDescriptorView()
828 inline bool Class::DescriptorEquals(const char* match) { in DescriptorEquals()
829 ObjPtr<mirror::Class> klass = this; in DescriptorEquals()
851 inline uint32_t Class::DescriptorHash() { in DescriptorHash()
854 ObjPtr<mirror::Class> klass = this; in DescriptorHash()
879 inline void Class::AssertInitializedOrInitializingInThread(Thread* self) { in AssertInitializedOrInitializingInThread()
887 inline ObjPtr<ObjectArray<Class>> Class::GetProxyInterfaces() { in GetProxyInterfaces()
893 return GetFieldObject<ObjectArray<Class>>(field_offset); in GetProxyInterfaces()
896 inline ObjPtr<ObjectArray<ObjectArray<Class>>> Class::GetProxyThrows() { in GetProxyThrows()
902 return GetFieldObject<ObjectArray<ObjectArray<Class>>>(field_offset); in GetProxyThrows()
905 inline bool Class::IsBootStrapClassLoaded() { in IsBootStrapClassLoaded()
910 inline void Class::InitializeClassVisitor::operator()(ObjPtr<Object> obj, in operator()
914 ObjPtr<Class> klass = ObjPtr<Class>::DownCast(obj); in operator()
926 inline void Class::SetAccessFlagsDuringLinking(uint32_t new_access_flags) { in SetAccessFlagsDuringLinking()
931 inline void Class::SetAccessFlags(uint32_t new_access_flags) { in SetAccessFlags()
940 inline void Class::SetClassFlags(uint32_t new_flags) { in SetClassFlags()
942 OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); in SetClassFlags()
945 inline uint32_t Class::NumDirectInterfaces() { in NumDirectInterfaces()
951 ObjPtr<ObjectArray<Class>> interfaces = GetProxyInterfaces(); in NumDirectInterfaces()
963 inline ArraySlice<ArtMethod> Class::GetDirectMethods(PointerSize pointer_size) { in GetDirectMethods()
968 inline ArraySlice<ArtMethod> Class::GetDeclaredMethods(PointerSize pointer_size) { in GetDeclaredMethods()
972 inline ArraySlice<ArtMethod> Class::GetDeclaredVirtualMethods(PointerSize pointer_size) { in GetDeclaredVirtualMethods()
976 inline ArraySlice<ArtMethod> Class::GetVirtualMethods(PointerSize pointer_size) { in GetVirtualMethods()
981 inline ArraySlice<ArtMethod> Class::GetCopiedMethods(PointerSize pointer_size) { in GetCopiedMethods()
987 inline ArraySlice<ArtMethod> Class::GetMethods(PointerSize pointer_size) { in GetMethods()
993 inline IterationRange<StrideIterator<ArtField>> Class::GetIFields() { in GetIFields()
997 inline IterationRange<StrideIterator<ArtField>> Class::GetSFields() { in GetSFields()
1001 inline IterationRange<StrideIterator<ArtField>> Class::GetIFieldsUnchecked() { in GetIFieldsUnchecked()
1005 inline IterationRange<StrideIterator<ArtField>> Class::GetSFieldsUnchecked() { in GetSFieldsUnchecked()
1009 inline void Class::CheckPointerSize(PointerSize pointer_size) { in CheckPointerSize()
1014 inline ObjPtr<Class> Class::GetComponentType() { in GetComponentType()
1015 return GetFieldObject<Class, kVerifyFlags, kReadBarrierOption>(ComponentTypeOffset()); in GetComponentType()
1018 inline void Class::SetComponentType(ObjPtr<Class> new_component_type) { in SetComponentType()
1026 inline size_t Class::GetComponentSize() { in GetComponentSize()
1031 inline size_t Class::GetComponentSizeShift() { in GetComponentSizeShift()
1035 inline bool Class::IsObjectClass() { in IsObjectClass()
1040 inline bool Class::IsInstantiableNonArray() { in IsInstantiableNonArray()
1045 bool Class::IsInstantiable() { in IsInstantiable()
1053 inline bool Class::IsArrayClass() { in IsArrayClass()
1059 inline bool Class::IsObjectArrayClass() { in IsObjectArrayClass()
1060 const ObjPtr<Class> component_type = GetComponentType<kVerifyFlags, kReadBarrierOption>(); in IsObjectArrayClass()
1066 bool Class::IsPrimitiveArray() { in IsPrimitiveArray()
1069 const ObjPtr<Class> component_type = GetComponentType<kVerifyFlags, kWithoutReadBarrier>(); in IsPrimitiveArray()
1074 inline bool Class::IsAssignableFrom(ObjPtr<Class> src) { in IsAssignableFrom()
1091 inline uint32_t Class::NumDirectMethods() { in NumDirectMethods()
1095 inline uint32_t Class::NumDeclaredVirtualMethods() { in NumDeclaredVirtualMethods()
1099 inline uint32_t Class::NumVirtualMethods() { in NumVirtualMethods()
1103 inline uint32_t Class::NumInstanceFields() { in NumInstanceFields()
1108 inline uint32_t Class::NumStaticFields() { in NumStaticFields()
1114 inline void Class::FixupNativePointer( in FixupNativePointer()
1115 Class* dest, PointerSize pointer_size, const Visitor& visitor, MemberOffset member_offset) { in FixupNativePointer()
1128 inline void Class::FixupNativePointers(Class* dest, in FixupNativePointers()
1133 dest, pointer_size, visitor, OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); in FixupNativePointers()
1135 dest, pointer_size, visitor, OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); in FixupNativePointers()
1138 dest, pointer_size, visitor, OFFSET_OF_OBJECT_MEMBER(Class, methods_)); in FixupNativePointers()
1152 inline bool Class::CanAccess(ObjPtr<Class> that) { in CanAccess()
1157 inline bool Class::CanAccessMember(ObjPtr<Class> access_to, uint32_t member_flags) { in CanAccessMember()
1189 inline bool Class::CannotBeAssignedFromOtherTypes() { in CannotBeAssignedFromOtherTypes()
1193 ObjPtr<Class> component = GetComponentType(); in CannotBeAssignedFromOtherTypes()
1197 inline void Class::SetClassLoader(ObjPtr<ClassLoader> new_class_loader) { in SetClassLoader()
1199 OFFSET_OF_OBJECT_MEMBER(Class, class_loader_), new_class_loader); in SetClassLoader()
1202 inline void Class::SetRecursivelyInitialized() { in SetRecursivelyInitialized()
1204 uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); in SetRecursivelyInitialized()
1208 inline void Class::SetHasDefaultMethods() { in SetHasDefaultMethods()
1210 uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); in SetHasDefaultMethods()
1214 inline void Class::ClearFinalizable() { in ClearFinalizable()
1219 uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); in ClearFinalizable()
1223 inline ImTable* Class::FindSuperImt(PointerSize pointer_size) { in FindSuperImt()
1224 ObjPtr<mirror::Class> klass = this; in FindSuperImt()