Home
last modified time | relevance | path

Searched refs:pointer_size (Results 1 – 25 of 74) sorted by relevance

123

/art/runtime/
Dimt_conflict_table.h48 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 …]
Dimtable.h40 uint8_t* AddressOfElement(size_t index, PointerSize pointer_size) { in AddressOfElement() argument
41 return reinterpret_cast<uint8_t*>(this) + OffsetOfElement(index, pointer_size); in AddressOfElement()
44 ArtMethod* Get(size_t index, PointerSize pointer_size) { in Get() argument
46 uint8_t* ptr = AddressOfElement(index, pointer_size); in Get()
47 if (pointer_size == PointerSize::k32) { in Get()
56 void Set(size_t index, ArtMethod* method, PointerSize pointer_size) { in Set() argument
58 uint8_t* ptr = AddressOfElement(index, pointer_size); in Set()
59 if (pointer_size == PointerSize::k32) { in Set()
68 static size_t OffsetOfElement(size_t index, PointerSize pointer_size) { in OffsetOfElement() argument
69 return index * static_cast<size_t>(pointer_size); in OffsetOfElement()
[all …]
Dart_method.h409 ArtMethod* FindOverriddenMethod(PointerSize pointer_size)
426 ALWAYS_INLINE const void* GetEntryPointFromQuickCompiledCodePtrSize(PointerSize pointer_size) { in GetEntryPointFromQuickCompiledCodePtrSize() argument
428 EntryPointFromQuickCompiledCodeOffset(pointer_size), pointer_size); in GetEntryPointFromQuickCompiledCodePtrSize()
436 const void* entry_point_from_quick_compiled_code, PointerSize pointer_size) { in SetEntryPointFromQuickCompiledCodePtrSize() argument
437 SetNativePointer(EntryPointFromQuickCompiledCodeOffset(pointer_size), in SetEntryPointFromQuickCompiledCodePtrSize()
439 pointer_size); in SetEntryPointFromQuickCompiledCodePtrSize()
449 static MemberOffset DataOffset(PointerSize pointer_size) { in DataOffset() argument
450 return MemberOffset(PtrSizedFieldsOffset(pointer_size) + OFFSETOF_MEMBER( in DataOffset()
451 PtrSizedFields, data_) / sizeof(void*) * static_cast<size_t>(pointer_size)); in DataOffset()
454 static MemberOffset EntryPointFromJniOffset(PointerSize pointer_size) { in EntryPointFromJniOffset() argument
[all …]
Dthread.h643 template<PointerSize pointer_size>
644 static ThreadOffset<pointer_size> ThinLockIdOffset() { in ThinLockIdOffset()
645 return ThreadOffset<pointer_size>( in ThinLockIdOffset()
650 template<PointerSize pointer_size>
651 static ThreadOffset<pointer_size> InterruptedOffset() { in InterruptedOffset()
652 return ThreadOffset<pointer_size>( in InterruptedOffset()
657 template<PointerSize pointer_size>
658 static ThreadOffset<pointer_size> ThreadFlagsOffset() { in ThreadFlagsOffset()
659 return ThreadOffset<pointer_size>( in ThreadFlagsOffset()
664 template<PointerSize pointer_size>
[all …]
Dimage-inl.h53 PointerSize pointer_size) const { in VisitPackedImTables() argument
58 ArtMethod* orig = imt->Get(i, pointer_size); in VisitPackedImTables()
61 imt->Set(i, updated, pointer_size); in VisitPackedImTables()
64 pos += ImTable::SizeInBytes(pointer_size); in VisitPackedImTables()
71 PointerSize pointer_size) const { in VisitPackedImtConflictTables() argument
77 }, pointer_size); in VisitPackedImtConflictTables()
78 pos += table->ComputeSize(pointer_size); in VisitPackedImtConflictTables()
Djni_env_ext.cc148 static size_t JNIEnvSize(size_t pointer_size) { in JNIEnvSize() argument
150 return pointer_size; in JNIEnvSize()
153 Offset JNIEnvExt::SegmentStateOffset(size_t pointer_size) { in SegmentStateOffset() argument
154 size_t locals_offset = JNIEnvSize(pointer_size) + in SegmentStateOffset()
155 2 * pointer_size + // Thread* self + JavaVMExt* vm. in SegmentStateOffset()
157 (pointer_size - 4); // Padding. in SegmentStateOffset()
159 IndirectReferenceTable::SegmentStateOffset(pointer_size).Int32Value(); in SegmentStateOffset()
163 Offset JNIEnvExt::LocalRefCookieOffset(size_t pointer_size) { in LocalRefCookieOffset() argument
164 return Offset(JNIEnvSize(pointer_size) + in LocalRefCookieOffset()
165 2 * pointer_size); // Thread* self + JavaVMExt* vm in LocalRefCookieOffset()
[all …]
Dcha.cc83 const PointerSize pointer_size) in ResetSingleImplementationInHierarchy()
123 klass->GetVTableEntry<kDefaultVerifyFlags, kWithoutReadBarrier>(vtbl_index, pointer_size); in ResetSingleImplementationInHierarchy()
144 GetVTableEntry<kDefaultVerifyFlags, kWithoutReadBarrier>(vtbl_index, pointer_size); in ResetSingleImplementationInHierarchy()
147 super_method->GetSingleImplementation<kWithoutReadBarrier>(pointer_size) == method) { in ResetSingleImplementationInHierarchy()
150 super_method->SetSingleImplementation<kWithoutReadBarrier>(nullptr, pointer_size); in ResetSingleImplementationInHierarchy()
169 ArtMethod* method = interface->GetVirtualMethod(j, pointer_size); in ResetSingleImplementationInHierarchy()
172 method->GetSingleImplementation<kWithoutReadBarrier>(pointer_size)) && in ResetSingleImplementationInHierarchy()
175 method->SetSingleImplementation<kWithoutReadBarrier>(nullptr, pointer_size); in ResetSingleImplementationInHierarchy()
330 PointerSize pointer_size) { in CheckVirtualMethodSingleImplementationInfo() argument
398 if (method_in_super->GetSingleImplementation(pointer_size) == nullptr) { in CheckVirtualMethodSingleImplementationInfo()
[all …]
Dcha.h121 PointerSize pointer_size)
135 PointerSize pointer_size)
149 PointerSize pointer_size)
162 PointerSize pointer_size)
Dimage.cc44 uint32_t pointer_size, in ImageHeader() argument
62 pointer_size_(pointer_size), in ImageHeader()
149 PointerSize pointer_size) const { in VisitObjects()
150 DCHECK_EQ(pointer_size, GetPointerSize()); in VisitObjects()
173 PointerSize pointer_size) const { in VisitPackedArtMethods()
174 const size_t method_alignment = ArtMethod::Alignment(pointer_size); in VisitPackedArtMethods()
175 const size_t method_size = ArtMethod::Size(pointer_size); in VisitPackedArtMethods()
Dart_method.cc67 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()
101 PointerSize pointer_size);
103 PointerSize pointer_size);
124 PointerSize pointer_size = kRuntimePointerSize; in GetObsoleteDexCache() local
127 if (this == obsolete_methods->GetElementPtrSize<ArtMethod*>(i, pointer_size)) { in GetObsoleteDexCache()
212 ArtMethod* ArtMethod::FindOverriddenMethod(PointerSize pointer_size) { in FindOverriddenMethod() argument
223 result = super_class->GetVTableEntry(method_index, pointer_size); in FindOverriddenMethod()
[all …]
Dart_method-inl.h342 inline ArtMethod* ArtMethod::GetInterfaceMethodForProxyUnchecked(PointerSize pointer_size) { in GetInterfaceMethodForProxyUnchecked() argument
346 return reinterpret_cast<ArtMethod*>(GetDataPtrSize(pointer_size)); in GetInterfaceMethodForProxyUnchecked()
349 inline ArtMethod* ArtMethod::GetInterfaceMethodIfProxy(PointerSize pointer_size) { in GetInterfaceMethodIfProxy() argument
353 ArtMethod* interface_method = GetInterfaceMethodForProxyUnchecked(pointer_size); in GetInterfaceMethodIfProxy()
503 void ArtMethod::VisitRoots(RootVisitorType& visitor, PointerSize pointer_size) { in VisitRoots() argument
510 ArtMethod* interface_method = GetInterfaceMethodForProxyUnchecked(pointer_size); in VisitRoots()
512 interface_method->VisitRoots(visitor, pointer_size); in VisitRoots()
527 inline void ArtMethod::UpdateEntrypoints(const Visitor& visitor, PointerSize pointer_size) { in UpdateEntrypoints() argument
529 const void* old_native_code = GetEntryPointFromJniPtrSize(pointer_size); in UpdateEntrypoints()
532 SetEntryPointFromJniPtrSize(new_native_code, pointer_size); in UpdateEntrypoints()
[all …]
Dimtable_test.cc79 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/
Dclass-inl.h125 inline ArraySlice<ArtMethod> Class::GetDirectMethodsSlice(PointerSize pointer_size) { in GetDirectMethodsSlice() argument
127 return GetDirectMethodsSliceUnchecked(pointer_size); in GetDirectMethodsSlice()
130 inline ArraySlice<ArtMethod> Class::GetDirectMethodsSliceUnchecked(PointerSize pointer_size) { in GetDirectMethodsSliceUnchecked() argument
132 pointer_size, in GetDirectMethodsSliceUnchecked()
138 inline ArraySlice<ArtMethod> Class::GetDeclaredMethodsSlice(PointerSize pointer_size) { in GetDeclaredMethodsSlice() argument
140 return GetDeclaredMethodsSliceUnchecked(pointer_size); in GetDeclaredMethodsSlice()
143 inline ArraySlice<ArtMethod> Class::GetDeclaredMethodsSliceUnchecked(PointerSize pointer_size) { in GetDeclaredMethodsSliceUnchecked() argument
145 pointer_size, in GetDeclaredMethodsSliceUnchecked()
150 inline ArraySlice<ArtMethod> Class::GetDeclaredVirtualMethodsSlice(PointerSize pointer_size) { in GetDeclaredVirtualMethodsSlice() argument
152 return GetDeclaredVirtualMethodsSliceUnchecked(pointer_size); in GetDeclaredVirtualMethodsSlice()
[all …]
Dclass.h537 PointerSize pointer_size);
540 static uint32_t ClassClassSize(PointerSize pointer_size) { in ClassClassSize() argument
543 return ComputeClassSize(true, vtable_entries, 0, 0, 4, 1, 0, pointer_size); in ClassClassSize()
547 static uint32_t PrimitiveClassSize(PointerSize pointer_size) { in PrimitiveClassSize() argument
548 return ComputeClassSize(false, 0, 0, 0, 0, 0, 0, pointer_size); in PrimitiveClassSize()
675 ALWAYS_INLINE ArraySlice<ArtMethod> GetDirectMethods(PointerSize pointer_size)
685 ALWAYS_INLINE ArraySlice<ArtMethod> GetMethods(PointerSize pointer_size)
699 ALWAYS_INLINE ArraySlice<ArtMethod> GetDirectMethodsSlice(PointerSize pointer_size)
702 ALWAYS_INLINE ArtMethod* GetDirectMethod(size_t i, PointerSize pointer_size)
706 ALWAYS_INLINE ArtMethod* GetDirectMethodUnchecked(size_t i, PointerSize pointer_size)
[all …]
Dclass_ext-inl.h28 void ClassExt::VisitNativeRoots(Visitor& visitor, PointerSize pointer_size) { in VisitNativeRoots() argument
37 kReadBarrierOption>(i, pointer_size); in VisitNativeRoots()
39 method->VisitRoots<kReadBarrierOption>(visitor, pointer_size); in VisitNativeRoots()
Dclass-refvisitor-inl.h55 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()
Dclass.cc455 PointerSize pointer_size) in FindInterfaceMethodWithSignature() argument
463 for (ArtMethod& method : klass->GetDeclaredMethodsSlice(pointer_size)) { in FindInterfaceMethodWithSignature()
475 for (ArtMethod& method : iface->GetVirtualMethodsSlice(pointer_size)) { in FindInterfaceMethodWithSignature()
486 for (ArtMethod& method : object_class->GetDeclaredMethodsSlice(pointer_size)) { in FindInterfaceMethodWithSignature()
498 PointerSize pointer_size) { in FindInterfaceMethod() argument
499 return FindInterfaceMethodWithSignature(this, name, signature, pointer_size); in FindInterfaceMethod()
504 PointerSize pointer_size) { in FindInterfaceMethod() argument
505 return FindInterfaceMethodWithSignature(this, name, signature, pointer_size); in FindInterfaceMethod()
510 PointerSize pointer_size) { in FindInterfaceMethod() argument
516 return FindInterfaceMethod(name, signature, pointer_size); in FindInterfaceMethod()
[all …]
Dreference-inl.h29 inline uint32_t Reference::ClassSize(PointerSize pointer_size) { in ClassSize() argument
31 return Class::ComputeClassSize(false, vtable_entries, 2, 0, 0, 0, 0, pointer_size); in ClassSize()
/art/dex2oat/linker/
Dimage_test.cc108 PointerSize pointer_size = class_linker_->GetImagePointerSize(); in TEST_F() local
117 ArtMethod* origin = iface_klass->FindInterfaceMethod("defaultMethod", "()V", pointer_size); in TEST_F()
120 const void* code = origin->GetEntryPointFromQuickCompiledCodePtrSize(pointer_size); in TEST_F()
130 ASSERT_EQ(code, copied->GetEntryPointFromQuickCompiledCodePtrSize(pointer_size)); in TEST_F()
139 "forEach", "(Ljava/util/function/Consumer;)V", pointer_size); in TEST_F()
143 code = origin->GetEntryPointFromQuickCompiledCodePtrSize(pointer_size); in TEST_F()
152 code = copied->GetEntryPointFromQuickCompiledCodePtrSize(pointer_size); in TEST_F()
Dindex_bss_mapping_encoder_test.cc26 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/
Dquick_entrypoints_enum.h38 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/
Ddex_cache_arrays_layout-inl.h32 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()
Ddex_cache_arrays_layout.h45 DexCacheArraysLayout(PointerSize pointer_size,
50 DexCacheArraysLayout(PointerSize pointer_size, const DexFile* dex_file);
62 static constexpr size_t Alignment(PointerSize pointer_size);
/art/compiler/
Dcommon_compiler_test.cc128 PointerSize pointer_size = class_linker_->GetImagePointerSize(); in MakeExecutable() local
129 for (auto& m : klass->GetMethods(pointer_size)) { in MakeExecutable()
243 auto pointer_size = class_linker_->GetImagePointerSize(); in CompileClass() local
244 for (auto& m : klass->GetMethods(pointer_size)) { in CompileClass()
265 auto pointer_size = class_linker_->GetImagePointerSize(); in CompileDirectMethod() local
266 ArtMethod* method = klass->FindClassMethod(method_name, signature, pointer_size); in CompileDirectMethod()
279 auto pointer_size = class_linker_->GetImagePointerSize(); in CompileVirtualMethod() local
280 ArtMethod* method = klass->FindClassMethod(method_name, signature, pointer_size); in CompileVirtualMethod()
/art/compiler/driver/
Dcompiler_driver_test.cc93 const auto pointer_size = class_linker->GetImagePointerSize(); in MakeDexFileExecutable() local
94 for (auto& m : c->GetMethods(pointer_size)) { in MakeDexFileExecutable()
130 auto pointer_size = cl->GetImagePointerSize(); in TEST_F() local
133 ArtMethod* method = dex_cache->GetResolvedMethod(i, pointer_size); in TEST_F()
225 const auto pointer_size = class_linker->GetImagePointerSize(); in TEST_F() local
226 for (auto& m : klass->GetDirectMethods(pointer_size)) { in TEST_F()
228 const void* code = m.GetEntryPointFromQuickCompiledCodePtrSize(pointer_size); in TEST_F()
287 const auto pointer_size = class_linker->GetImagePointerSize(); in CheckCompiledMethods() local
289 for (auto& m : klass->GetVirtualMethods(pointer_size)) { in CheckCompiledMethods()
291 const void* code = m.GetEntryPointFromQuickCompiledCodePtrSize(pointer_size); in CheckCompiledMethods()

123