Searched refs:component_size (Results 1 – 8 of 8) sorted by relevance
/art/runtime/ |
D | primitive.h | 29 constexpr size_t ComponentSizeShiftWidth(size_t component_size) { in ComponentSizeShiftWidth() argument 30 return component_size == 1u ? 0u : in ComponentSizeShiftWidth() 31 component_size == 2u ? 1u : in ComponentSizeShiftWidth() 32 component_size == 4u ? 2u : in ComponentSizeShiftWidth() 33 component_size == 8u ? 3u : 0u; in ComponentSizeShiftWidth()
|
D | jni_internal.cc | 1914 const size_t component_size = array->GetClass()->GetComponentSize(); in ReleasePrimitiveArrayCritical() local 1915 ReleasePrimitiveArray(soa, array, component_size, elements, mode); in ReleasePrimitiveArrayCritical() 2382 const size_t component_size = sizeof(ElementT); in GetPrimitiveArray() local 2383 size_t size = array->GetLength() * component_size; in GetPrimitiveArray() 2409 size_t component_size, void* elements, jint mode) in ReleasePrimitiveArray() argument 2411 void* array_data = array->GetRawData(component_size, 0); in ReleasePrimitiveArray() 2414 size_t bytes = array->GetLength() * component_size; in ReleasePrimitiveArray()
|
D | check_jni.cc | 1235 size_t component_size = a->GetClass()->GetComponentSize(); in CreateGuardedPACopy() local 1236 size_t byte_count = a->GetLength() * component_size; in CreateGuardedPACopy()
|
/art/runtime/mirror/ |
D | array.h | 67 static MemberOffset DataOffset(size_t component_size); 69 void* GetRawData(size_t component_size, int32_t index) in GetRawData() argument 71 intptr_t data = reinterpret_cast<intptr_t>(this) + DataOffset(component_size).Int32Value() + in GetRawData() 72 + (index * component_size); in GetRawData() 76 const void* GetRawData(size_t component_size, int32_t index) const { in GetRawData() argument 77 intptr_t data = reinterpret_cast<intptr_t>(this) + DataOffset(component_size).Int32Value() + in GetRawData() 78 + (index * component_size); in GetRawData()
|
D | array-inl.h | 51 inline MemberOffset Array::DataOffset(size_t component_size) { in DataOffset() argument 52 DCHECK(IsPowerOfTwo(component_size)) << component_size; in DataOffset() 53 size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); in DataOffset() 54 DCHECK_EQ(RoundUp(data_offset, component_size), data_offset) in DataOffset() 72 size_t component_size = 1U << component_size_shift; in ComputeArraySize() local 73 size_t header_size = Array::DataOffset(component_size).SizeValue(); in ComputeArraySize() 86 DCHECK_EQ(RoundUp(header_size, component_size), header_size); in ComputeArraySize()
|
D | array.cc | 137 const auto component_size = GetClass()->GetComponentSize(); in CopyOf() local 141 memcpy(new_array->GetRawData(component_size, 0), h_this->GetRawData(component_size, 0), in CopyOf()
|
/art/runtime/gc/collector/ |
D | concurrent_copying.cc | 1208 size_t component_size = int_array_class->GetComponentSize(); in FillWithDummyObject() local 1209 CHECK_EQ(component_size, sizeof(int32_t)); in FillWithDummyObject() 1210 size_t data_offset = mirror::Array::DataOffset(component_size).SizeValue(); in FillWithDummyObject() 1222 int32_t length = (byte_size - data_offset) / component_size; in FillWithDummyObject() 1226 << " component_size=" << component_size << " data_offset=" << data_offset; in FillWithDummyObject() 1229 << " component_size=" << component_size << " data_offset=" << data_offset; in FillWithDummyObject()
|
/art/compiler/dex/quick/ |
D | gen_common.cc | 552 size_t component_size = sizeof(int32_t); in GenFilledNewArray() local 606 mirror::Array::DataOffset(component_size).Int32Value()); in GenFilledNewArray() 624 -mirror::Array::DataOffset(component_size).Int32Value()); in GenFilledNewArray() 637 mirror::Array::DataOffset(component_size).Int32Value() + i * 4, rl_arg.reg, in GenFilledNewArray() 642 mirror::Array::DataOffset(component_size).Int32Value() + i * 4, rl_arg.reg); in GenFilledNewArray()
|