Home
last modified time | relevance | path

Searched refs:component_size (Results 1 – 10 of 10) sorted by relevance

/art/runtime/mirror/
Darray.h76 static constexpr MemberOffset DataOffset(size_t component_size) { in DataOffset() argument
77 DCHECK(IsPowerOfTwo(component_size)) << component_size; in DataOffset()
78 size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); in DataOffset()
79 DCHECK_EQ(RoundUp(data_offset, component_size), data_offset) in DataOffset()
95 void* GetRawData(size_t component_size, int32_t index) in GetRawData() argument
97 intptr_t data = reinterpret_cast<intptr_t>(this) + DataOffset(component_size).Int32Value() + in GetRawData()
98 + (index * component_size); in GetRawData()
108 const void* GetRawData(size_t component_size, int32_t index) const { in GetRawData() argument
109 intptr_t data = reinterpret_cast<intptr_t>(this) + DataOffset(component_size).Int32Value() + in GetRawData()
110 + (index * component_size); in GetRawData()
Darray-alloc-inl.h38 size_t component_size = 1U << component_size_shift; in ComputeArraySize() local
39 size_t header_size = Array::DataOffset(component_size).SizeValue(); in ComputeArraySize()
52 DCHECK_EQ(RoundUp(header_size, component_size), header_size); in ComputeArraySize()
Darray.cc151 const auto component_size = klass->GetComponentSize(); in CopyOf() local
156 memcpy(new_array->GetRawData(component_size, 0), in CopyOf()
157 h_this->GetRawData(component_size, 0), in CopyOf()
/art/libdexfile/dex/
Dprimitive.h30 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/
Dimgdiag.cc476 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/
Delf_debug_info_writer.h308 uint32_t component_size = type->GetComponentSize(); in Write() local
309 uint32_t data_offset = mirror::Array::DataOffset(component_size).Uint32Value(); in Write()
/art/openjdkjvmti/
Dti_heap.cc125 size_t component_size = array->GetClass()->GetComponentSize(); in ReportPrimitiveArray() local
154 array_length * component_size, in ReportPrimitiveArray()
163 memcpy(data.get(), array->GetRawData(component_size, 0), array_length * component_size); in ReportPrimitiveArray()
/art/runtime/gc/collector/
Dconcurrent_copying.cc3227 size_t component_size = int_array_class->GetComponentSize(); in FillWithDummyObject() local
3228 CHECK_EQ(component_size, sizeof(int32_t)); in FillWithDummyObject()
3229 size_t data_offset = mirror::Array::DataOffset(component_size).SizeValue(); in FillWithDummyObject()
3243 int32_t length = (byte_size - data_offset) / component_size; in FillWithDummyObject()
3248 << " component_size=" << component_size << " data_offset=" << data_offset; in FillWithDummyObject()
3251 << " component_size=" << component_size << " data_offset=" << data_offset; in FillWithDummyObject()
/art/runtime/jni/
Djni_internal.cc2298 const size_t component_size = array->GetClass()->GetComponentSize(); in ReleasePrimitiveArrayCritical() local
2299 ReleasePrimitiveArray(soa, array, component_size, elements, mode); in ReleasePrimitiveArrayCritical()
2779 const size_t component_size = sizeof(ElementT); in GetPrimitiveArray() local
2780 size_t size = array->GetLength() * component_size; in GetPrimitiveArray()
2806 size_t component_size, in ReleasePrimitiveArray() argument
2810 void* array_data = array->GetRawData(component_size, 0); in ReleasePrimitiveArray()
2813 size_t bytes = array->GetLength() * component_size; in ReleasePrimitiveArray()
Dcheck_jni.cc1548 size_t component_size = a->GetClass()->GetComponentSize(); in CreateGuardedPACopy() local
1549 size_t byte_count = a->GetLength() * component_size; in CreateGuardedPACopy()