Home
last modified time | relevance | path

Searched refs:element_size (Results 1 – 11 of 11) 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.h53 size_t element_size = sizeof(T))
56 element_size_(element_size) { in array_()
61 size_t element_size = sizeof(T),
64 lpa != nullptr && lpa->size() != 0 ? &lpa->At(0, element_size, alignment) : nullptr,
66 element_size) {}
/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()
289 for (size_t i = 0; i != element_size * element_count; ++i) { in Java_art_Test906_iterateThroughHeapPrimitiveArray()
/art/test/913-heaps/
Dheaps.cc674 size_t element_size; in Java_art_Test913_followReferencesPrimitiveArray() local
678 element_size = 1; in Java_art_Test913_followReferencesPrimitiveArray()
682 element_size = 2; in Java_art_Test913_followReferencesPrimitiveArray()
686 element_size = 4; in Java_art_Test913_followReferencesPrimitiveArray()
690 element_size = 8; in Java_art_Test913_followReferencesPrimitiveArray()
694 for (size_t i = 0; i != element_size * element_count; ++i) { in Java_art_Test913_followReferencesPrimitiveArray()
/art/libdexfile/dex/
Ddex_instruction.cc108 uint16_t element_size = insns[1]; in SizeInCodeUnitsComplexOpcode() local
111 return (4 + (element_size * length + 1) / 2); in SizeInCodeUnitsComplexOpcode()
Ddex_file_verifier.cc229 bool CheckListSize(const void* start, size_t count, size_t element_size, const char* label);
232 bool CheckList(size_t element_size, const char* label, const uint8_t* *ptr);
564 bool DexFileVerifier::CheckList(size_t element_size, const char* label, const uint8_t* *ptr) { in CheckList() argument
572 if (!CheckListSize(*ptr + 4, count, element_size, label)) { in CheckList()
577 *ptr += 4 + count * element_size; in CheckList()
/art/compiler/optimizing/
Dintrinsics_riscv64.cc51 const int32_t element_size = DataType::Size(DataType::Type::kReference); in EmitNativeCode() local
76 __ Addi(src_curr_addr, src_curr_addr, element_size); in EmitNativeCode()
77 __ Addi(dst_curr_addr, dst_curr_addr, element_size); in EmitNativeCode()
1575 const int32_t element_size = DataType::Size(type); in GenSystemArrayCopyAddresses() local
1576 const uint32_t data_offset = mirror::Array::DataOffset(element_size).Uint32Value(); in GenSystemArrayCopyAddresses()
1821 const int32_t element_size = DataType::Size(type); in VisitSystemArrayCopy() local
1904 __ Addi(src_curr_addr, src_curr_addr, element_size); in VisitSystemArrayCopy()
1905 __ Addi(dst_curr_addr, dst_curr_addr, element_size); in VisitSystemArrayCopy()
Dintrinsics_arm64.cc110 const int32_t element_size = DataType::Size(DataType::Type::kReference); in EmitNativeCode() local
121 __ Ldr(tmp_reg, MemOperand(src_curr_addr, element_size, PostIndex)); in EmitNativeCode()
148 __ Str(tmp_reg, MemOperand(dst_curr_addr, element_size, PostIndex)); in EmitNativeCode()
2869 const int32_t element_size = DataType::Size(type); in GenSystemArrayCopyAddresses() local
2870 const uint32_t data_offset = mirror::Array::DataOffset(element_size).Uint32Value(); in GenSystemArrayCopyAddresses()
3314 const int32_t element_size = DataType::Size(type); in VisitSystemArrayCopy() local
3386 __ Ldr(tmp, MemOperand(src_curr_addr, element_size, PostIndex)); in VisitSystemArrayCopy()
3387 __ Str(tmp, MemOperand(dst_curr_addr, element_size, PostIndex)); in VisitSystemArrayCopy()
Dintrinsics_arm_vixl.cc97 const int32_t element_size = DataType::Size(type); in EmitNativeCode() local
108 __ Ldr(tmp, MemOperand(src_curr_addr, element_size, PostIndex)); in EmitNativeCode()
135 __ Str(tmp, MemOperand(dst_curr_addr, element_size, PostIndex)); in EmitNativeCode()
1506 const int32_t element_size = DataType::Size(type); in VisitSystemArrayCopy() local
1507 const int32_t data_offset = mirror::Array::DataOffset(element_size).Uint32Value(); in VisitSystemArrayCopy()
1583 __ Ldr(temp_reg, MemOperand(temp1, element_size, PostIndex)); in VisitSystemArrayCopy()
1584 __ Str(temp_reg, MemOperand(temp2, element_size, PostIndex)); in VisitSystemArrayCopy()
Dintrinsics_x86_64.cc107 const int32_t element_size = DataType::Size(type); in EmitNativeCode() local
131 __ addl(src_curr_addr, Immediate(element_size)); in EmitNativeCode()
132 __ addl(dst_curr_addr, Immediate(element_size)); in EmitNativeCode()
1076 const int32_t element_size = DataType::Size(type); in VisitSystemArrayCopy() local
1077 const uint32_t data_offset = mirror::Array::DataOffset(element_size).Uint32Value(); in VisitSystemArrayCopy()
Dintrinsics_x86.cc110 const int32_t element_size = DataType::Size(type); in EmitNativeCode() local
137 __ addl(src_curr_addr, Immediate(element_size)); in EmitNativeCode()
138 __ addl(dst_curr_addr, Immediate(element_size)); in EmitNativeCode()