Home
last modified time | relevance | path

Searched refs:element_size (Results 1 – 15 of 15) sorted by relevance

/art/runtime/base/
Dlength_prefixed_array.h36 T& At(size_t index, size_t element_size = sizeof(T), size_t alignment = alignof(T)) {
38 return AtUnchecked(index, element_size, alignment);
41 const T& At(size_t index, size_t element_size = sizeof(T), size_t alignment = alignof(T)) const {
43 return AtUnchecked(index, element_size, alignment);
46 StrideIterator<T> begin(size_t element_size = sizeof(T), size_t alignment = alignof(T)) {
47 return StrideIterator<T>(&AtUnchecked(0, element_size, alignment), element_size);
50 StrideIterator<const T> begin(size_t element_size = sizeof(T),
52 return StrideIterator<const T>(&AtUnchecked(0, element_size, alignment), element_size);
55 StrideIterator<T> end(size_t element_size = sizeof(T), size_t alignment = alignof(T)) {
56 return StrideIterator<T>(&AtUnchecked(size_, element_size, alignment), element_size);
[all …]
Darray_slice.h40 size_t element_size = sizeof(T))
43 element_size_(element_size) { in array_()
53 size_t element_size = sizeof(T))
56 element_size_(element_size) { in array_()
71 size_t element_size = sizeof(T),
75 element_size_(element_size) { in array_()
/art/runtime/utils/
Ddex_cache_arrays_layout-inl.h165 inline size_t DexCacheArraysLayout::ElementOffset(PointerSize element_size, uint32_t idx) { in ElementOffset() argument
166 return static_cast<size_t>(element_size) * idx; in ElementOffset()
169 inline size_t DexCacheArraysLayout::ArraySize(PointerSize element_size, uint32_t num_elements) { in ArraySize() argument
170 return static_cast<size_t>(element_size) * num_elements; in ArraySize()
Ddex_cache_arrays_layout.h130 static size_t ElementOffset(PointerSize element_size, uint32_t idx);
132 static size_t ArraySize(PointerSize element_size, uint32_t num_elements);
/art/test/906-iterate-heap/
Diterate_heap.cc269 size_t element_size; in Java_art_Test906_iterateThroughHeapPrimitiveArray() local
273 element_size = 1; in Java_art_Test906_iterateThroughHeapPrimitiveArray()
277 element_size = 2; in Java_art_Test906_iterateThroughHeapPrimitiveArray()
281 element_size = 4; in Java_art_Test906_iterateThroughHeapPrimitiveArray()
285 element_size = 8; in Java_art_Test906_iterateThroughHeapPrimitiveArray()
292 for (size_t i = 0; i != element_size * element_count; ++i) { in Java_art_Test906_iterateThroughHeapPrimitiveArray()
/art/runtime/
Ddex_file_verifier.h60 bool CheckListSize(const void* start, size_t count, size_t element_size, const char* label);
63 bool CheckList(size_t element_size, const char* label, const uint8_t* *ptr);
Ddex_instruction.cc118 uint16_t element_size = insns[1]; in SizeInCodeUnitsComplexOpcode() local
121 return (4 + (element_size * length + 1) / 2); in SizeInCodeUnitsComplexOpcode()
Ddex_file_verifier.cc308 bool DexFileVerifier::CheckList(size_t element_size, const char* label, const uint8_t* *ptr) { in CheckList() argument
316 if (!CheckListSize(*ptr + 4, count, element_size, label)) { in CheckList()
321 *ptr += 4 + count * element_size; in CheckList()
/art/test/913-heaps/
Dheaps.cc619 size_t element_size; in Java_art_Test913_followReferencesPrimitiveArray() local
623 element_size = 1; in Java_art_Test913_followReferencesPrimitiveArray()
627 element_size = 2; in Java_art_Test913_followReferencesPrimitiveArray()
631 element_size = 4; in Java_art_Test913_followReferencesPrimitiveArray()
635 element_size = 8; in Java_art_Test913_followReferencesPrimitiveArray()
642 for (size_t i = 0; i != element_size * element_count; ++i) { in Java_art_Test913_followReferencesPrimitiveArray()
/art/compiler/optimizing/
Dintrinsics_x86_64.cc92 int32_t element_size = Primitive::ComponentSize(Primitive::kPrimNot); in EmitNativeCode() local
114 __ addl(src_curr_addr, Immediate(element_size)); in EmitNativeCode()
115 __ addl(dst_curr_addr, Immediate(element_size)); in EmitNativeCode()
1140 const int32_t element_size = Primitive::ComponentSize(type); in GenSystemArrayCopyAddresses() local
1142 const uint32_t data_offset = mirror::Array::DataOffset(element_size).Uint32Value(); in GenSystemArrayCopyAddresses()
1146 __ leal(src_base, Address(src, element_size * constant + data_offset)); in GenSystemArrayCopyAddresses()
1153 __ leal(dst_base, Address(dst, element_size * constant + data_offset)); in GenSystemArrayCopyAddresses()
1160 __ leal(src_end, Address(src_base, element_size * constant)); in GenSystemArrayCopyAddresses()
1415 const int32_t element_size = Primitive::ComponentSize(type); in VisitSystemArrayCopy() local
1479 __ addl(temp1, Immediate(element_size)); in VisitSystemArrayCopy()
[all …]
Dintrinsics_arm64.cc175 const int32_t element_size = Primitive::ComponentSize(Primitive::kPrimNot); in EmitNativeCode() local
185 __ Ldr(tmp_reg, MemOperand(src_curr_addr, element_size, PostIndex)); in EmitNativeCode()
212 __ Str(tmp_reg, MemOperand(dst_curr_addr, element_size, PostIndex)); in EmitNativeCode()
2216 const int32_t element_size = Primitive::ComponentSize(type); in GenSystemArrayCopyAddresses() local
2218 const uint32_t data_offset = mirror::Array::DataOffset(element_size).Uint32Value(); in GenSystemArrayCopyAddresses()
2222 __ Add(src_base, src, element_size * constant + data_offset); in GenSystemArrayCopyAddresses()
2230 __ Add(dst_base, dst, element_size * constant + data_offset); in GenSystemArrayCopyAddresses()
2238 __ Add(src_end, src_base, element_size * constant); in GenSystemArrayCopyAddresses()
2733 const int32_t element_size = Primitive::ComponentSize(type); in VisitSystemArrayCopy() local
2821 __ Ldr(tmp, MemOperand(src_curr_addr, element_size, PostIndex)); in VisitSystemArrayCopy()
[all …]
Dintrinsics_arm.cc60 const int32_t element_size = Primitive::ComponentSize(type); in GenSystemArrayCopyBaseAddress() local
62 const uint32_t data_offset = mirror::Array::DataOffset(element_size).Uint32Value(); in GenSystemArrayCopyBaseAddress()
66 __ AddConstant(base, array, element_size * constant + data_offset); in GenSystemArrayCopyBaseAddress()
83 const int32_t element_size = Primitive::ComponentSize(type); in GenSystemArrayCopyEndAddress() local
88 __ AddConstant(end, base, element_size * constant); in GenSystemArrayCopyEndAddress()
120 const int32_t element_size = Primitive::ComponentSize(type); in EmitNativeCode() local
135 __ ldr(tmp, Address(src_curr_addr, element_size, Address::PostIndex)); in EmitNativeCode()
162 __ str(tmp, Address(dst_curr_addr, element_size, Address::PostIndex)); in EmitNativeCode()
1993 const int32_t element_size = Primitive::ComponentSize(type); in VisitSystemArrayCopy() local
2067 __ ldr(IP, Address(temp1, element_size, Address::PostIndex)); in VisitSystemArrayCopy()
[all …]
Dintrinsics_x86.cc99 int32_t element_size = Primitive::ComponentSize(Primitive::kPrimNot); in EmitNativeCode() local
100 uint32_t offset = mirror::Array::DataOffset(element_size).Uint32Value(); in EmitNativeCode()
130 int32_t adjusted_offset = offset + constant * element_size; in EmitNativeCode()
154 int32_t adjusted_offset = offset + constant * element_size; in EmitNativeCode()
2895 const int32_t element_size = Primitive::ComponentSize(type); in GenSystemArrayCopyBaseAddress() local
2897 const uint32_t data_offset = mirror::Array::DataOffset(element_size).Uint32Value(); in GenSystemArrayCopyBaseAddress()
2901 __ leal(base, Address(array, element_size * constant + data_offset)); in GenSystemArrayCopyBaseAddress()
2917 const int32_t element_size = Primitive::ComponentSize(type); in GenSystemArrayCopyEndAddress() local
2922 __ leal(end, Address(base, element_size * constant)); in GenSystemArrayCopyEndAddress()
3233 const int32_t element_size = Primitive::ComponentSize(type); in VisitSystemArrayCopy() local
[all …]
Dintrinsics_arm_vixl.cc137 const int32_t element_size = Primitive::ComponentSize(type); in GenSystemArrayCopyBaseAddress() local
139 const uint32_t data_offset = mirror::Array::DataOffset(element_size).Uint32Value(); in GenSystemArrayCopyBaseAddress()
143 __ Add(base, array, element_size * constant + data_offset); in GenSystemArrayCopyBaseAddress()
160 const int32_t element_size = Primitive::ComponentSize(type); in GenSystemArrayCopyEndAddress() local
165 __ Add(end, base, element_size * constant); in GenSystemArrayCopyEndAddress()
192 const int32_t element_size = Primitive::ComponentSize(type); in EmitNativeCode() local
207 __ Ldr(tmp, MemOperand(src_curr_addr, element_size, PostIndex)); in EmitNativeCode()
234 __ Str(tmp, MemOperand(dst_curr_addr, element_size, PostIndex)); in EmitNativeCode()
2371 const int32_t element_size = Primitive::ComponentSize(type); in VisitSystemArrayCopy() local
2448 __ Ldr(temp_reg, MemOperand(temp1, element_size, PostIndex)); in VisitSystemArrayCopy()
[all …]
/art/dexlayout/
Ddexlayout.cc1595 const size_t element_size = data->GetSize() + 1; // Add one extra for null. in LayoutStringData() local
1596 size_t end_offset = cur_offset + element_size; in LayoutStringData()
1598 hot_bytes += element_size; in LayoutStringData()