Home
last modified time | relevance | path

Searched refs:element_size (Results 1 – 10 of 10) 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.h109 inline size_t DexCacheArraysLayout::ElementOffset(size_t element_size, uint32_t idx) { in ElementOffset() argument
110 return element_size * idx; in ElementOffset()
113 inline size_t DexCacheArraysLayout::ArraySize(size_t element_size, uint32_t num_elements) { in ArraySize() argument
114 return element_size * num_elements; in ArraySize()
Ddex_cache_arrays_layout.h107 static size_t ElementOffset(size_t element_size, uint32_t idx);
109 static size_t ArraySize(size_t element_size, uint32_t num_elements);
/art/runtime/
Ddex_file_verifier.h45 bool CheckListSize(const void* start, size_t count, size_t element_size, const char* label);
48 bool CheckList(size_t element_size, const char* label, const uint8_t* *ptr);
Ddex_instruction.cc114 uint16_t element_size = insns[1]; in SizeInCodeUnitsComplexOpcode() local
117 return (4 + (element_size * length + 1) / 2); in SizeInCodeUnitsComplexOpcode()
Ddex_file_verifier.cc208 bool DexFileVerifier::CheckList(size_t element_size, const char* label, const uint8_t* *ptr) { in CheckList() argument
216 if (!CheckListSize(*ptr + 4, count, element_size, label)) { in CheckList()
221 *ptr += 4 + count * element_size; in CheckList()
/art/compiler/optimizing/
Dintrinsics_arm64.cc1823 const int32_t element_size = Primitive::ComponentSize(type); in GenSystemArrayCopyAddresses() local
1826 uint32_t data_offset = mirror::Array::DataOffset(element_size).Uint32Value(); in GenSystemArrayCopyAddresses()
1829 __ Add(src_base, src, element_size * constant + data_offset); in GenSystemArrayCopyAddresses()
1837 __ Add(dst_base, dst, element_size * constant + data_offset); in GenSystemArrayCopyAddresses()
1845 __ Add(src_end, src_base, element_size * constant); in GenSystemArrayCopyAddresses()
2186 const int32_t element_size = Primitive::ComponentSize(Primitive::kPrimNot); in VisitSystemArrayCopy() local
2192 __ Ldr(tmp, MemOperand(src_curr_addr, element_size, vixl::PostIndex)); in VisitSystemArrayCopy()
2193 __ Str(tmp, MemOperand(dst_curr_addr, element_size, vixl::PostIndex)); in VisitSystemArrayCopy()
Dintrinsics_arm.cc1548 uint32_t element_size = sizeof(int32_t); in VisitSystemArrayCopy() local
1549 uint32_t offset = mirror::Array::DataOffset(element_size).Uint32Value(); in VisitSystemArrayCopy()
1552 __ AddConstant(temp1, src, element_size * constant + offset); in VisitSystemArrayCopy()
1560 __ AddConstant(temp2, dest, element_size * constant + offset); in VisitSystemArrayCopy()
1568 __ AddConstant(temp3, temp1, element_size * constant); in VisitSystemArrayCopy()
1580 __ ldr(IP, Address(temp1, element_size, Address::PostIndex)); in VisitSystemArrayCopy()
1581 __ str(IP, Address(temp2, element_size, Address::PostIndex)); in VisitSystemArrayCopy()
Dintrinsics_x86_64.cc1308 uint32_t element_size = sizeof(int32_t); in VisitSystemArrayCopy() local
1309 uint32_t offset = mirror::Array::DataOffset(element_size).Uint32Value(); in VisitSystemArrayCopy()
1312 __ leal(temp1, Address(src, element_size * constant + offset)); in VisitSystemArrayCopy()
1319 __ leal(temp2, Address(dest, element_size * constant + offset)); in VisitSystemArrayCopy()
1326 __ leal(temp3, Address(temp1, element_size * constant)); in VisitSystemArrayCopy()
1340 __ addl(temp1, Immediate(element_size)); in VisitSystemArrayCopy()
1341 __ addl(temp2, Immediate(element_size)); in VisitSystemArrayCopy()