/art/runtime/mirror/ |
D | array-inl.h | 135 int32_t src_pos, in Memmove() argument 141 DCHECK_GE(src_pos, 0); in Memmove() 146 DCHECK_LT(src_pos, src->GetLength()); in Memmove() 147 DCHECK_LE(src_pos, src->GetLength() - count); in Memmove() 153 Memcpy(dst_pos, src, src_pos, count); in Memmove() 157 const void* src_raw = src->GetRawData(sizeof(T), src_pos); in Memmove() 163 const bool copy_forward = (dst_pos < src_pos) || (dst_pos - src_pos >= count); in Memmove() 197 int32_t src_pos, in Memcpy() argument 203 DCHECK_GE(src_pos, 0); in Memcpy() 208 DCHECK_LT(src_pos, src->GetLength()); in Memcpy() [all …]
|
D | object_array-inl.h | 106 int32_t src_pos, in AssignableMemmove() argument 111 src->GetWithoutChecks(src_pos + i); in AssignableMemmove() 120 const bool copy_forward = (src != this) || (dst_pos < src_pos) || (dst_pos - src_pos >= count); in AssignableMemmove() 134 src_pos + i); in AssignableMemmove() 142 ObjPtr<T> obj = src->GetWithoutChecks(src_pos + i); in AssignableMemmove() 159 src_pos + i); in AssignableMemmove() 167 ObjPtr<T> obj = src->GetWithoutChecks(src_pos + i); in AssignableMemmove() 184 int32_t src_pos, in AssignableMemcpy() argument 189 src->GetWithoutChecks(src_pos + i); in AssignableMemcpy() 209 src->template GetWithoutChecks<kDefaultVerifyFlags, kWithoutReadBarrier>(src_pos + i); in AssignableMemcpy() [all …]
|
D | object_array.h | 93 int32_t src_pos, 100 int32_t src_pos, 108 int32_t src_pos,
|
D | array.h | 208 void Memmove(int32_t dst_pos, ObjPtr<PrimitiveArray<T>> src, int32_t src_pos, int32_t count) 216 EXPORT void Memcpy(int32_t dst_pos, ObjPtr<PrimitiveArray<T>> src, int32_t src_pos, int32_t count) 279 int32_t src_pos,
|
/art/runtime/interpreter/ |
D | unstarted_runtime.cc | 797 int32_t src_pos, in PrimitiveArrayCopy() argument 813 const bool copy_forward = (dst_pos < src_pos) || (dst_pos - src_pos >= length); in PrimitiveArrayCopy() 816 dst->Set(dst_pos + i, src->Get(src_pos + i)); in PrimitiveArrayCopy() 820 dst->Set(dst_pos + length - i, src->Get(src_pos + length - i)); in PrimitiveArrayCopy() 830 jint src_pos = shadow_frame->GetVReg(arg_offset + 1); in UnstartedSystemArraycopy() local 855 if (UNLIKELY(src_pos < 0) || UNLIKELY(dst_pos < 0) || UNLIKELY(length < 0) || in UnstartedSystemArraycopy() 856 UNLIKELY(src_pos > src_array->GetLength() - length) || in UnstartedSystemArraycopy() 860 src_array->GetLength(), src_pos, dst_array->GetLength(), dst_pos, in UnstartedSystemArraycopy() 894 const bool copy_forward = (dst_pos < src_pos) || (dst_pos - src_pos >= length); in UnstartedSystemArraycopy() 897 dst->Set(dst_pos + i, src->Get(src_pos + i)); in UnstartedSystemArraycopy() [all …]
|
D | unstarted_runtime_test.cc | 91 int32_t src_pos, in RunArrayCopy() argument 98 tmp->SetVReg(1, src_pos); in RunArrayCopy() 116 int32_t src_pos, in RunArrayCopy() argument 135 src_pos, in RunArrayCopy()
|
/art/compiler/optimizing/ |
D | code_generator.cc | 1770 HIntConstant* src_pos = invoke->InputAt(1)->AsIntConstantOrNull(); in CreateSystemArrayCopyLocationSummary() local 1774 if ((src_pos != nullptr && src_pos->GetValue() < 0) || in CreateSystemArrayCopyLocationSummary() 1794 if (src_pos != nullptr && dest_pos != nullptr && src_pos->GetValue() < dest_pos->GetValue()) { in CreateSystemArrayCopyLocationSummary()
|
D | intrinsics_x86.cc | 756 HIntConstant* src_pos = invoke->InputAt(1)->AsIntConstantOrNull(); in CreateSystemArrayCopyLocations() local 761 ((src_pos != nullptr) ? 1 : 0) in CreateSystemArrayCopyLocations() 772 if ((src_pos != nullptr && src_pos->GetValue() < 0) || in CreateSystemArrayCopyLocations() 877 Location src_pos = locations->InAt(1); in SystemArrayCopyPrimitive() local 922 src_pos, in SystemArrayCopyPrimitive() 944 GenArrayAddress(assembler, src_base, src, src_pos, type, data_offset); in SystemArrayCopyPrimitive() 3100 Location src_pos = locations->InAt(1); in VisitSystemArrayCopy() local 3119 if (src_pos.IsConstant()) { in VisitSystemArrayCopy() 3120 int32_t src_pos_constant = src_pos.GetConstant()->AsIntConstant()->GetValue(); in VisitSystemArrayCopy() 3143 Register src_pos_reg = src_pos.AsRegister<Register>(); in VisitSystemArrayCopy() [all …]
|
D | intrinsics_arm64.cc | 2748 HIntConstant* src_pos = invoke->InputAt(1)->AsIntConstantOrNull(); in VisitSystemArrayCopyChar() local 2752 if ((src_pos != nullptr && src_pos->GetValue() < 0) || in VisitSystemArrayCopyChar() 2859 Location src_pos, in GenSystemArrayCopyAddresses() argument 2872 GenArrayAddress(masm, src_base, src, src_pos, type, data_offset); in GenSystemArrayCopyAddresses() 2883 Location src_pos = locations->InAt(1); in VisitSystemArrayCopyChar() local 2922 src_pos, in VisitSystemArrayCopyChar() 2945 src_pos, in VisitSystemArrayCopyChar() 3098 Location src_pos = locations->InAt(1); in VisitSystemArrayCopy() local 3117 if (src_pos.IsConstant()) { in VisitSystemArrayCopy() 3118 int32_t src_pos_constant = src_pos.GetConstant()->AsIntConstant()->GetValue(); in VisitSystemArrayCopy() [all …]
|
D | intrinsics_x86_64.cc | 638 HIntConstant* src_pos = invoke->InputAt(1)->AsIntConstantOrNull(); in CreateSystemArrayCopyLocations() local 642 if ((src_pos != nullptr && src_pos->GetValue() < 0) || in CreateSystemArrayCopyLocations() 746 Location src_pos = locations->InAt(1); in SystemArrayCopyPrimitive() local 784 src_pos, in SystemArrayCopyPrimitive() 813 GenArrayAddress(assembler, src_base, src, src_pos, type, data_offset); in SystemArrayCopyPrimitive() 894 Location src_pos = locations->InAt(1); in VisitSystemArrayCopy() local 915 if (src_pos.IsConstant()) { in VisitSystemArrayCopy() 916 int32_t src_pos_constant = src_pos.GetConstant()->AsIntConstant()->GetValue(); in VisitSystemArrayCopy() 939 CpuRegister src_pos_reg = src_pos.AsRegister<CpuRegister>(); in VisitSystemArrayCopy() 970 src_pos, in VisitSystemArrayCopy() [all …]
|
D | intrinsics_riscv64.cc | 1565 Location src_pos, in GenSystemArrayCopyAddresses() argument 1578 GenArrayAddress(codegen, src_base, src, src_pos, type, data_offset); in GenSystemArrayCopyAddresses() 1628 Location src_pos = locations->InAt(1); in VisitSystemArrayCopy() local 1645 if (src_pos.IsConstant()) { in VisitSystemArrayCopy() 1646 int32_t src_pos_constant = src_pos.GetConstant()->AsIntConstant()->GetValue(); in VisitSystemArrayCopy() 1666 XRegister src_pos_reg = src_pos.AsRegister<XRegister>(); in VisitSystemArrayCopy() 1694 src_pos, in VisitSystemArrayCopy() 1877 src_pos, in VisitSystemArrayCopy()
|
D | intrinsics_arm_vixl.cc | 1320 Location src_pos = locations->InAt(1); in VisitSystemArrayCopy() local 1341 if (src_pos.IsConstant()) { in VisitSystemArrayCopy() 1342 int32_t src_pos_constant = Int32ConstantFrom(src_pos); in VisitSystemArrayCopy() 1365 __ Cmp(RegisterFrom(src_pos), OperandFrom(dest_pos, DataType::Type::kInt32)); in VisitSystemArrayCopy() 1394 src_pos, in VisitSystemArrayCopy() 1558 GenArrayAddress(GetAssembler(), temp1, src, src_pos, type, data_offset); in VisitSystemArrayCopy()
|
/art/test/MyClassNatives/ |
D | MyClassNatives.java | 92 static native void arraycopy(Object src, int src_pos, Object dst, int dst_pos, int length); in arraycopy() argument 266 static native void arraycopy_Fast(Object src, int src_pos, Object dst, int dst_pos, int length); in arraycopy_Fast() argument
|
/art/compiler/jni/ |
D | jni_compiler_test.cc | 1459 void my_arraycopy(JNIEnv* env, jclass klass, jobject src, jint src_pos, jobject dst, jint dst_pos, … in JNI_TEST() 1463 EXPECT_EQ(1234, src_pos); in JNI_TEST()
|