/art/libartbase/base/ |
D | length_prefixed_array.h | 36 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 …]
|
D | array_slice.h | 51 size_t element_size = sizeof(T)) 54 element_size_(element_size) { in array_()
|
/art/runtime/utils/ |
D | dex_cache_arrays_layout-inl.h | 170 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()
|
D | dex_cache_arrays_layout.h | 130 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/ |
D | iterate_heap.cc | 269 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/ |
D | dex_file_verifier.h | 61 bool CheckListSize(const void* start, size_t count, size_t element_size, const char* label); 64 bool CheckList(size_t element_size, const char* label, const uint8_t* *ptr);
|
D | dex_instruction.cc | 107 uint16_t element_size = insns[1]; in SizeInCodeUnitsComplexOpcode() local 110 return (4 + (element_size * length + 1) / 2); in SizeInCodeUnitsComplexOpcode()
|
D | dex_file_verifier.cc | 308 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/ |
D | heaps.cc | 656 size_t element_size; in Java_art_Test913_followReferencesPrimitiveArray() local 660 element_size = 1; in Java_art_Test913_followReferencesPrimitiveArray() 664 element_size = 2; in Java_art_Test913_followReferencesPrimitiveArray() 668 element_size = 4; in Java_art_Test913_followReferencesPrimitiveArray() 672 element_size = 8; in Java_art_Test913_followReferencesPrimitiveArray() 679 for (size_t i = 0; i != element_size * element_count; ++i) { in Java_art_Test913_followReferencesPrimitiveArray()
|
/art/compiler/optimizing/ |
D | intrinsics_x86_64.cc | 93 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() 1133 const int32_t element_size = DataType::Size(type); in GenSystemArrayCopyAddresses() local 1135 const uint32_t data_offset = mirror::Array::DataOffset(element_size).Uint32Value(); in GenSystemArrayCopyAddresses() 1139 __ leal(src_base, Address(src, element_size * constant + data_offset)); in GenSystemArrayCopyAddresses() 1146 __ leal(dst_base, Address(dst, element_size * constant + data_offset)); in GenSystemArrayCopyAddresses() 1153 __ leal(src_end, Address(src_base, element_size * constant)); in GenSystemArrayCopyAddresses() 1409 const int32_t element_size = DataType::Size(type); in VisitSystemArrayCopy() local 1473 __ addl(temp1, Immediate(element_size)); in VisitSystemArrayCopy() [all …]
|
D | intrinsics_arm64.cc | 176 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() 2265 const int32_t element_size = DataType::Size(type); in GenSystemArrayCopyAddresses() local 2267 const uint32_t data_offset = mirror::Array::DataOffset(element_size).Uint32Value(); in GenSystemArrayCopyAddresses() 2271 __ Add(src_base, src, element_size * constant + data_offset); in GenSystemArrayCopyAddresses() 2279 __ Add(dst_base, dst, element_size * constant + data_offset); in GenSystemArrayCopyAddresses() 2287 __ Add(src_end, src_base, element_size * constant); in GenSystemArrayCopyAddresses() 2783 const int32_t element_size = DataType::Size(type); in VisitSystemArrayCopy() local 2872 __ Ldr(tmp, MemOperand(src_curr_addr, element_size, PostIndex)); in VisitSystemArrayCopy() [all …]
|
D | intrinsics_x86.cc | 100 int32_t element_size = DataType::Size(DataType::Type::kReference); in EmitNativeCode() local 101 uint32_t offset = mirror::Array::DataOffset(element_size).Uint32Value(); in EmitNativeCode() 131 int32_t adjusted_offset = offset + constant * element_size; in EmitNativeCode() 154 int32_t adjusted_offset = offset + constant * element_size; in EmitNativeCode() 2827 const int32_t element_size = DataType::Size(type); in GenSystemArrayCopyBaseAddress() local 2829 const uint32_t data_offset = mirror::Array::DataOffset(element_size).Uint32Value(); in GenSystemArrayCopyBaseAddress() 2833 __ leal(base, Address(array, element_size * constant + data_offset)); in GenSystemArrayCopyBaseAddress() 2849 const int32_t element_size = DataType::Size(type); in GenSystemArrayCopyEndAddress() local 2854 __ leal(end, Address(base, element_size * constant)); in GenSystemArrayCopyEndAddress() 3166 const int32_t element_size = DataType::Size(type); in VisitSystemArrayCopy() local [all …]
|
D | intrinsics_arm_vixl.cc | 137 const int32_t element_size = DataType::Size(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 = DataType::Size(type); in GenSystemArrayCopyEndAddress() local 165 __ Add(end, base, element_size * constant); in GenSystemArrayCopyEndAddress() 192 const int32_t element_size = DataType::Size(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() 2485 const int32_t element_size = DataType::Size(type); in VisitSystemArrayCopy() local 2562 __ Ldr(temp_reg, MemOperand(temp1, element_size, PostIndex)); in VisitSystemArrayCopy() [all …]
|