/art/dex2oat/driver/ |
D | compiled_method_storage.h | 56 const LengthPrefixedArray<uint8_t>* DeduplicateCode(const ArrayRef<const uint8_t>& code); 57 void ReleaseCode(const LengthPrefixedArray<uint8_t>* code); 60 const LengthPrefixedArray<uint8_t>* DeduplicateVMapTable(const ArrayRef<const uint8_t>& table); 61 void ReleaseVMapTable(const LengthPrefixedArray<uint8_t>* table); 64 const LengthPrefixedArray<uint8_t>* DeduplicateCFIInfo(const ArrayRef<const uint8_t>& cfi_info); 65 void ReleaseCFIInfo(const LengthPrefixedArray<uint8_t>* cfi_info); 68 const LengthPrefixedArray<linker::LinkerPatch>* DeduplicateLinkerPatches( 70 void ReleaseLinkerPatches(const LengthPrefixedArray<linker::LinkerPatch>* linker_patches); 104 const LengthPrefixedArray<T>* AllocateOrDeduplicateArray(const ArrayRef<const T>& data, 108 void ReleaseArrayIfNotDeduplicated(const LengthPrefixedArray<T>* array); [all …]
|
D | compiled_method_storage.cc | 37 const LengthPrefixedArray<T>* CopyArray(SwapSpace* swap_space, const ArrayRef<const T>& array) { in CopyArray() 40 void* storage = allocator.allocate(LengthPrefixedArray<T>::ComputeSize(array.size())); in CopyArray() 41 LengthPrefixedArray<T>* array_copy = new(storage) LengthPrefixedArray<T>(array.size()); in CopyArray() 47 void ReleaseArray(SwapSpace* swap_space, const LengthPrefixedArray<T>* array) { in ReleaseArray() 49 size_t size = LengthPrefixedArray<T>::ComputeSize(array->size()); in ReleaseArray() 50 array->~LengthPrefixedArray<T>(); in ReleaseArray() 57 inline const LengthPrefixedArray<T>* CompiledMethodStorage::AllocateOrDeduplicateArray( in AllocateOrDeduplicateArray() 71 const LengthPrefixedArray<T>* array) { in ReleaseArrayIfNotDeduplicated() 95 const LengthPrefixedArray<T>* Copy(const ArrayRef<const T>& array) { in Copy() 99 void Destroy(const LengthPrefixedArray<T>* array) { in Destroy() [all …]
|
D | compiled_method.h | 32 template<typename T> class LengthPrefixedArray; variable 72 static ArrayRef<const T> GetArray(const LengthPrefixedArray<T>* array); 95 const LengthPrefixedArray<uint8_t>* const quick_code_; 152 const LengthPrefixedArray<uint8_t>* const vmap_table_; 154 const LengthPrefixedArray<uint8_t>* const cfi_info_; 156 const LengthPrefixedArray<linker::LinkerPatch>* const patches_;
|
D | compiled_method-inl.h | 33 inline ArrayRef<const T> CompiledCode::GetArray(const LengthPrefixedArray<T>* array) { in GetArray()
|
/art/libartbase/base/ |
D | length_prefixed_array.h | 31 class LengthPrefixedArray { 33 explicit LengthPrefixedArray(size_t length) in LengthPrefixedArray() function 68 return RoundUp(offsetof(LengthPrefixedArray<T>, data_), alignment) + index * element_size; 90 size_t gap_offset = offsetof(LengthPrefixedArray<T>, data_); 113 LengthPrefixedArray<T>* arr, size_t element_size = sizeof(T), size_t alignment = alignof(T)) {
|
D | array_slice.h | 60 ArraySlice(LengthPrefixedArray<T>* lpa,
|
/art/runtime/mirror/ |
D | class-inl.h | 179 LengthPrefixedArray<ArtMethod>* methods = GetMethodsPtr(); in GetVirtualMethodsSliceUnchecked() 193 LengthPrefixedArray<ArtMethod>* methods = GetMethodsPtr(); in GetCopiedMethodsSliceUnchecked() 200 inline LengthPrefixedArray<ArtMethod>* Class::GetMethodsPtr() { in GetMethodsPtr() 201 return reinterpret_cast<LengthPrefixedArray<ArtMethod>*>( in GetMethodsPtr() 208 LengthPrefixedArray<ArtMethod>* methods = GetMethodsPtr(); in GetMethodsSlice() 213 LengthPrefixedArray<ArtMethod>* methods, in GetMethodsSliceRangeUnchecked() 237 inline uint32_t Class::NumMethods(LengthPrefixedArray<ArtMethod>* methods) { in NumMethods() 251 inline void Class::SetMethodsPtr(LengthPrefixedArray<ArtMethod>* new_methods, in SetMethodsPtr() 259 inline void Class::SetMethodsPtrUnchecked(LengthPrefixedArray<ArtMethod>* new_methods, in SetMethodsPtrUnchecked() 640 inline LengthPrefixedArray<ArtField>* Class::GetIFieldsPtr() { in GetIFieldsPtr() [all …]
|
D | class.h | 61 template<typename T> class LengthPrefixedArray; variable 716 ALWAYS_INLINE LengthPrefixedArray<ArtMethod>* GetMethodsPtr() 726 void SetMethodsPtr(LengthPrefixedArray<ArtMethod>* new_methods, 731 void SetMethodsPtrUnchecked(LengthPrefixedArray<ArtMethod>* new_methods, 815 static ALWAYS_INLINE uint32_t NumMethods(LengthPrefixedArray<ArtMethod>* methods) 1016 LengthPrefixedArray<ArtField>* GetIFieldsPtr() REQUIRES_SHARED(Locks::mutator_lock_); 1021 void SetIFieldsPtr(LengthPrefixedArray<ArtField>* new_ifields) 1025 void SetIFieldsPtrUnchecked(LengthPrefixedArray<ArtField>* new_sfields) 1088 LengthPrefixedArray<ArtField>* GetSFieldsPtr() REQUIRES_SHARED(Locks::mutator_lock_); 1092 void SetSFieldsPtr(LengthPrefixedArray<ArtField>* new_sfields) [all …]
|
D | class.cc | 1036 LengthPrefixedArray<ArtField>* fields, in FindFieldByNameAndType() 1095 LengthPrefixedArray<ArtField>* ifields = GetIFieldsPtr(); in FindDeclaredInstanceField() 1130 LengthPrefixedArray<ArtField>* sfields = GetSFieldsPtr(); in FindDeclaredStaticField()
|
/art/runtime/ |
D | index_bss_mapping.h | 26 template<typename T> class LengthPrefixedArray; variable 68 using IndexBssMapping = LengthPrefixedArray<IndexBssMappingEntry>;
|
D | proxy_test.cc | 102 LengthPrefixedArray<ArtField>* static_fields = proxyClass->GetSFieldsPtr(); in TEST_F() 154 LengthPrefixedArray<ArtField>* static_fields0 = proxyClass0->GetSFieldsPtr(); in TEST_F() 157 LengthPrefixedArray<ArtField>* static_fields1 = proxyClass1->GetSFieldsPtr(); in TEST_F()
|
D | image-inl.h | 56 auto* array = reinterpret_cast<LengthPrefixedArray<ArtField>*>(base + fields.Offset() + pos); in VisitPackedArtFields() 72 auto* array = reinterpret_cast<LengthPrefixedArray<ArtMethod>*>(base + methods.Offset() + pos); in VisitPackedArtMethods()
|
D | art_field.h | 30 template<typename T> class LengthPrefixedArray; variable 49 LengthPrefixedArray<ArtField>* array)
|
D | runtime_image.cc | 854 LengthPrefixedArray<ArtField>* fields[] = { in CopyFieldArrays() 857 for (LengthPrefixedArray<ArtField>* cur_fields : fields) { in CopyFieldArrays() 861 size_t size = LengthPrefixedArray<ArtField>::ComputeSize(number_of_fields); in CopyFieldArrays() 865 reinterpret_cast<LengthPrefixedArray<ArtField>*>(art_fields_.data() + offset); in CopyFieldArrays() 888 size_t size = LengthPrefixedArray<ArtMethod>::ComputeSize(number_of_methods); in CopyMethodArrays() 892 reinterpret_cast<LengthPrefixedArray<ArtMethod>*>(art_methods_.data() + offset); in CopyMethodArrays()
|
D | class_linker.h | 58 template<typename T> class LengthPrefixedArray; variable 536 LengthPrefixedArray<ArtField>* AllocArtFieldArray(Thread* self, 540 LengthPrefixedArray<ArtMethod>* AllocArtMethodArray(Thread* self, 1251 LengthPrefixedArray<ArtMethod>* new_methods)
|
D | art_method.h | 52 template<typename T> class LengthPrefixedArray; variable 121 LengthPrefixedArray<ArtMethod>* array)
|
D | class_linker.cc | 3717 LengthPrefixedArray<ArtField>* ClassLinker::AllocArtFieldArray(Thread* self, in AllocArtFieldArray() 3725 size_t storage_size = LengthPrefixedArray<ArtField>::ComputeSize(length); in AllocArtFieldArray() 3727 auto* ret = new(array_storage) LengthPrefixedArray<ArtField>(length); in AllocArtFieldArray() 3733 LengthPrefixedArray<ArtMethod>* ClassLinker::AllocArtMethodArray(Thread* self, in AllocArtMethodArray() 3742 LengthPrefixedArray<ArtMethod>::ComputeSize(length, method_size, method_alignment); in AllocArtMethodArray() 3744 auto* ret = new (array_storage) LengthPrefixedArray<ArtMethod>(length); in AllocArtMethodArray() 3794 LengthPrefixedArray<ArtField>* sfields = AllocArtFieldArray(self, in LoadClass() 3797 LengthPrefixedArray<ArtField>* ifields = AllocArtFieldArray(self, in LoadClass() 4580 LengthPrefixedArray<ArtMethod>* new_methods) { in UpdateClassMethods() 5106 LengthPrefixedArray<ArtField>* sfields = AllocArtFieldArray(self, allocator, num_fields); in CreateProxyClass() [all …]
|
D | art_field-inl.h | 67 LengthPrefixedArray<ArtField>* array) { in VisitArrayRoots()
|
D | art_method-inl.h | 631 LengthPrefixedArray<ArtMethod>* array) {
|
D | runtime.cc | 2591 LengthPrefixedArray<ArtMethod>* method_array = class_linker->AllocArtMethodArray( in CreateRuntimeMethod()
|
/art/runtime/jit/ |
D | profile_saver.cc | 410 LengthPrefixedArray<ArtMethod>* methods; 544 LengthPrefixedArray<ArtMethod>* methods = klass->GetMethodsPtr(); in CollectInternal() 591 LengthPrefixedArray<ArtMethod>* methods = class_record.methods; in CollectClasses() 691 LengthPrefixedArray<ArtMethod>* methods = class_record.methods; in UpdateProfile()
|
/art/dex2oat/linker/ |
D | image_writer.cc | 1192 LengthPrefixedArray<ArtField>* fields[] = { in RecordNativeRelocations() 1196 for (LengthPrefixedArray<ArtField>* cur_fields : fields) { in RecordNativeRelocations() 1209 const size_t size = LengthPrefixedArray<ArtField>::ComputeSize(cur_fields->size()); in RecordNativeRelocations() 1232 const size_t header_size = LengthPrefixedArray<ArtMethod>::ComputeSize(0, in RecordNativeRelocations() 1235 LengthPrefixedArray<ArtMethod>* array = klass->GetMethodsPtr(); in RecordNativeRelocations() 2832 auto* src_array = reinterpret_cast<LengthPrefixedArray<ArtField>*>(pair.first); in CopyAndFixupNativeData() 2833 auto* dest_array = reinterpret_cast<LengthPrefixedArray<ArtField>*>(dest); in CopyAndFixupNativeData() 2835 memcpy(dest_array, src_array, LengthPrefixedArray<ArtField>::ComputeSize(size)); in CopyAndFixupNativeData() 2849 memcpy(dest, pair.first, LengthPrefixedArray<ArtMethod>::ComputeSize(0, size, alignment)); in CopyAndFixupNativeData() 2852 reinterpret_cast<LengthPrefixedArray<ArtMethod>*>(dest)->ClearPadding(size, alignment); in CopyAndFixupNativeData() [all …]
|
/art/compiler/debug/ |
D | elf_debug_info_writer.h | 483 sizeof(LengthPrefixedArray<ArtMethod>), in WriteLinkageName() 485 methods_ptr = new (storage) LengthPrefixedArray<ArtMethod>(0); in WriteLinkageName()
|
/art/runtime/gc/collector/ |
D | mark_compact.cc | 2621 LengthPrefixedArray<ArtMethod>* array = static_cast<LengthPrefixedArray<ArtMethod>*>(obj); in VisitObject() 2643 static_cast<LengthPrefixedArray<ArtField>*>(obj)); in VisitObject()
|
/art/runtime/native/ |
D | java_lang_Class.cc | 241 LengthPrefixedArray<ArtField>* fields) in FindFieldByName()
|