Searched refs:component_size (Results 1 – 10 of 10) sorted by relevance
/art/runtime/mirror/ |
D | array.h | 79 static constexpr MemberOffset DataOffset(size_t component_size) { in DataOffset() argument 80 DCHECK(IsPowerOfTwo(component_size)) << component_size; in DataOffset() 81 size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); in DataOffset() 82 DCHECK_EQ(RoundUp(data_offset, component_size), data_offset) in DataOffset() 98 void* GetRawData(size_t component_size, int32_t index) in GetRawData() argument 100 intptr_t data = reinterpret_cast<intptr_t>(this) + DataOffset(component_size).Int32Value() + in GetRawData() 101 + (index * component_size); in GetRawData() 111 const void* GetRawData(size_t component_size, int32_t index) const { in GetRawData() argument 112 intptr_t data = reinterpret_cast<intptr_t>(this) + DataOffset(component_size).Int32Value() + in GetRawData() 113 + (index * component_size); in GetRawData()
|
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()
|
D | array.cc | 149 const auto component_size = klass->GetComponentSize(); in CopyOf() local 154 memcpy(new_array->GetRawData(component_size, 0), in CopyOf() 155 h_this->GetRawData(component_size, 0), in CopyOf()
|
/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 | 476 size_t component_size = Primitive::ComponentSize(primitive_type); in DiffEntryContents() local 477 size_t data_offset = mirror::Array::DataOffset(component_size).Uint32Value(); in DiffEntryContents() 478 DCHECK_ALIGNED_PARAM(data_offset, component_size); in DiffEntryContents() 480 os_ << tabs << "Dirty array element " << (i - data_offset) / component_size << "\n"; in DiffEntryContents() 482 DCHECK(IsPowerOfTwo(component_size)); in DiffEntryContents() 483 i |= component_size - 1; in DiffEntryContents()
|
/art/compiler/debug/ |
D | elf_debug_info_writer.h | 308 uint32_t component_size = type->GetComponentSize(); in Write() local 309 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/jni/ |
D | jni_internal.cc | 2302 const size_t component_size = array->GetClass()->GetComponentSize(); in ReleasePrimitiveArrayCritical() local 2303 ReleasePrimitiveArray(soa, array, component_size, elements, mode); in ReleasePrimitiveArrayCritical() 2817 const size_t component_size = sizeof(ElementT); in GetPrimitiveArray() local 2818 size_t size = array->GetLength() * component_size; in GetPrimitiveArray() 2844 size_t component_size, in ReleasePrimitiveArray() argument 2848 void* array_data = array->GetRawData(component_size, 0); in ReleasePrimitiveArray() 2851 size_t bytes = array->GetLength() * component_size; in ReleasePrimitiveArray()
|
D | check_jni.cc | 1598 size_t component_size = a->GetClass()->GetComponentSize(); in CreateGuardedPACopy() local 1599 size_t byte_count = a->GetLength() * component_size; in CreateGuardedPACopy()
|
/art/runtime/gc/collector/ |
D | concurrent_copying.cc | 3312 size_t component_size = int_array_class->GetComponentSize(); in FillWithFakeObject() local 3313 CHECK_EQ(component_size, sizeof(int32_t)); in FillWithFakeObject() 3314 size_t data_offset = mirror::Array::DataOffset(component_size).SizeValue(); in FillWithFakeObject() 3328 int32_t length = (byte_size - data_offset) / component_size; in FillWithFakeObject() 3333 << " component_size=" << component_size << " data_offset=" << data_offset; in FillWithFakeObject() 3336 << " component_size=" << component_size << " data_offset=" << data_offset; in FillWithFakeObject()
|