/art/runtime/ |
D | imt_conflict_table.h | 48 PointerSize pointer_size) { in ImtConflictTable() argument 49 const size_t count = other->NumEntries(pointer_size); in ImtConflictTable() 51 SetInterfaceMethod(i, pointer_size, other->GetInterfaceMethod(i, pointer_size)); in ImtConflictTable() 52 SetImplementationMethod(i, pointer_size, other->GetImplementationMethod(i, pointer_size)); in ImtConflictTable() 54 SetInterfaceMethod(count, pointer_size, interface_method); in ImtConflictTable() 55 SetImplementationMethod(count, pointer_size, implementation_method); in ImtConflictTable() 57 SetInterfaceMethod(count + 1, pointer_size, nullptr); in ImtConflictTable() 58 SetImplementationMethod(count + 1, pointer_size, nullptr); in ImtConflictTable() 62 ImtConflictTable(size_t num_entries, PointerSize pointer_size) { in ImtConflictTable() argument 63 SetInterfaceMethod(num_entries, pointer_size, nullptr); in ImtConflictTable() [all …]
|
D | imtable.h | 41 uint8_t* AddressOfElement(size_t index, PointerSize pointer_size) { in AddressOfElement() argument 42 return reinterpret_cast<uint8_t*>(this) + OffsetOfElement(index, pointer_size); in AddressOfElement() 45 ArtMethod* Get(size_t index, PointerSize pointer_size) { in Get() argument 47 uint8_t* ptr = AddressOfElement(index, pointer_size); in Get() 48 if (pointer_size == PointerSize::k32) { in Get() 57 void Set(size_t index, ArtMethod* method, PointerSize pointer_size) { in Set() argument 59 uint8_t* ptr = AddressOfElement(index, pointer_size); in Set() 60 if (pointer_size == PointerSize::k32) { in Set() 67 static size_t OffsetOfElement(size_t index, PointerSize pointer_size) { in OffsetOfElement() argument 68 return index * static_cast<size_t>(pointer_size); in OffsetOfElement() [all …]
|
D | art_method.h | 454 ArtMethod* FindOverriddenMethod(PointerSize pointer_size) 472 const void* GetEntryPointFromQuickCompiledCodePtrSize(PointerSize pointer_size) const { in GetEntryPointFromQuickCompiledCodePtrSize() argument 474 EntryPointFromQuickCompiledCodeOffset(pointer_size), pointer_size); in GetEntryPointFromQuickCompiledCodePtrSize() 483 const void* entry_point_from_quick_compiled_code, PointerSize pointer_size) in SetEntryPointFromQuickCompiledCodePtrSize() argument 485 SetNativePointer(EntryPointFromQuickCompiledCodeOffset(pointer_size), in SetEntryPointFromQuickCompiledCodePtrSize() 487 pointer_size); in SetEntryPointFromQuickCompiledCodePtrSize() 499 static constexpr MemberOffset DataOffset(PointerSize pointer_size) { in DataOffset() argument 500 return MemberOffset(PtrSizedFieldsOffset(pointer_size) + OFFSETOF_MEMBER( in DataOffset() 501 PtrSizedFields, data_) / sizeof(void*) * static_cast<size_t>(pointer_size)); in DataOffset() 504 static constexpr MemberOffset EntryPointFromJniOffset(PointerSize pointer_size) { in EntryPointFromJniOffset() argument [all …]
|
D | thread.h | 677 template<PointerSize pointer_size> 678 static constexpr ThreadOffset<pointer_size> ThinLockIdOffset() { in ThinLockIdOffset() 679 return ThreadOffset<pointer_size>( in ThinLockIdOffset() 684 template<PointerSize pointer_size> 685 static constexpr ThreadOffset<pointer_size> InterruptedOffset() { in InterruptedOffset() 686 return ThreadOffset<pointer_size>( in InterruptedOffset() 691 template<PointerSize pointer_size> 692 static constexpr ThreadOffset<pointer_size> ThreadFlagsOffset() { in ThreadFlagsOffset() 693 return ThreadOffset<pointer_size>( in ThreadFlagsOffset() 698 template<PointerSize pointer_size> [all …]
|
D | image-inl.h | 67 PointerSize pointer_size) const { in VisitPackedArtMethods() argument 68 const size_t method_alignment = ArtMethod::Alignment(pointer_size); in VisitPackedArtMethods() 69 const size_t method_size = ArtMethod::Size(pointer_size); in VisitPackedArtMethods() 89 PointerSize pointer_size) const { in VisitPackedImTables() argument 94 ArtMethod* orig = imt->Get(i, pointer_size); in VisitPackedImTables() 97 imt->Set(i, updated, pointer_size); in VisitPackedImTables() 100 pos += ImTable::SizeInBytes(pointer_size); in VisitPackedImTables() 107 PointerSize pointer_size) const { in VisitPackedImtConflictTables() argument 113 }, pointer_size); in VisitPackedImtConflictTables() 114 pos += table->ComputeSize(pointer_size); in VisitPackedImtConflictTables()
|
D | cha.cc | 84 const PointerSize pointer_size) in ResetSingleImplementationInHierarchy() 124 klass->GetVTableEntry<kDefaultVerifyFlags, kWithoutReadBarrier>(vtbl_index, pointer_size); in ResetSingleImplementationInHierarchy() 145 GetVTableEntry<kDefaultVerifyFlags, kWithoutReadBarrier>(vtbl_index, pointer_size); in ResetSingleImplementationInHierarchy() 148 super_method->GetSingleImplementation(pointer_size) == method) { in ResetSingleImplementationInHierarchy() 151 super_method->SetSingleImplementation(nullptr, pointer_size); in ResetSingleImplementationInHierarchy() 170 ArtMethod* method = interface->GetVirtualMethod(j, pointer_size); in ResetSingleImplementationInHierarchy() 172 alloc->ContainsUnsafe(method->GetSingleImplementation(pointer_size)) && in ResetSingleImplementationInHierarchy() 175 method->SetSingleImplementation(nullptr, pointer_size); in ResetSingleImplementationInHierarchy() 330 PointerSize pointer_size) { in CheckVirtualMethodSingleImplementationInfo() argument 398 if (method_in_super->GetSingleImplementation(pointer_size) == nullptr) { in CheckVirtualMethodSingleImplementationInfo() [all …]
|
D | cha.h | 121 PointerSize pointer_size) 135 PointerSize pointer_size) 149 PointerSize pointer_size) 162 PointerSize pointer_size)
|
D | art_method-inl.h | 317 inline ArtMethod* ArtMethod::GetInterfaceMethodForProxyUnchecked(PointerSize pointer_size) { in GetInterfaceMethodForProxyUnchecked() argument 321 return reinterpret_cast<ArtMethod*>(GetDataPtrSize(pointer_size)); in GetInterfaceMethodForProxyUnchecked() 324 inline ArtMethod* ArtMethod::GetInterfaceMethodIfProxy(PointerSize pointer_size) { in GetInterfaceMethodIfProxy() argument 328 ArtMethod* interface_method = GetInterfaceMethodForProxyUnchecked(pointer_size); in GetInterfaceMethodIfProxy() 363 void ArtMethod::VisitRoots(RootVisitorType& visitor, PointerSize pointer_size) { in VisitRoots() argument 370 ArtMethod* interface_method = GetInterfaceMethodForProxyUnchecked(pointer_size); in VisitRoots() 372 interface_method->VisitRoots(visitor, pointer_size); in VisitRoots() 378 inline void ArtMethod::UpdateEntrypoints(const Visitor& visitor, PointerSize pointer_size) { in UpdateEntrypoints() argument 380 const void* old_native_code = GetEntryPointFromJniPtrSize(pointer_size); in UpdateEntrypoints() 383 SetEntryPointFromJniPtrSize(new_native_code, pointer_size); in UpdateEntrypoints() [all …]
|
D | art_method.cc | 70 ArtMethod* ArtMethod::GetCanonicalMethod(PointerSize pointer_size) { in GetCanonicalMethod() argument 78 pointer_size); in GetCanonicalMethod() 96 ArtMethod* ArtMethod::GetSingleImplementation(PointerSize pointer_size) { in GetSingleImplementation() argument 101 return reinterpret_cast<ArtMethod*>(GetDataPtrSize(pointer_size)); in GetSingleImplementation() 112 PointerSize pointer_size = kRuntimePointerSize; in GetObsoleteDexCache() local 122 DCHECK_EQ(pointer_size, Runtime::Current()->GetClassLinker()->GetImagePointerSize()); in GetObsoleteDexCache() 124 if (this == obsolete_methods->GetElementPtrSize<ArtMethod*>(i, pointer_size)) { in GetObsoleteDexCache() 133 &(*GetDeclaringClass()->GetMethods(pointer_size).begin()), in GetObsoleteDexCache() 134 &(*GetDeclaringClass()->GetMethods(pointer_size).end()))) in GetObsoleteDexCache() 206 ArtMethod* ArtMethod::FindOverriddenMethod(PointerSize pointer_size) { in FindOverriddenMethod() argument [all …]
|
D | handle_scope.h | 106 static size_t SizeOf(PointerSize pointer_size, uint32_t num_references); 122 static constexpr size_t LinkOffset(PointerSize pointer_size ATTRIBUTE_UNUSED) { in LinkOffset() 127 static constexpr size_t NumberOfReferencesOffset(PointerSize pointer_size) { in NumberOfReferencesOffset() argument 128 return static_cast<size_t>(pointer_size); in NumberOfReferencesOffset() 132 static constexpr size_t ReferencesOffset(PointerSize pointer_size) { in ReferencesOffset() argument 133 return NumberOfReferencesOffset(pointer_size) + sizeof(number_of_references_); in ReferencesOffset()
|
D | imtable_test.cc | 79 const PointerSize pointer_size = Runtime::Current()->GetClassLinker()->GetImagePointerSize(); in LoadMethods() local 82 classes.first->FindDeclaredVirtualMethodByName(method_name, pointer_size); in LoadMethods() 84 classes.second->FindDeclaredVirtualMethodByName(method_name, pointer_size); in LoadMethods()
|
D | image.cc | 49 uint32_t pointer_size) in ImageHeader() argument 65 pointer_size_(pointer_size) { in ImageHeader() 157 PointerSize pointer_size) const { in VisitObjects() 158 DCHECK_EQ(pointer_size, GetPointerSize()); in VisitObjects()
|
/art/runtime/mirror/ |
D | class-inl.h | 133 inline ArraySlice<ArtMethod> Class::GetDirectMethodsSlice(PointerSize pointer_size) { in GetDirectMethodsSlice() argument 135 return GetDirectMethodsSliceUnchecked(pointer_size); in GetDirectMethodsSlice() 138 inline ArraySlice<ArtMethod> Class::GetDirectMethodsSliceUnchecked(PointerSize pointer_size) { in GetDirectMethodsSliceUnchecked() argument 140 pointer_size, in GetDirectMethodsSliceUnchecked() 146 inline ArraySlice<ArtMethod> Class::GetDeclaredMethodsSlice(PointerSize pointer_size) { in GetDeclaredMethodsSlice() argument 148 return GetDeclaredMethodsSliceUnchecked(pointer_size); in GetDeclaredMethodsSlice() 151 inline ArraySlice<ArtMethod> Class::GetDeclaredMethodsSliceUnchecked(PointerSize pointer_size) { in GetDeclaredMethodsSliceUnchecked() argument 153 pointer_size, in GetDeclaredMethodsSliceUnchecked() 159 inline ArraySlice<ArtMethod> Class::GetDeclaredVirtualMethodsSlice(PointerSize pointer_size) { in GetDeclaredVirtualMethodsSlice() argument 161 return GetDeclaredVirtualMethodsSliceUnchecked(pointer_size); in GetDeclaredVirtualMethodsSlice() [all …]
|
D | class-refvisitor-inl.h | 55 void Class::VisitNativeRoots(Visitor& visitor, PointerSize pointer_size) { in VisitNativeRoots() argument 64 for (ArtMethod& method : GetMethods(pointer_size)) { in VisitNativeRoots() 65 method.VisitRoots<kReadBarrierOption>(visitor, pointer_size); in VisitNativeRoots() 69 ext->VisitNativeRoots<kReadBarrierOption, Visitor>(visitor, pointer_size); in VisitNativeRoots() 74 void Class::VisitMethods(Visitor visitor, PointerSize pointer_size) { in VisitMethods() argument 75 for (ArtMethod& method : GetMethods(pointer_size)) { in VisitMethods() 80 ext->VisitMethods<kReadBarrierOption, Visitor>(visitor, pointer_size); in VisitMethods()
|
D | class.h | 564 PointerSize pointer_size); 567 static uint32_t ClassClassSize(PointerSize pointer_size) { in ClassClassSize() argument 570 return ComputeClassSize(true, vtable_entries, 0, 0, 4, 1, 0, pointer_size); in ClassClassSize() 574 static uint32_t PrimitiveClassSize(PointerSize pointer_size) { in PrimitiveClassSize() argument 575 return ComputeClassSize(false, 0, 0, 0, 0, 0, 0, pointer_size); in PrimitiveClassSize() 703 ALWAYS_INLINE ArraySlice<ArtMethod> GetDirectMethods(PointerSize pointer_size) 713 ALWAYS_INLINE ArraySlice<ArtMethod> GetMethods(PointerSize pointer_size) 727 ALWAYS_INLINE ArraySlice<ArtMethod> GetDirectMethodsSlice(PointerSize pointer_size) 730 ALWAYS_INLINE ArtMethod* GetDirectMethod(size_t i, PointerSize pointer_size) 734 ALWAYS_INLINE ArtMethod* GetDirectMethodUnchecked(size_t i, PointerSize pointer_size) [all …]
|
D | class.cc | 561 PointerSize pointer_size) in FindInterfaceMethodWithSignature() argument 569 for (ArtMethod& method : klass->GetDeclaredMethodsSlice(pointer_size)) { in FindInterfaceMethodWithSignature() 581 for (ArtMethod& method : iface->GetVirtualMethodsSlice(pointer_size)) { in FindInterfaceMethodWithSignature() 592 for (ArtMethod& method : object_class->GetDeclaredMethodsSlice(pointer_size)) { in FindInterfaceMethodWithSignature() 604 PointerSize pointer_size) { in FindInterfaceMethod() argument 605 return FindInterfaceMethodWithSignature(this, name, signature, pointer_size); in FindInterfaceMethod() 610 PointerSize pointer_size) { in FindInterfaceMethod() argument 611 return FindInterfaceMethodWithSignature(this, name, signature, pointer_size); in FindInterfaceMethod() 616 PointerSize pointer_size) { in FindInterfaceMethod() argument 622 return FindInterfaceMethod(name, signature, pointer_size); in FindInterfaceMethod() [all …]
|
D | reference-inl.h | 28 inline uint32_t Reference::ClassSize(PointerSize pointer_size) { in ClassSize() argument 30 return Class::ComputeClassSize(false, vtable_entries, 2, 0, 0, 0, 0, pointer_size); in ClassSize()
|
D | string-inl.h | 31 inline uint32_t String::ClassSize(PointerSize pointer_size) { in ClassSize() argument 42 return Class::ComputeClassSize(true, vtable_entries, 0, 0, 0, 1, 2, pointer_size); in ClassSize()
|
/art/dex2oat/linker/ |
D | image_test.cc | 117 PointerSize pointer_size = class_linker_->GetImagePointerSize(); in TEST_F() local 126 ArtMethod* origin = iface_klass->FindInterfaceMethod("defaultMethod", "()V", pointer_size); in TEST_F() 129 const void* code = origin->GetEntryPointFromQuickCompiledCodePtrSize(pointer_size); in TEST_F() 139 ASSERT_EQ(code, copied->GetEntryPointFromQuickCompiledCodePtrSize(pointer_size)); in TEST_F() 148 "forEach", "(Ljava/util/function/Consumer;)V", pointer_size); in TEST_F() 152 code = origin->GetEntryPointFromQuickCompiledCodePtrSize(pointer_size); in TEST_F() 161 code = copied->GetEntryPointFromQuickCompiledCodePtrSize(pointer_size); in TEST_F()
|
D | index_bss_mapping_encoder_test.cc | 26 for (PointerSize pointer_size : {PointerSize::k32, PointerSize::k64}) { in TEST() 27 size_t raw_pointer_size = static_cast<size_t>(pointer_size); in TEST() 52 for (PointerSize pointer_size : {PointerSize::k32, PointerSize::k64}) { in TEST() 53 size_t raw_pointer_size = static_cast<size_t>(pointer_size); in TEST() 78 for (PointerSize pointer_size : {PointerSize::k32, PointerSize::k64}) { in TEST() 79 size_t raw_pointer_size = static_cast<size_t>(pointer_size); in TEST()
|
/art/runtime/entrypoints/quick/ |
D | quick_entrypoints_enum.h | 38 template <PointerSize pointer_size> 39 static constexpr ThreadOffset<pointer_size> GetThreadOffset(QuickEntrypointEnum trampoline) { in GetThreadOffset() 43 return QUICK_ENTRYPOINT_OFFSET(pointer_size, p ## name); in GetThreadOffset()
|
/art/runtime/jni/ |
D | jni_env_ext.cc | 149 static size_t JNIEnvSize(size_t pointer_size) { in JNIEnvSize() argument 151 return pointer_size; in JNIEnvSize() 154 Offset JNIEnvExt::SegmentStateOffset(size_t pointer_size) { in SegmentStateOffset() argument 155 size_t locals_offset = JNIEnvSize(pointer_size) + in SegmentStateOffset() 156 2 * pointer_size + // Thread* self + JavaVMExt* vm. in SegmentStateOffset() 158 (pointer_size - 4); // Padding. in SegmentStateOffset() 160 IndirectReferenceTable::SegmentStateOffset(pointer_size).Int32Value(); in SegmentStateOffset() 164 Offset JNIEnvExt::LocalRefCookieOffset(size_t pointer_size) { in LocalRefCookieOffset() argument 165 return Offset(JNIEnvSize(pointer_size) + in LocalRefCookieOffset() 166 2 * pointer_size); // Thread* self + JavaVMExt* vm in LocalRefCookieOffset() [all …]
|
/art/runtime/utils/ |
D | dex_cache_arrays_layout-inl.h | 32 inline DexCacheArraysLayout::DexCacheArraysLayout(PointerSize pointer_size, in DexCacheArraysLayout() argument 35 : pointer_size_(pointer_size), in DexCacheArraysLayout() 51 inline DexCacheArraysLayout::DexCacheArraysLayout(PointerSize pointer_size, const DexFile* dex_file) in DexCacheArraysLayout() argument 52 : DexCacheArraysLayout(pointer_size, dex_file->GetHeader(), dex_file->NumCallSiteIds()) { in DexCacheArraysLayout() 59 inline constexpr size_t DexCacheArraysLayout::Alignment(PointerSize pointer_size) { in Alignment() argument 69 return 2u * static_cast<size_t>(pointer_size); in Alignment()
|
D | dex_cache_arrays_layout.h | 45 DexCacheArraysLayout(PointerSize pointer_size, 50 DexCacheArraysLayout(PointerSize pointer_size, const DexFile* dex_file); 62 static constexpr size_t Alignment(PointerSize pointer_size);
|
/art/libartbase/base/ |
D | utils.h | 81 static inline constexpr bool ValidPointerSize(size_t pointer_size) { in ValidPointerSize() argument 82 return pointer_size == 4 || pointer_size == 8; in ValidPointerSize()
|