Home
last modified time | relevance | path

Searched refs:LengthPrefixedArray (Results 1 – 19 of 19) sorted by relevance

/aosp12/art/compiler/driver/
H A Dcompiled_method_storage.cc41 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()
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()
177 const LengthPrefixedArray<uint8_t>* CompiledMethodStorage::DeduplicateCode( in DeduplicateCode()
186 const LengthPrefixedArray<uint8_t>* CompiledMethodStorage::DeduplicateVMapTable( in DeduplicateVMapTable()
195 const LengthPrefixedArray<uint8_t>* CompiledMethodStorage::DeduplicateCFIInfo( in DeduplicateCFIInfo()
[all …]
H A Dcompiled_method_storage.h54 const LengthPrefixedArray<uint8_t>* DeduplicateCode(const ArrayRef<const uint8_t>& code);
55 void ReleaseCode(const LengthPrefixedArray<uint8_t>* code);
57 const LengthPrefixedArray<uint8_t>* DeduplicateVMapTable(const ArrayRef<const uint8_t>& table);
58 void ReleaseVMapTable(const LengthPrefixedArray<uint8_t>* table);
60 const LengthPrefixedArray<uint8_t>* DeduplicateCFIInfo(const ArrayRef<const uint8_t>& cfi_info);
61 void ReleaseCFIInfo(const LengthPrefixedArray<uint8_t>* cfi_info);
63 const LengthPrefixedArray<linker::LinkerPatch>* DeduplicateLinkerPatches(
65 void ReleaseLinkerPatches(const LengthPrefixedArray<linker::LinkerPatch>* linker_patches);
91 const LengthPrefixedArray<T>* AllocateOrDeduplicateArray(const ArrayRef<const T>& data,
95 void ReleaseArrayIfNotDeduplicated(const LengthPrefixedArray<T>* array);
[all …]
/aosp12/art/compiler/
H A Dcompiled_method.h32 template<typename T> class LengthPrefixedArray; variable
78 static ArrayRef<const T> GetArray(const LengthPrefixedArray<T>* array);
101 const LengthPrefixedArray<uint8_t>* const quick_code_;
158 const LengthPrefixedArray<uint8_t>* const vmap_table_;
160 const LengthPrefixedArray<uint8_t>* const cfi_info_;
162 const LengthPrefixedArray<linker::LinkerPatch>* const patches_;
H A Dcompiled_method-inl.h33 inline ArrayRef<const T> CompiledCode::GetArray(const LengthPrefixedArray<T>* array) { in GetArray()
/aosp12/art/runtime/mirror/
H A Dclass-inl.h179 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()
683 inline LengthPrefixedArray<ArtField>* Class::GetIFieldsPtr() { in GetIFieldsPtr()
737 inline LengthPrefixedArray<ArtField>* Class::GetSFieldsPtr() { in GetSFieldsPtr()
1000 LengthPrefixedArray<ArtMethod>* methods = GetMethodsPtr(); in GetMethods()
1118 LengthPrefixedArray<ArtField>* arr = GetIFieldsPtrUnchecked(); in NumInstanceFields()
[all …]
H A Dclass.h61 template<typename T> class LengthPrefixedArray; variable
708 ALWAYS_INLINE LengthPrefixedArray<ArtMethod>* GetMethodsPtr()
718 void SetMethodsPtr(LengthPrefixedArray<ArtMethod>* new_methods,
723 void SetMethodsPtrUnchecked(LengthPrefixedArray<ArtMethod>* new_methods,
807 static ALWAYS_INLINE uint32_t NumMethods(LengthPrefixedArray<ArtMethod>* methods)
1006 LengthPrefixedArray<ArtField>* GetIFieldsPtr() REQUIRES_SHARED(Locks::mutator_lock_);
1011 void SetIFieldsPtr(LengthPrefixedArray<ArtField>* new_ifields)
1015 void SetIFieldsPtrUnchecked(LengthPrefixedArray<ArtField>* new_sfields)
1082 void SetSFieldsPtr(LengthPrefixedArray<ArtField>* new_sfields)
1086 void SetSFieldsPtrUnchecked(LengthPrefixedArray<ArtField>* new_sfields)
[all …]
H A Dclass.cc903 static ArtField* FindFieldByNameAndType(LengthPrefixedArray<ArtField>* fields, in FindFieldByNameAndType()
/aosp12/art/libartbase/base/
H A Dlength_prefixed_array.h31 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)) {
H A Darray_slice.h60 ArraySlice(LengthPrefixedArray<T>* lpa,
/aosp12/art/runtime/
H A Dindex_bss_mapping.h26 template<typename T> class LengthPrefixedArray; variable
68 using IndexBssMapping = LengthPrefixedArray<IndexBssMappingEntry>;
H A Dproxy_test.cc109 LengthPrefixedArray<ArtField>* static_fields = proxyClass->GetSFieldsPtr(); in TEST_F()
161 LengthPrefixedArray<ArtField>* static_fields0 = proxyClass0->GetSFieldsPtr(); in TEST_F()
164 LengthPrefixedArray<ArtField>* static_fields1 = proxyClass1->GetSFieldsPtr(); in TEST_F()
H A Dimage-inl.h56 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()
H A Dclass_linker.h53 template<typename T> class LengthPrefixedArray; variable
510 LengthPrefixedArray<ArtField>* AllocArtFieldArray(Thread* self,
514 LengthPrefixedArray<ArtMethod>* AllocArtMethodArray(Thread* self,
1297 LengthPrefixedArray<ArtMethod>* new_methods)
H A Dclass_linker.cc3602 LengthPrefixedArray<ArtField>* ClassLinker::AllocArtFieldArray(Thread* self, in AllocArtFieldArray()
3610 size_t storage_size = LengthPrefixedArray<ArtField>::ComputeSize(length); in AllocArtFieldArray()
3612 auto* ret = new(array_storage) LengthPrefixedArray<ArtField>(length); in AllocArtFieldArray()
3629 auto* ret = new (array_storage) LengthPrefixedArray<ArtMethod>(length); in AllocArtMethodArray()
3679 LengthPrefixedArray<ArtField>* sfields = AllocArtFieldArray(self, in LoadClass()
3682 LengthPrefixedArray<ArtField>* ifields = AllocArtFieldArray(self, in LoadClass()
5021 LengthPrefixedArray<ArtMethod>* proxy_class_methods = AllocArtMethodArray( in CreateProxyClass()
7716 void ClobberOldMethods(LengthPrefixedArray<ArtMethod>* old_methods, in ClobberOldMethods()
7717 LengthPrefixedArray<ArtMethod>* methods) { in ClobberOldMethods()
7901 LengthPrefixedArray<ArtMethod>* old_methods = klass_->GetMethodsPtr(); in ReallocMethods()
[all …]
H A Druntime.cc2481 LengthPrefixedArray<ArtMethod>* method_array = class_linker->AllocArtMethodArray( in CreateRuntimeMethod()
/aosp12/art/runtime/jit/
H A Dprofile_saver.cc411 LengthPrefixedArray<ArtMethod>* methods;
545 LengthPrefixedArray<ArtMethod>* methods = klass->GetMethodsPtr(); in CollectInternal()
592 LengthPrefixedArray<ArtMethod>* methods = class_record.methods; in CollectClasses()
691 LengthPrefixedArray<ArtMethod>* methods = class_record.methods; in UpdateProfile()
/aosp12/art/compiler/debug/
H A Delf_debug_info_writer.h481 void* storage = allocator->Alloc(Thread::Current(), sizeof(LengthPrefixedArray<ArtMethod>)); in WriteLinkageName()
482 methods_ptr = new (storage) LengthPrefixedArray<ArtMethod>(0); in WriteLinkageName()
/aosp12/art/dex2oat/linker/
H A Dimage_writer.cc1345 LengthPrefixedArray<ArtField>* fields[] = { in RecordNativeRelocations()
1349 for (LengthPrefixedArray<ArtField>* cur_fields : fields) { in RecordNativeRelocations()
1362 const size_t size = LengthPrefixedArray<ArtField>::ComputeSize(cur_fields->size()); in RecordNativeRelocations()
1385 const size_t header_size = LengthPrefixedArray<ArtMethod>::ComputeSize(0, in RecordNativeRelocations()
1388 LengthPrefixedArray<ArtMethod>* array = klass->GetMethodsPtr(); in RecordNativeRelocations()
2745 auto* src_array = reinterpret_cast<LengthPrefixedArray<ArtField>*>(pair.first); in CopyAndFixupNativeData()
2746 auto* dest_array = reinterpret_cast<LengthPrefixedArray<ArtField>*>(dest); in CopyAndFixupNativeData()
2748 memcpy(dest_array, src_array, LengthPrefixedArray<ArtField>::ComputeSize(size)); in CopyAndFixupNativeData()
2762 memcpy(dest, pair.first, LengthPrefixedArray<ArtMethod>::ComputeSize(0, size, alignment)); in CopyAndFixupNativeData()
2765 reinterpret_cast<LengthPrefixedArray<ArtMethod>*>(dest)->ClearPadding(size, alignment); in CopyAndFixupNativeData()
/aosp12/art/runtime/native/
H A Djava_lang_Class.cc368 LengthPrefixedArray<ArtField>* fields) in FindFieldByName()