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()
434 inline bool Class::IsArrayAssignableFromArray(ObjPtr<Class> src) { in IsArrayAssignableFromArray()
440 inline bool Class::IsAssignableFromArray(ObjPtr<Class> src) { in IsAssignableFromArray()
446 ObjPtr<Class> java_lang_Object = src->GetSuperClass(); in IsAssignableFromArray()
455 inline bool Class::ResolvedFieldAccessTest(ObjPtr<Class> access_to, in ResolvedFieldAccessTest()
468 ObjPtr<Class> dex_access_to = Runtime::Current()->GetClassLinker()->LookupResolvedType( in ResolvedFieldAccessTest()
490 inline bool Class::ResolvedMethodAccessTest(ObjPtr<Class> access_to, in ResolvedMethodAccessTest()
504 ObjPtr<Class> dex_access_to = Runtime::Current()->GetClassLinker()->LookupResolvedType( in ResolvedMethodAccessTest()
528 inline bool Class::CanAccessResolvedField(ObjPtr<Class> access_to, in CanAccessResolvedField()
535 inline bool Class::CheckResolvedFieldAccess(ObjPtr<Class> access_to, in CheckResolvedFieldAccess()
542 inline bool Class::CanAccessResolvedMethod(ObjPtr<Class> access_to, in CanAccessResolvedMethod()
549 inline bool Class::CheckResolvedMethodAccess(ObjPtr<Class> access_to, in CheckResolvedMethodAccess()
558 inline bool Class::IsObsoleteVersionOf(ObjPtr<Class> klass) { in IsObsoleteVersionOf()
563 ObjPtr<Class> current(klass); in IsObsoleteVersionOf()
574 inline bool Class::IsSubClass(ObjPtr<Class> klass) { in IsSubClass()
585 ObjPtr<Class> current = this; in IsSubClass()
595 ObjPtr<mirror::Class> dis(this); in IsSubClass()
597 SubtypeCheckInfo::Result sc_result = SubtypeCheck<ObjPtr<Class>>::IsSubtypeOf(dis, klass); in IsSubClass()
617 inline ArtMethod* Class::FindVirtualMethodForInterface(ArtMethod* method, in FindVirtualMethodForInterface()
619 ObjPtr<Class> declaring_class = method->GetDeclaringClass(); in FindVirtualMethodForInterface()
639 inline ArtMethod* Class::FindVirtualMethodForVirtual(ArtMethod* method, PointerSize pointer_size) { in FindVirtualMethodForVirtual()
647 inline ArtMethod* Class::FindVirtualMethodForSuper(ArtMethod* method, PointerSize pointer_size) { in FindVirtualMethodForSuper()
652 inline ArtMethod* Class::FindVirtualMethodForVirtualOrInterface(ArtMethod* method, in FindVirtualMethodForVirtualOrInterface()
664 inline ObjPtr<IfTable> Class::GetIfTable() { in GetIfTable()
671 inline int32_t Class::GetIfTableCount() { in GetIfTableCount()
677 inline void Class::SetIfTable(ObjPtr<IfTable> new_iftable) { in SetIfTable()
683 inline LengthPrefixedArray<ArtField>* Class::GetIFieldsPtr() { in GetIFieldsPtr()
685 return GetFieldPtr<LengthPrefixedArray<ArtField>*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); in GetIFieldsPtr()
689 inline MemberOffset Class::GetFirstReferenceInstanceFieldOffset() { in GetFirstReferenceInstanceFieldOffset()
690 ObjPtr<Class> super_class = GetSuperClass<kVerifyFlags, kReadBarrierOption>(); in GetFirstReferenceInstanceFieldOffset()
697 inline MemberOffset Class::GetFirstReferenceStaticFieldOffset(PointerSize pointer_size) { in GetFirstReferenceStaticFieldOffset()
699 uint32_t base = sizeof(Class); // Static fields come after the class. in GetFirstReferenceStaticFieldOffset()
702 base = Class::ComputeClassSize( in GetFirstReferenceStaticFieldOffset()
708 inline MemberOffset Class::GetFirstReferenceStaticFieldOffsetDuringLinking( in GetFirstReferenceStaticFieldOffsetDuringLinking()
711 uint32_t base = sizeof(Class); // Static fields come after the class. in GetFirstReferenceStaticFieldOffsetDuringLinking()
714 base = Class::ComputeClassSize(true, GetVTableDuringLinking()->GetLength(), in GetFirstReferenceStaticFieldOffsetDuringLinking()
720 inline void Class::SetIFieldsPtr(LengthPrefixedArray<ArtField>* new_ifields) { in SetIFieldsPtr()
722 return SetFieldPtr<false>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); in SetIFieldsPtr()
725 inline void Class::SetIFieldsPtrUnchecked(LengthPrefixedArray<ArtField>* new_ifields) { in SetIFieldsPtrUnchecked()
726 SetFieldPtr<false, true, kVerifyNone>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); in SetIFieldsPtrUnchecked()
729 inline LengthPrefixedArray<ArtField>* Class::GetSFieldsPtrUnchecked() { in GetSFieldsPtrUnchecked()
730 return GetFieldPtr<LengthPrefixedArray<ArtField>*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); in GetSFieldsPtrUnchecked()
733 inline LengthPrefixedArray<ArtField>* Class::GetIFieldsPtrUnchecked() { in GetIFieldsPtrUnchecked()
734 return GetFieldPtr<LengthPrefixedArray<ArtField>*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); in GetIFieldsPtrUnchecked()
737 inline LengthPrefixedArray<ArtField>* Class::GetSFieldsPtr() { in GetSFieldsPtr()
742 inline void Class::SetSFieldsPtr(LengthPrefixedArray<ArtField>* new_sfields) { in SetSFieldsPtr()
744 GetFieldPtr<ArtField*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); in SetSFieldsPtr()
745 SetFieldPtr<false>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); in SetSFieldsPtr()
748 inline void Class::SetSFieldsPtrUnchecked(LengthPrefixedArray<ArtField>* new_sfields) { in SetSFieldsPtrUnchecked()
749 SetFieldPtr<false, true, kVerifyNone>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); in SetSFieldsPtrUnchecked()
752 inline ArtField* Class::GetStaticField(uint32_t i) { in GetStaticField()
756 inline ArtField* Class::GetInstanceField(uint32_t i) { in GetInstanceField()
761 inline uint32_t Class::GetReferenceInstanceOffsets() { in GetReferenceInstanceOffsets()
763 return GetField32<kVerifyFlags>(OFFSET_OF_OBJECT_MEMBER(Class, reference_instance_offsets_)); in GetReferenceInstanceOffsets()
766 inline void Class::SetClinitThreadId(pid_t new_clinit_thread_id) { in SetClinitThreadId()
767 SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); in SetClinitThreadId()
772 inline ObjPtr<String> Class::GetName() { in GetName()
774 OFFSET_OF_OBJECT_MEMBER(Class, name_)); in GetName()
777 inline void Class::SetName(ObjPtr<String> name) { in SetName()
778 SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); in SetName()
782 inline Primitive::Type Class::GetPrimitiveType() { in GetPrimitiveType()
785 int32_t v32 = GetField32<kVerifyFlags>(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); in GetPrimitiveType()
793 inline size_t Class::GetPrimitiveTypeSizeShift() { in GetPrimitiveTypeSizeShift()
796 int32_t v32 = GetField32<kVerifyFlags>(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); in GetPrimitiveTypeSizeShift()
803 inline uint32_t Class::ComputeClassSize(bool has_embedded_vtable, in ComputeClassSize()
812 uint32_t size = sizeof(Class); in ComputeClassSize()
849 inline bool Class::IsClassClass() { in IsClassClass()
853 ObjPtr<Class> java_lang_Class = GetClass<kVerifyFlags, kWithoutReadBarrier>(); in IsClassClass()
857 inline const DexFile& Class::GetDexFile() { in GetDexFile()
864 inline bool Class::DescriptorEquals(const char* match) { in DescriptorEquals()
865 ObjPtr<mirror::Class> klass = this; in DescriptorEquals()
887 inline void Class::AssertInitializedOrInitializingInThread(Thread* self) { in AssertInitializedOrInitializingInThread()
895 inline ObjPtr<ObjectArray<Class>> Class::GetProxyInterfaces() { in GetProxyInterfaces()
901 return GetFieldObject<ObjectArray<Class>>(field_offset); in GetProxyInterfaces()
904 inline ObjPtr<ObjectArray<ObjectArray<Class>>> Class::GetProxyThrows() { in GetProxyThrows()
910 return GetFieldObject<ObjectArray<ObjectArray<Class>>>(field_offset); in GetProxyThrows()
913 inline bool Class::IsBootStrapClassLoaded() { in IsBootStrapClassLoaded()
918 inline void Class::InitializeClassVisitor::operator()(ObjPtr<Object> obj, in operator()
922 ObjPtr<Class> klass = ObjPtr<Class>::DownCast(obj); in operator()
934 inline void Class::SetAccessFlagsDuringLinking(uint32_t new_access_flags) { in SetAccessFlagsDuringLinking()
939 inline void Class::SetAccessFlags(uint32_t new_access_flags) { in SetAccessFlags()
951 inline void Class::SetClassFlags(uint32_t new_flags) { in SetClassFlags()
953 OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); in SetClassFlags()
956 inline uint32_t Class::NumDirectInterfaces() { in NumDirectInterfaces()
962 ObjPtr<ObjectArray<Class>> interfaces = GetProxyInterfaces(); in NumDirectInterfaces()
974 inline ArraySlice<ArtMethod> Class::GetDirectMethods(PointerSize pointer_size) { in GetDirectMethods()
979 inline ArraySlice<ArtMethod> Class::GetDeclaredMethods(PointerSize pointer_size) { in GetDeclaredMethods()
983 inline ArraySlice<ArtMethod> Class::GetDeclaredVirtualMethods(PointerSize pointer_size) { in GetDeclaredVirtualMethods()
987 inline ArraySlice<ArtMethod> Class::GetVirtualMethods(PointerSize pointer_size) { in GetVirtualMethods()
992 inline ArraySlice<ArtMethod> Class::GetCopiedMethods(PointerSize pointer_size) { in GetCopiedMethods()
998 inline ArraySlice<ArtMethod> Class::GetMethods(PointerSize pointer_size) { in GetMethods()
1004 inline IterationRange<StrideIterator<ArtField>> Class::GetIFields() { in GetIFields()
1008 inline IterationRange<StrideIterator<ArtField>> Class::GetSFields() { in GetSFields()
1012 inline IterationRange<StrideIterator<ArtField>> Class::GetIFieldsUnchecked() { in GetIFieldsUnchecked()
1016 inline IterationRange<StrideIterator<ArtField>> Class::GetSFieldsUnchecked() { in GetSFieldsUnchecked()
1020 inline void Class::CheckPointerSize(PointerSize pointer_size) { in CheckPointerSize()
1025 inline ObjPtr<Class> Class::GetComponentType() { in GetComponentType()
1026 return GetFieldObject<Class, kVerifyFlags, kReadBarrierOption>(ComponentTypeOffset()); in GetComponentType()
1029 inline void Class::SetComponentType(ObjPtr<Class> new_component_type) { in SetComponentType()
1037 inline size_t Class::GetComponentSize() { in GetComponentSize()
1041 inline size_t Class::GetComponentSizeShift() { in GetComponentSizeShift()
1047 inline bool Class::IsObjectClass() { in IsObjectClass()
1052 inline bool Class::IsInstantiableNonArray() { in IsInstantiableNonArray()
1057 bool Class::IsInstantiable() { in IsInstantiable()
1065 inline bool Class::IsArrayClass() { in IsArrayClass()
1071 inline bool Class::IsObjectArrayClass() { in IsObjectArrayClass()
1074 const ObjPtr<Class> component_type = GetComponentType<kVerifyFlags, kWithoutReadBarrier>(); in IsObjectArrayClass()
1080 bool Class::IsPrimitiveArray() { in IsPrimitiveArray()
1083 const ObjPtr<Class> component_type = GetComponentType<kVerifyFlags, kWithoutReadBarrier>(); in IsPrimitiveArray()
1088 inline bool Class::IsAssignableFrom(ObjPtr<Class> src) { in IsAssignableFrom()
1105 inline uint32_t Class::NumDirectMethods() { in NumDirectMethods()
1109 inline uint32_t Class::NumDeclaredVirtualMethods() { in NumDeclaredVirtualMethods()
1113 inline uint32_t Class::NumVirtualMethods() { in NumVirtualMethods()
1117 inline uint32_t Class::NumInstanceFields() { in NumInstanceFields()
1122 inline uint32_t Class::NumStaticFields() { in NumStaticFields()
1128 inline void Class::FixupNativePointer( in FixupNativePointer()
1129 Class* dest, PointerSize pointer_size, const Visitor& visitor, MemberOffset member_offset) { in FixupNativePointer()
1142 inline void Class::FixupNativePointers(Class* dest, in FixupNativePointers()
1147 dest, pointer_size, visitor, OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); in FixupNativePointers()
1149 dest, pointer_size, visitor, OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); in FixupNativePointers()
1152 dest, pointer_size, visitor, OFFSET_OF_OBJECT_MEMBER(Class, methods_)); in FixupNativePointers()
1166 inline bool Class::CanAccess(ObjPtr<Class> that) { in CanAccess()
1171 inline bool Class::CanAccessMember(ObjPtr<Class> access_to, uint32_t member_flags) { in CanAccessMember()
1194 inline bool Class::CannotBeAssignedFromOtherTypes() { in CannotBeAssignedFromOtherTypes()
1198 ObjPtr<Class> component = GetComponentType(); in CannotBeAssignedFromOtherTypes()
1202 inline void Class::SetClassLoader(ObjPtr<ClassLoader> new_class_loader) { in SetClassLoader()
1204 OFFSET_OF_OBJECT_MEMBER(Class, class_loader_), new_class_loader); in SetClassLoader()
1207 inline void Class::SetRecursivelyInitialized() { in SetRecursivelyInitialized()
1209 uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); in SetRecursivelyInitialized()
1213 inline void Class::SetHasDefaultMethods() { in SetHasDefaultMethods()
1215 uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); in SetHasDefaultMethods()