Searched refs:LengthPrefixedArray (Results 1 - 15 of 15) sorted by relevance

/art/compiler/driver/
H A Dcompiled_method_storage.h52 const LengthPrefixedArray<uint8_t>* DeduplicateCode(const ArrayRef<const uint8_t>& code);
53 void ReleaseCode(const LengthPrefixedArray<uint8_t>* code);
55 const LengthPrefixedArray<SrcMapElem>* DeduplicateSrcMappingTable(
57 void ReleaseSrcMappingTable(const LengthPrefixedArray<SrcMapElem>* src_map);
59 const LengthPrefixedArray<uint8_t>* DeduplicateVMapTable(const ArrayRef<const uint8_t>& table);
60 void ReleaseVMapTable(const LengthPrefixedArray<uint8_t>* table);
62 const LengthPrefixedArray<uint8_t>* DeduplicateCFIInfo(const ArrayRef<const uint8_t>& cfi_info);
63 void ReleaseCFIInfo(const LengthPrefixedArray<uint8_t>* cfi_info);
65 const LengthPrefixedArray<LinkerPatch>* DeduplicateLinkerPatches(
67 void ReleaseLinkerPatches(const LengthPrefixedArray<LinkerPatc
[all...]
H A Dcompiled_method_storage.cc34 const LengthPrefixedArray<T>* CopyArray(SwapSpace* swap_space, const ArrayRef<const T>& array) {
37 void* storage = allocator.allocate(LengthPrefixedArray<T>::ComputeSize(array.size()));
38 LengthPrefixedArray<T>* array_copy = new(storage) LengthPrefixedArray<T>(array.size());
44 void ReleaseArray(SwapSpace* swap_space, const LengthPrefixedArray<T>* array) {
46 size_t size = LengthPrefixedArray<T>::ComputeSize(array->size());
47 array->~LengthPrefixedArray<T>();
54 inline const LengthPrefixedArray<T>* CompiledMethodStorage::AllocateOrDeduplicateArray(
68 const LengthPrefixedArray<T>* array) {
159 const LengthPrefixedArray<
[all...]
/art/runtime/base/
H A Dlength_prefixed_array.h31 class LengthPrefixedArray { class in namespace:art
33 explicit LengthPrefixedArray(size_t length) function in class:art::LengthPrefixedArray
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.h68 ArraySlice(LengthPrefixedArray<T>* array,
/art/runtime/mirror/
H A Dclass-inl.h134 LengthPrefixedArray<ArtMethod>* methods = GetMethodsPtr();
150 LengthPrefixedArray<ArtMethod>* methods = GetMethodsPtr();
158 inline LengthPrefixedArray<ArtMethod>* Class::GetMethodsPtr() {
159 return reinterpret_cast<LengthPrefixedArray<ArtMethod>*>(
166 LengthPrefixedArray<ArtMethod>* methods = GetMethodsPtr();
176 LengthPrefixedArray<ArtMethod>* methods = GetMethodsPtr();
190 inline void Class::SetMethodsPtr(LengthPrefixedArray<ArtMethod>* new_methods,
198 inline void Class::SetMethodsPtrUnchecked(LengthPrefixedArray<ArtMethod>* new_methods,
209 inline void Class::SetMethodsPtrInternal(LengthPrefixedArray<ArtMethod>* new_methods) {
541 inline LengthPrefixedArray<ArtFiel
[all...]
H A Dclass.h43 template<typename T> class LengthPrefixedArray;
709 ALWAYS_INLINE LengthPrefixedArray<ArtMethod>* GetMethodsPtr()
719 void SetMethodsPtr(LengthPrefixedArray<ArtMethod>* new_methods,
724 void SetMethodsPtrUnchecked(LengthPrefixedArray<ArtMethod>* new_methods,
980 LengthPrefixedArray<ArtField>* GetIFieldsPtr() SHARED_REQUIRES(Locks::mutator_lock_);
985 void SetIFieldsPtr(LengthPrefixedArray<ArtField>* new_ifields)
989 void SetIFieldsPtrUnchecked(LengthPrefixedArray<ArtField>* new_sfields)
1051 LengthPrefixedArray<ArtField>* GetSFieldsPtr() SHARED_REQUIRES(Locks::mutator_lock_);
1055 void SetSFieldsPtr(LengthPrefixedArray<ArtField>* new_sfields)
1059 void SetSFieldsPtrUnchecked(LengthPrefixedArray<ArtFiel
[all...]
H A Dclass.cc628 static ArtField* FindFieldByNameAndType(LengthPrefixedArray<ArtField>* fields,
/art/compiler/
H A Dcompiled_method.h73 static ArrayRef<const T> GetArray(const LengthPrefixedArray<T>* array) {
91 const LengthPrefixedArray<uint8_t>* const quick_code_;
436 const LengthPrefixedArray<SrcMapElem>* const src_mapping_table_;
438 const LengthPrefixedArray<uint8_t>* const vmap_table_;
440 const LengthPrefixedArray<uint8_t>* const cfi_info_;
442 const LengthPrefixedArray<LinkerPatch>* const patches_;
H A Dimage_writer.cc1093 LengthPrefixedArray<ArtField>* fields[] = {
1105 for (LengthPrefixedArray<ArtField>* cur_fields : fields) {
1108 const size_t header_size = LengthPrefixedArray<ArtField>::ComputeSize(0);
1153 const size_t header_size = LengthPrefixedArray<ArtMethod>::ComputeSize(0,
1156 LengthPrefixedArray<ArtMethod>* array = as_klass->GetMethodsPtr();
1750 memcpy(dest, pair.first, LengthPrefixedArray<ArtField>::ComputeSize(0));
1757 memcpy(dest, pair.first, LengthPrefixedArray<ArtMethod>::ComputeSize(0, size, alignment));
1759 reinterpret_cast<LengthPrefixedArray<ArtMethod>*>(dest)->ClearPadding(size, alignment);
/art/runtime/
H A Dimage.cc153 auto* array = reinterpret_cast<LengthPrefixedArray<ArtField>*>(base + fields.Offset() + pos);
168 auto* array = reinterpret_cast<LengthPrefixedArray<ArtMethod>*>(base + methods.Offset() + pos);
H A Dproxy_test.cc165 LengthPrefixedArray<ArtField>* static_fields = proxyClass->GetSFieldsPtr();
217 LengthPrefixedArray<ArtField>* static_fields0 = proxyClass0->GetSFieldsPtr();
220 LengthPrefixedArray<ArtField>* static_fields1 = proxyClass1->GetSFieldsPtr();
H A Dclass_linker.h439 LengthPrefixedArray<ArtField>* AllocArtFieldArray(Thread* self,
443 LengthPrefixedArray<ArtMethod>* AllocArtMethodArray(Thread* self,
1075 LengthPrefixedArray<ArtMethod>* new_methods)
H A Dclass_linker.cc2966 LengthPrefixedArray<ArtField>* ClassLinker::AllocArtFieldArray(Thread* self,
2972 // If the ArtField alignment changes, review all uses of LengthPrefixedArray<ArtField>.
2974 size_t storage_size = LengthPrefixedArray<ArtField>::ComputeSize(length);
2976 auto* ret = new(array_storage) LengthPrefixedArray<ArtField>(length);
2982 LengthPrefixedArray<ArtMethod>* ClassLinker::AllocArtMethodArray(Thread* self,
2991 LengthPrefixedArray<ArtMethod>::ComputeSize(length, method_size, method_alignment);
2993 auto* ret = new (array_storage) LengthPrefixedArray<ArtMethod>(length);
3038 LengthPrefixedArray<ArtField>* sfields = AllocArtFieldArray(self,
3054 LengthPrefixedArray<ArtField>* ifields = AllocArtFieldArray(self,
3606 LengthPrefixedArray<ArtMetho
[all...]
/art/compiler/debug/
H A Delf_debug_info_writer.h474 void* storage = allocator->Alloc(Thread::Current(), sizeof(LengthPrefixedArray<ArtMethod>));
475 methods_ptr = new (storage) LengthPrefixedArray<ArtMethod>(0);
/art/runtime/native/
H A Djava_lang_Class.cc189 Thread* self ATTRIBUTE_UNUSED, mirror::String* name, LengthPrefixedArray<ArtField>* fields)

Completed in 81 milliseconds