Home
last modified time | relevance | path

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

/art/runtime/mirror/
Darray.h79 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()
Darray.cc149 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()
Darray-alloc-inl.h39 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/
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.cc156 size_t component_size = array->GetClass()->GetComponentSize(); in ReportPrimitiveArray() local
185 array_length * component_size, in ReportPrimitiveArray()
194 memcpy(data.get(), array->GetRawData(component_size, 0), array_length * component_size); in ReportPrimitiveArray()
/art/runtime/jni/
Djni_internal.cc2137 const size_t component_size = array->GetClass()->GetComponentSize(); in ReleasePrimitiveArrayCritical() local
2138 ReleasePrimitiveArray(soa, array, component_size, elements, mode); in ReleasePrimitiveArrayCritical()
2618 const size_t component_size = sizeof(ElementT); in GetPrimitiveArray() local
2619 size_t size = array->GetLength() * component_size; in GetPrimitiveArray()
2645 size_t component_size, in ReleasePrimitiveArray() argument
2649 void* array_data = array->GetRawData(component_size, 0); in ReleasePrimitiveArray()
2652 size_t bytes = array->GetLength() * component_size; in ReleasePrimitiveArray()