/art/runtime/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 | 40 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/ |
D | dex_cache_arrays_layout-inl.h | 165 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()
|
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);
|
/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/runtime/ |
D | dex_file_verifier.h | 60 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);
|
D | dex_instruction.cc | 118 uint16_t element_size = insns[1]; in SizeInCodeUnitsComplexOpcode() local 121 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 | 619 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/ |
D | intrinsics_x86_64.cc | 92 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 …]
|
D | intrinsics_arm64.cc | 175 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 …]
|
D | intrinsics_arm.cc | 60 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 …]
|
D | intrinsics_x86.cc | 99 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 …]
|
D | intrinsics_arm_vixl.cc | 137 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/ |
D | dexlayout.cc | 1595 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()
|