Searched refs:component_size (Results 1 – 10 of 10) sorted by relevance
/art/runtime/mirror/ |
D | array.h | 81 static constexpr MemberOffset DataOffset(size_t component_size) { in DataOffset() argument 82 DCHECK(IsPowerOfTwo(component_size)) << component_size; in DataOffset() 83 size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); in DataOffset() 84 DCHECK_EQ(RoundUp(data_offset, component_size), data_offset) in DataOffset() 100 void* GetRawData(size_t component_size, int32_t index) in GetRawData() argument 102 intptr_t data = reinterpret_cast<intptr_t>(this) + DataOffset(component_size).Int32Value() + in GetRawData() 103 + (index * component_size); in GetRawData() 113 const void* GetRawData(size_t component_size, int32_t index) const { in GetRawData() argument 114 intptr_t data = reinterpret_cast<intptr_t>(this) + DataOffset(component_size).Int32Value() + in GetRawData() 115 + (index * component_size); in GetRawData()
|
D | array.cc | 150 const auto component_size = klass->GetComponentSize(); in CopyOf() local 155 memcpy(new_array->GetRawData(component_size, 0), in CopyOf() 156 h_this->GetRawData(component_size, 0), in CopyOf()
|
D | array-alloc-inl.h | 39 size_t component_size = 1U << component_size_shift; in ComputeArraySize() local 40 size_t header_size = Array::DataOffset(component_size).SizeValue(); in ComputeArraySize() 53 DCHECK_EQ(RoundUp(header_size, component_size), header_size); in ComputeArraySize()
|
/art/libdexfile/dex/ |
D | primitive.h | 30 constexpr size_t ComponentSizeShiftWidth(size_t component_size) { in ComponentSizeShiftWidth() argument 31 return component_size == 1u ? 0u : in ComponentSizeShiftWidth() 32 component_size == 2u ? 1u : in ComponentSizeShiftWidth() 33 component_size == 4u ? 2u : in ComponentSizeShiftWidth() 34 component_size == 8u ? 3u : 0u; in ComponentSizeShiftWidth()
|
/art/imgdiag/ |
D | imgdiag.cc | 493 size_t component_size = Primitive::ComponentSize(primitive_type); in DiffEntryContents() local 494 size_t data_offset = mirror::Array::DataOffset(component_size).Uint32Value(); in DiffEntryContents() 495 DCHECK_ALIGNED_PARAM(data_offset, component_size); in DiffEntryContents() 497 os_ << tabs << "Dirty array element " << (i - data_offset) / component_size << "\n"; in DiffEntryContents() 499 DCHECK(IsPowerOfTwo(component_size)); in DiffEntryContents() 500 i |= component_size - 1; in DiffEntryContents()
|
/art/compiler/debug/ |
D | elf_debug_info_writer.h | 309 uint32_t component_size = type->GetComponentSize(); in Write() local 310 uint32_t data_offset = mirror::Array::DataOffset(component_size).Uint32Value(); in Write()
|
/art/openjdkjvmti/ |
D | ti_heap.cc | 155 size_t component_size = array->GetClass()->GetComponentSize(); in ReportPrimitiveArray() local 184 array_length * component_size, in ReportPrimitiveArray() 193 memcpy(data.get(), array->GetRawData(component_size, 0), array_length * component_size); in ReportPrimitiveArray()
|
/art/runtime/gc/collector/ |
D | concurrent_copying.cc | 3370 size_t component_size = int_array_class->GetComponentSize(); in FillWithFakeObject() local 3371 CHECK_EQ(component_size, sizeof(int32_t)); in FillWithFakeObject() 3372 size_t data_offset = mirror::Array::DataOffset(component_size).SizeValue(); in FillWithFakeObject() 3386 int32_t length = (byte_size - data_offset) / component_size; in FillWithFakeObject() 3391 << " component_size=" << component_size << " data_offset=" << data_offset; in FillWithFakeObject() 3394 << " component_size=" << component_size << " data_offset=" << data_offset; in FillWithFakeObject()
|
/art/runtime/jni/ |
D | jni_internal.cc | 2398 const size_t component_size = array->GetClass()->GetComponentSize(); in ReleasePrimitiveArrayCritical() local 2399 ReleasePrimitiveArray(soa, array, component_size, elements, mode); in ReleasePrimitiveArrayCritical() 2922 const size_t component_size = sizeof(ElementT); in GetPrimitiveArray() local 2923 size_t size = array->GetLength() * component_size; in GetPrimitiveArray() 2949 size_t component_size, in ReleasePrimitiveArray() argument 2953 void* array_data = array->GetRawData(component_size, 0); in ReleasePrimitiveArray() 2956 size_t bytes = array->GetLength() * component_size; in ReleasePrimitiveArray()
|
D | check_jni.cc | 1607 size_t component_size = a->GetClass()->GetComponentSize(); in CreateGuardedPACopy() local 1608 size_t byte_count = a->GetLength() * component_size; in CreateGuardedPACopy()
|