/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 | 410 ArtMethod* FindOverriddenMethod(PointerSize pointer_size) 427 ALWAYS_INLINE const void* GetEntryPointFromQuickCompiledCodePtrSize(PointerSize pointer_size) { in GetEntryPointFromQuickCompiledCodePtrSize() argument 429 EntryPointFromQuickCompiledCodeOffset(pointer_size), pointer_size); in GetEntryPointFromQuickCompiledCodePtrSize() 437 const void* entry_point_from_quick_compiled_code, PointerSize pointer_size) { in SetEntryPointFromQuickCompiledCodePtrSize() argument 438 SetNativePointer(EntryPointFromQuickCompiledCodeOffset(pointer_size), in SetEntryPointFromQuickCompiledCodePtrSize() 440 pointer_size); in SetEntryPointFromQuickCompiledCodePtrSize() 452 static constexpr MemberOffset DataOffset(PointerSize pointer_size) { in DataOffset() argument 453 return MemberOffset(PtrSizedFieldsOffset(pointer_size) + OFFSETOF_MEMBER( in DataOffset() 454 PtrSizedFields, data_) / sizeof(void*) * static_cast<size_t>(pointer_size)); in DataOffset() 457 static constexpr MemberOffset EntryPointFromJniOffset(PointerSize pointer_size) { in EntryPointFromJniOffset() argument [all …]
|
D | thread.h | 647 template<PointerSize pointer_size> 648 static constexpr ThreadOffset<pointer_size> ThinLockIdOffset() { in ThinLockIdOffset() 649 return ThreadOffset<pointer_size>( in ThinLockIdOffset() 654 template<PointerSize pointer_size> 655 static constexpr ThreadOffset<pointer_size> InterruptedOffset() { in InterruptedOffset() 656 return ThreadOffset<pointer_size>( in InterruptedOffset() 661 template<PointerSize pointer_size> 662 static constexpr ThreadOffset<pointer_size> ThreadFlagsOffset() { in ThreadFlagsOffset() 663 return ThreadOffset<pointer_size>( in ThreadFlagsOffset() 668 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() 387 inline void ArtMethod::UpdateEntrypoints(const Visitor& visitor, PointerSize pointer_size) { in UpdateEntrypoints() argument 389 const void* old_native_code = GetEntryPointFromJniPtrSize(pointer_size); in UpdateEntrypoints() 392 SetEntryPointFromJniPtrSize(new_native_code, pointer_size); in UpdateEntrypoints() [all …]
|
D | art_method.cc | 67 ArtMethod* ArtMethod::GetCanonicalMethod(PointerSize pointer_size) { in GetCanonicalMethod() argument 75 pointer_size); in GetCanonicalMethod() 93 ArtMethod* ArtMethod::GetSingleImplementation(PointerSize pointer_size) { in GetSingleImplementation() argument 98 return reinterpret_cast<ArtMethod*>(GetDataPtrSize(pointer_size)); in GetSingleImplementation() 120 PointerSize pointer_size = kRuntimePointerSize; in GetObsoleteDexCache() local 123 if (this == obsolete_methods->GetElementPtrSize<ArtMethod*>(i, pointer_size)) { in GetObsoleteDexCache() 197 ArtMethod* ArtMethod::FindOverriddenMethod(PointerSize pointer_size) { in FindOverriddenMethod() argument 208 result = super_class->GetVTableEntry(method_index, pointer_size); in FindOverriddenMethod() 212 result = GetInterfaceMethodIfProxy(pointer_size); in FindOverriddenMethod() 218 for (ArtMethod& interface_method : interface->GetVirtualMethods(pointer_size)) { in FindOverriddenMethod() [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 | image.cc | 47 uint32_t pointer_size) in ImageHeader() argument 61 pointer_size_(pointer_size) { in ImageHeader() 138 PointerSize pointer_size) const { in VisitObjects() 139 DCHECK_EQ(pointer_size, GetPointerSize()); in VisitObjects()
|
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()
|
/art/runtime/mirror/ |
D | class-inl.h | 131 inline ArraySlice<ArtMethod> Class::GetDirectMethodsSlice(PointerSize pointer_size) { in GetDirectMethodsSlice() argument 133 return GetDirectMethodsSliceUnchecked(pointer_size); in GetDirectMethodsSlice() 136 inline ArraySlice<ArtMethod> Class::GetDirectMethodsSliceUnchecked(PointerSize pointer_size) { in GetDirectMethodsSliceUnchecked() argument 138 pointer_size, in GetDirectMethodsSliceUnchecked() 144 inline ArraySlice<ArtMethod> Class::GetDeclaredMethodsSlice(PointerSize pointer_size) { in GetDeclaredMethodsSlice() argument 146 return GetDeclaredMethodsSliceUnchecked(pointer_size); in GetDeclaredMethodsSlice() 149 inline ArraySlice<ArtMethod> Class::GetDeclaredMethodsSliceUnchecked(PointerSize pointer_size) { in GetDeclaredMethodsSliceUnchecked() argument 151 pointer_size, in GetDeclaredMethodsSliceUnchecked() 157 inline ArraySlice<ArtMethod> Class::GetDeclaredVirtualMethodsSlice(PointerSize pointer_size) { in GetDeclaredVirtualMethodsSlice() argument 159 return GetDeclaredVirtualMethodsSliceUnchecked(pointer_size); in GetDeclaredVirtualMethodsSlice() [all …]
|
D | class.h | 500 PointerSize pointer_size); 503 static uint32_t ClassClassSize(PointerSize pointer_size) { in ClassClassSize() argument 506 return ComputeClassSize(true, vtable_entries, 0, 0, 4, 1, 0, pointer_size); in ClassClassSize() 510 static uint32_t PrimitiveClassSize(PointerSize pointer_size) { in PrimitiveClassSize() argument 511 return ComputeClassSize(false, 0, 0, 0, 0, 0, 0, pointer_size); in PrimitiveClassSize() 635 ALWAYS_INLINE ArraySlice<ArtMethod> GetDirectMethods(PointerSize pointer_size) 645 ALWAYS_INLINE ArraySlice<ArtMethod> GetMethods(PointerSize pointer_size) 659 ALWAYS_INLINE ArraySlice<ArtMethod> GetDirectMethodsSlice(PointerSize pointer_size) 662 ALWAYS_INLINE ArtMethod* GetDirectMethod(size_t i, PointerSize pointer_size) 666 ALWAYS_INLINE ArtMethod* GetDirectMethodUnchecked(size_t i, PointerSize pointer_size) [all …]
|
D | class-refvisitor-inl.h | 55 void Class::VisitNativeRoots(Visitor& visitor, PointerSize pointer_size) { in VisitNativeRoots() argument 70 for (ArtMethod& method : GetMethods(pointer_size)) { in VisitNativeRoots() 71 method.VisitRoots<kReadBarrierOption>(visitor, pointer_size); in VisitNativeRoots() 75 ext->VisitNativeRoots<kReadBarrierOption, Visitor>(visitor, pointer_size); in VisitNativeRoots()
|
D | class.cc | 440 PointerSize pointer_size) in FindInterfaceMethodWithSignature() argument 448 for (ArtMethod& method : klass->GetDeclaredMethodsSlice(pointer_size)) { in FindInterfaceMethodWithSignature() 460 for (ArtMethod& method : iface->GetVirtualMethodsSlice(pointer_size)) { in FindInterfaceMethodWithSignature() 471 for (ArtMethod& method : object_class->GetDeclaredMethodsSlice(pointer_size)) { in FindInterfaceMethodWithSignature() 483 PointerSize pointer_size) { in FindInterfaceMethod() argument 484 return FindInterfaceMethodWithSignature(this, name, signature, pointer_size); in FindInterfaceMethod() 489 PointerSize pointer_size) { in FindInterfaceMethod() argument 490 return FindInterfaceMethodWithSignature(this, name, signature, pointer_size); in FindInterfaceMethod() 495 PointerSize pointer_size) { in FindInterfaceMethod() argument 501 return FindInterfaceMethod(name, signature, pointer_size); in FindInterfaceMethod() [all …]
|
D | class_ext-inl.h | 49 void ClassExt::VisitNativeRoots(Visitor& visitor, PointerSize pointer_size) { in VisitNativeRoots() argument 56 ArtMethod* method = arr->GetElementPtrSize<ArtMethod*, kDefaultVerifyFlags>(i, pointer_size); in VisitNativeRoots() 58 method->VisitRoots<kReadBarrierOption>(visitor, pointer_size); in VisitNativeRoots()
|
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()
|
/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/dex2oat/linker/ |
D | image_test.cc | 115 PointerSize pointer_size = class_linker_->GetImagePointerSize(); in TEST_F() local 124 ArtMethod* origin = iface_klass->FindInterfaceMethod("defaultMethod", "()V", pointer_size); in TEST_F() 127 const void* code = origin->GetEntryPointFromQuickCompiledCodePtrSize(pointer_size); in TEST_F() 137 ASSERT_EQ(code, copied->GetEntryPointFromQuickCompiledCodePtrSize(pointer_size)); in TEST_F() 146 "forEach", "(Ljava/util/function/Consumer;)V", pointer_size); in TEST_F() 150 code = origin->GetEntryPointFromQuickCompiledCodePtrSize(pointer_size); in TEST_F() 159 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 ThreadOffset<pointer_size> GetThreadOffset(QuickEntrypointEnum trampoline) { in GetThreadOffset() 43 return QUICK_ENTRYPOINT_OFFSET(pointer_size, p ## name); in GetThreadOffset()
|
/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()
|