Home
last modified time | relevance | path

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

/art/libartbase/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.h51 size_t element_size = sizeof(T))
54 element_size_(element_size) { in array_()
/art/runtime/utils/
Ddex_cache_arrays_layout-inl.h170 inline size_t DexCacheArraysLayout::ElementOffset(PointerSize element_size, uint32_t idx) { in ElementOffset() argument
171 return static_cast<size_t>(element_size) * idx; in ElementOffset()
174 inline size_t DexCacheArraysLayout::ArraySize(PointerSize element_size, uint32_t num_elements) { in ArraySize() argument
175 return static_cast<size_t>(element_size) * num_elements; in ArraySize()
178 inline size_t DexCacheArraysLayout::PairArraySize(PointerSize element_size, uint32_t num_elements) { in PairArraySize() argument
179 return 2u * static_cast<size_t>(element_size) * num_elements; in PairArraySize()
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);
133 static size_t PairArraySize(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/libdexfile/dex/
Ddex_file_verifier.h67 bool CheckListSize(const void* start, size_t count, size_t element_size, const char* label);
70 bool CheckList(size_t element_size, const char* label, const uint8_t* *ptr);
Ddex_instruction.cc107 uint16_t element_size = insns[1]; in SizeInCodeUnitsComplexOpcode() local
110 return (4 + (element_size * length + 1) / 2); in SizeInCodeUnitsComplexOpcode()
Ddex_file_verifier.cc251 bool DexFileVerifier::CheckList(size_t element_size, const char* label, const uint8_t* *ptr) { in CheckList() argument
259 if (!CheckListSize(*ptr + 4, count, element_size, label)) { in CheckList()
264 *ptr += 4 + count * element_size; in CheckList()
/art/test/913-heaps/
Dheaps.cc667 size_t element_size; in Java_art_Test913_followReferencesPrimitiveArray() local
671 element_size = 1; in Java_art_Test913_followReferencesPrimitiveArray()
675 element_size = 2; in Java_art_Test913_followReferencesPrimitiveArray()
679 element_size = 4; in Java_art_Test913_followReferencesPrimitiveArray()
683 element_size = 8; in Java_art_Test913_followReferencesPrimitiveArray()
690 for (size_t i = 0; i != element_size * element_count; ++i) { in Java_art_Test913_followReferencesPrimitiveArray()
/art/compiler/optimizing/
Dintrinsics_x86_64.cc93 int32_t element_size = DataType::Size(DataType::Type::kReference); in EmitNativeCode() local
114 __ addl(src_curr_addr, Immediate(element_size)); in EmitNativeCode()
115 __ addl(dst_curr_addr, Immediate(element_size)); in EmitNativeCode()
835 const int32_t element_size = DataType::Size(type); in GenSystemArrayCopyAddresses() local
837 const uint32_t data_offset = mirror::Array::DataOffset(element_size).Uint32Value(); in GenSystemArrayCopyAddresses()
841 __ leal(src_base, Address(src, element_size * constant + data_offset)); in GenSystemArrayCopyAddresses()
848 __ leal(dst_base, Address(dst, element_size * constant + data_offset)); in GenSystemArrayCopyAddresses()
855 __ leal(src_end, Address(src_base, element_size * constant)); in GenSystemArrayCopyAddresses()
1111 const int32_t element_size = DataType::Size(type); in VisitSystemArrayCopy() local
1175 __ addl(temp1, Immediate(element_size)); in VisitSystemArrayCopy()
[all …]
Dintrinsics_x86.cc95 int32_t element_size = DataType::Size(DataType::Type::kReference); in EmitNativeCode() local
96 uint32_t offset = mirror::Array::DataOffset(element_size).Uint32Value(); in EmitNativeCode()
126 int32_t adjusted_offset = offset + constant * element_size; in EmitNativeCode()
149 int32_t adjusted_offset = offset + constant * element_size; in EmitNativeCode()
2502 const int32_t element_size = DataType::Size(type); in GenSystemArrayCopyBaseAddress() local
2504 const uint32_t data_offset = mirror::Array::DataOffset(element_size).Uint32Value(); in GenSystemArrayCopyBaseAddress()
2508 __ leal(base, Address(array, element_size * constant + data_offset)); in GenSystemArrayCopyBaseAddress()
2524 const int32_t element_size = DataType::Size(type); in GenSystemArrayCopyEndAddress() local
2529 __ leal(end, Address(base, element_size * constant)); in GenSystemArrayCopyEndAddress()
2841 const int32_t element_size = DataType::Size(type); in VisitSystemArrayCopy() local
[all …]
Dintrinsics_arm_vixl.cc133 const int32_t element_size = DataType::Size(type); in GenSystemArrayCopyBaseAddress() local
135 const uint32_t data_offset = mirror::Array::DataOffset(element_size).Uint32Value(); in GenSystemArrayCopyBaseAddress()
139 __ Add(base, array, element_size * constant + data_offset); in GenSystemArrayCopyBaseAddress()
156 const int32_t element_size = DataType::Size(type); in GenSystemArrayCopyEndAddress() local
161 __ Add(end, base, element_size * constant); in GenSystemArrayCopyEndAddress()
188 const int32_t element_size = DataType::Size(type); in EmitNativeCode() local
203 __ Ldr(tmp, MemOperand(src_curr_addr, element_size, PostIndex)); in EmitNativeCode()
230 __ Str(tmp, MemOperand(dst_curr_addr, element_size, PostIndex)); in EmitNativeCode()
2186 const int32_t element_size = DataType::Size(type); in VisitSystemArrayCopy() local
2263 __ Ldr(temp_reg, MemOperand(temp1, element_size, PostIndex)); in VisitSystemArrayCopy()
[all …]
Dintrinsics_arm64.cc176 const int32_t element_size = DataType::Size(DataType::Type::kReference); in EmitNativeCode() local
186 __ Ldr(tmp_reg, MemOperand(src_curr_addr, element_size, PostIndex)); in EmitNativeCode()
213 __ Str(tmp_reg, MemOperand(dst_curr_addr, element_size, PostIndex)); in EmitNativeCode()
2145 const int32_t element_size = DataType::Size(type); in GenSystemArrayCopyAddresses() local
2147 const uint32_t data_offset = mirror::Array::DataOffset(element_size).Uint32Value(); in GenSystemArrayCopyAddresses()
2151 __ Add(src_base, src, element_size * constant + data_offset); in GenSystemArrayCopyAddresses()
2159 __ Add(dst_base, dst, element_size * constant + data_offset); in GenSystemArrayCopyAddresses()
2167 __ Add(src_end, src_base, element_size * constant); in GenSystemArrayCopyAddresses()
2663 const int32_t element_size = DataType::Size(type); in VisitSystemArrayCopy() local
2752 __ Ldr(tmp, MemOperand(src_curr_addr, element_size, PostIndex)); in VisitSystemArrayCopy()
[all …]