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

/art/compiler/driver/
H A Dcompiled_method_storage.h51 const LengthPrefixedArray<uint8_t>* DeduplicateCode(const ArrayRef<const uint8_t>& code);
52 void ReleaseCode(const LengthPrefixedArray<uint8_t>* code);
54 const LengthPrefixedArray<uint8_t>* DeduplicateMethodInfo(
56 void ReleaseMethodInfo(const LengthPrefixedArray<uint8_t>* method_info);
58 const LengthPrefixedArray<uint8_t>* DeduplicateVMapTable(const ArrayRef<const uint8_t>& table);
59 void ReleaseVMapTable(const LengthPrefixedArray<uint8_t>* table);
61 const LengthPrefixedArray<uint8_t>* DeduplicateCFIInfo(const ArrayRef<const uint8_t>& cfi_info);
62 void ReleaseCFIInfo(const LengthPrefixedArray<uint8_t>* cfi_info);
64 const LengthPrefixedArray<LinkerPatch>* DeduplicateLinkerPatches(
66 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.h171 LengthPrefixedArray<ArtMethod>* methods = GetMethodsPtr();
186 LengthPrefixedArray<ArtMethod>* methods = GetMethodsPtr();
194 inline LengthPrefixedArray<ArtMethod>* Class::GetMethodsPtr() {
195 return reinterpret_cast<LengthPrefixedArray<ArtMethod>*>(
202 LengthPrefixedArray<ArtMethod>* methods = GetMethodsPtr();
212 LengthPrefixedArray<ArtMethod>* methods = GetMethodsPtr();
226 inline void Class::SetMethodsPtr(LengthPrefixedArray<ArtMethod>* new_methods,
234 inline void Class::SetMethodsPtrUnchecked(LengthPrefixedArray<ArtMethod>* new_methods,
245 inline void Class::SetMethodsPtrInternal(LengthPrefixedArray<ArtMethod>* new_methods) {
591 inline LengthPrefixedArray<ArtFiel
[all...]
H A Dclass.h45 template<typename T> class LengthPrefixedArray;
722 ALWAYS_INLINE LengthPrefixedArray<ArtMethod>* GetMethodsPtr()
732 void SetMethodsPtr(LengthPrefixedArray<ArtMethod>* new_methods,
737 void SetMethodsPtrUnchecked(LengthPrefixedArray<ArtMethod>* new_methods,
1016 LengthPrefixedArray<ArtField>* GetIFieldsPtr() REQUIRES_SHARED(Locks::mutator_lock_);
1021 void SetIFieldsPtr(LengthPrefixedArray<ArtField>* new_ifields)
1025 void SetIFieldsPtrUnchecked(LengthPrefixedArray<ArtField>* new_sfields)
1087 LengthPrefixedArray<ArtField>* GetSFieldsPtr() REQUIRES_SHARED(Locks::mutator_lock_);
1091 void SetSFieldsPtr(LengthPrefixedArray<ArtField>* new_sfields)
1095 void SetSFieldsPtrUnchecked(LengthPrefixedArray<ArtFiel
[all...]
H A Dclass.cc708 static ArtField* FindFieldByNameAndType(LengthPrefixedArray<ArtField>* fields,
/art/compiler/
H A Dcompiled_method.h74 static ArrayRef<const T> GetArray(const LengthPrefixedArray<T>* array) {
92 const LengthPrefixedArray<uint8_t>* const quick_code_;
454 const LengthPrefixedArray<uint8_t>* const method_info_;
456 const LengthPrefixedArray<uint8_t>* const vmap_table_;
458 const LengthPrefixedArray<uint8_t>* const cfi_info_;
460 const LengthPrefixedArray<LinkerPatch>* const patches_;
H A Dimage_writer.cc1257 LengthPrefixedArray<ArtField>* fields[] = {
1269 for (LengthPrefixedArray<ArtField>* cur_fields : fields) {
1272 const size_t header_size = LengthPrefixedArray<ArtField>::ComputeSize(0);
1317 const size_t header_size = LengthPrefixedArray<ArtMethod>::ComputeSize(0,
1320 LengthPrefixedArray<ArtMethod>* array = as_klass->GetMethodsPtr();
1941 memcpy(dest, pair.first, LengthPrefixedArray<ArtField>::ComputeSize(0));
1948 memcpy(dest, pair.first, LengthPrefixedArray<ArtMethod>::ComputeSize(0, size, alignment));
1950 reinterpret_cast<LengthPrefixedArray<ArtMethod>*>(dest)->ClearPadding(size, alignment);
/art/runtime/
H A Dimage.cc155 auto* array = reinterpret_cast<LengthPrefixedArray<ArtField>*>(base + fields.Offset() + pos);
170 auto* array = reinterpret_cast<LengthPrefixedArray<ArtMethod>*>(base + methods.Offset() + pos);
H A Dproxy_test.cc169 LengthPrefixedArray<ArtField>* static_fields = proxyClass->GetSFieldsPtr();
219 LengthPrefixedArray<ArtField>* static_fields0 = proxyClass0->GetSFieldsPtr();
222 LengthPrefixedArray<ArtField>* static_fields1 = proxyClass1->GetSFieldsPtr();
H A Dclass_linker.h64 template<typename T> class LengthPrefixedArray;
432 LengthPrefixedArray<ArtField>* AllocArtFieldArray(Thread* self,
436 LengthPrefixedArray<ArtMethod>* AllocArtMethodArray(Thread* self,
1109 LengthPrefixedArray<ArtMethod>* new_methods)
H A Dclass_linker.cc3130 LengthPrefixedArray<ArtField>* ClassLinker::AllocArtFieldArray(Thread* self,
3136 // If the ArtField alignment changes, review all uses of LengthPrefixedArray<ArtField>.
3138 size_t storage_size = LengthPrefixedArray<ArtField>::ComputeSize(length);
3140 auto* ret = new(array_storage) LengthPrefixedArray<ArtField>(length);
3146 LengthPrefixedArray<ArtMethod>* ClassLinker::AllocArtMethodArray(Thread* self,
3155 LengthPrefixedArray<ArtMethod>::ComputeSize(length, method_size, method_alignment);
3157 auto* ret = new (array_storage) LengthPrefixedArray<ArtMethod>(length);
3201 LengthPrefixedArray<ArtField>* sfields = AllocArtFieldArray(self,
3218 LengthPrefixedArray<ArtField>* ifields = AllocArtFieldArray(self,
3845 LengthPrefixedArray<ArtMetho
[all...]
H A Druntime.cc1839 LengthPrefixedArray<ArtMethod>* method_array = class_linker->AllocArtMethodArray(
/art/compiler/debug/
H A Delf_debug_info_writer.h475 void* storage = allocator->Alloc(Thread::Current(), sizeof(LengthPrefixedArray<ArtMethod>));
476 methods_ptr = new (storage) LengthPrefixedArray<ArtMethod>(0);
/art/runtime/native/
H A Djava_lang_Class.cc240 LengthPrefixedArray<ArtField>* fields)

Completed in 2513 milliseconds