/art/runtime/mirror/ |
D | object_array-inl.h | 105 int32_t src_pos, in AssignableMemmove() argument 110 src->GetWithoutChecks(src_pos + i); in AssignableMemmove() 119 const bool copy_forward = (src != this) || (dst_pos < src_pos) || (dst_pos - src_pos >= count); in AssignableMemmove() 133 src_pos + i); in AssignableMemmove() 141 ObjPtr<T> obj = src->GetWithoutChecks(src_pos + i); in AssignableMemmove() 158 src_pos + i); in AssignableMemmove() 166 ObjPtr<T> obj = src->GetWithoutChecks(src_pos + i); in AssignableMemmove() 183 int32_t src_pos, in AssignableMemcpy() argument 188 src->GetWithoutChecks(src_pos + i); in AssignableMemcpy() 208 src->template GetWithoutChecks<kDefaultVerifyFlags, kWithoutReadBarrier>(src_pos + i); in AssignableMemcpy() [all …]
|
D | array-inl.h | 130 int32_t src_pos, in Memmove() argument 136 DCHECK_GE(src_pos, 0); in Memmove() 141 DCHECK_LT(src_pos, src->GetLength()); in Memmove() 142 DCHECK_LE(src_pos, src->GetLength() - count); in Memmove() 148 Memcpy(dst_pos, src, src_pos, count); in Memmove() 152 const void* src_raw = src->GetRawData(sizeof(T), src_pos); in Memmove() 158 const bool copy_forward = (dst_pos < src_pos) || (dst_pos - src_pos >= count); in Memmove() 192 int32_t src_pos, in Memcpy() argument 198 DCHECK_GE(src_pos, 0); in Memcpy() 203 DCHECK_LT(src_pos, src->GetLength()); in Memcpy() [all …]
|
D | object_array.h | 82 int32_t src_pos, 89 int32_t src_pos, 97 int32_t src_pos,
|
D | array.h | 192 void Memmove(int32_t dst_pos, ObjPtr<PrimitiveArray<T>> src, int32_t src_pos, int32_t count) 200 void Memcpy(int32_t dst_pos, ObjPtr<PrimitiveArray<T>> src, int32_t src_pos, int32_t count) 260 int32_t src_pos,
|
/art/runtime/interpreter/ |
D | unstarted_runtime.cc | 776 int32_t src_pos, in PrimitiveArrayCopy() argument 792 const bool copy_forward = (dst_pos < src_pos) || (dst_pos - src_pos >= length); in PrimitiveArrayCopy() 795 dst->Set(dst_pos + i, src->Get(src_pos + i)); in PrimitiveArrayCopy() 799 dst->Set(dst_pos + length - i, src->Get(src_pos + length - i)); in PrimitiveArrayCopy() 807 jint src_pos = shadow_frame->GetVReg(arg_offset + 1); in UnstartedSystemArraycopy() local 832 if (UNLIKELY(src_pos < 0) || UNLIKELY(dst_pos < 0) || UNLIKELY(length < 0) || in UnstartedSystemArraycopy() 833 UNLIKELY(src_pos > src_array->GetLength() - length) || in UnstartedSystemArraycopy() 837 src_array->GetLength(), src_pos, dst_array->GetLength(), dst_pos, in UnstartedSystemArraycopy() 864 const bool copy_forward = (dst_pos < src_pos) || (dst_pos - src_pos >= length); in UnstartedSystemArraycopy() 867 dst->Set(dst_pos + i, src->Get(src_pos + i)); in UnstartedSystemArraycopy() [all …]
|
D | unstarted_runtime_test.cc | 143 int32_t src_pos, in RunArrayCopy() argument 150 tmp->SetVReg(1, src_pos); in RunArrayCopy() 168 int32_t src_pos, in RunArrayCopy() argument 187 src_pos, in RunArrayCopy()
|
/art/compiler/optimizing/ |
D | intrinsics_x86_64.cc | 629 HIntConstant* src_pos = invoke->InputAt(1)->AsIntConstant(); in VisitSystemArrayCopyChar() local 633 if ((src_pos != nullptr && src_pos->GetValue() < 0) || in VisitSystemArrayCopyChar() 733 Location src_pos = locations->InAt(1); in VisitSystemArrayCopyChar() local 769 CheckPosition(assembler, src_pos, src, length, slow_path, src_base); in VisitSystemArrayCopyChar() 788 if (src_pos.IsConstant()) { in VisitSystemArrayCopyChar() 789 int32_t src_pos_const = src_pos.GetConstant()->AsIntConstant()->GetValue(); in VisitSystemArrayCopyChar() 792 __ leal(src_base, Address(src, src_pos.AsRegister<CpuRegister>(), in VisitSystemArrayCopyChar() 826 const Location& src_pos, in GenSystemArrayCopyAddresses() argument 839 if (src_pos.IsConstant()) { in GenSystemArrayCopyAddresses() 840 int32_t constant = src_pos.GetConstant()->AsIntConstant()->GetValue(); in GenSystemArrayCopyAddresses() [all …]
|
D | intrinsics_arm64.cc | 2049 HIntConstant* src_pos = invoke->InputAt(1)->AsIntConstant(); in VisitSystemArrayCopyChar() local 2053 if ((src_pos != nullptr && src_pos->GetValue() < 0) || in VisitSystemArrayCopyChar() 2135 const Location& src_pos, in GenSystemArrayCopyAddresses() argument 2149 if (src_pos.IsConstant()) { in GenSystemArrayCopyAddresses() 2150 int32_t constant = src_pos.GetConstant()->AsIntConstant()->GetValue(); in GenSystemArrayCopyAddresses() 2154 __ Add(src_base, src_base, Operand(XRegisterFrom(src_pos), LSL, element_size_shift)); in GenSystemArrayCopyAddresses() 2177 Location src_pos = locations->InAt(1); in VisitSystemArrayCopyChar() local 2214 src_pos, in VisitSystemArrayCopyChar() 2236 src_pos, in VisitSystemArrayCopyChar() 2275 HIntConstant* src_pos = invoke->InputAt(1)->AsIntConstant(); in VisitSystemArrayCopy() local [all …]
|
D | intrinsics_x86.cc | 99 Location src_pos = locations->InAt(1); in EmitNativeCode() local 124 if (src_pos.IsConstant()) { in EmitNativeCode() 125 int32_t constant = src_pos.GetConstant()->AsIntConstant()->GetValue(); in EmitNativeCode() 129 __ leal(temp2, Address(src_pos.AsRegister<Register>(), temp1, ScaleFactor::TIMES_1, 0)); in EmitNativeCode() 809 HIntConstant* src_pos = invoke->InputAt(1)->AsIntConstant(); in VisitSystemArrayCopyChar() local 814 ((src_pos != nullptr) ? 1 : 0) in VisitSystemArrayCopyChar() 825 if ((src_pos != nullptr && src_pos->GetValue() < 0) || in VisitSystemArrayCopyChar() 2582 Location src_pos = locations->InAt(1); in VisitSystemArrayCopy() local 2601 if (src_pos.IsConstant()) { in VisitSystemArrayCopy() 2602 int32_t src_pos_constant = src_pos.GetConstant()->AsIntConstant()->GetValue(); in VisitSystemArrayCopy() [all …]
|
D | intrinsics_mips64.cc | 1785 HIntConstant* src_pos = invoke->InputAt(1)->AsIntConstant(); in VisitSystemArrayCopyChar() local 1791 if ((src_pos != nullptr && src_pos->GetValue() < 0) || in VisitSystemArrayCopyChar() 1893 Location src_pos = locations->InAt(1); in VisitSystemArrayCopyChar() local 1929 CheckPosition(assembler, src_pos, src, Location::RegisterLocation(count), slow_path); in VisitSystemArrayCopyChar() 1947 if (src_pos.IsConstant()) { in VisitSystemArrayCopyChar() 1948 int32_t src_pos_const = src_pos.GetConstant()->AsIntConstant()->GetValue(); in VisitSystemArrayCopyChar() 1953 __ Dlsa(src_base, src_pos.AsRegister<GpuRegister>(), src_base, char_shift); in VisitSystemArrayCopyChar()
|
D | intrinsics_arm_vixl.cc | 1824 HIntConstant* src_pos = invoke->InputAt(1)->AsIntConstant(); in VisitSystemArrayCopy() local 1828 if (src_pos != nullptr && !assembler_->ShifterOperandCanAlwaysHold(src_pos->GetValue())) { in VisitSystemArrayCopy() 1923 Location src_pos = locations->InAt(1); in VisitSystemArrayCopy() local 1943 if (src_pos.IsConstant()) { in VisitSystemArrayCopy() 1944 int32_t src_pos_constant = Int32ConstantFrom(src_pos); in VisitSystemArrayCopy() 1973 __ Cmp(RegisterFrom(src_pos), dest_pos_constant); in VisitSystemArrayCopy() 1975 __ Cmp(RegisterFrom(src_pos), RegisterFrom(dest_pos)); in VisitSystemArrayCopy() 2003 src_pos, in VisitSystemArrayCopy() 2231 GenSystemArrayCopyBaseAddress(GetAssembler(), type, src, src_pos, temp1); in VisitSystemArrayCopy() 2273 GenSystemArrayCopyBaseAddress(GetAssembler(), type, src, src_pos, temp1); in VisitSystemArrayCopy()
|
D | code_generator.cc | 1599 HIntConstant* src_pos = invoke->InputAt(1)->AsIntConstant(); in CreateSystemArrayCopyLocationSummary() local 1603 if ((src_pos != nullptr && src_pos->GetValue() < 0) || in CreateSystemArrayCopyLocationSummary() 1622 if (src_pos != nullptr && dest_pos != nullptr && src_pos->GetValue() < dest_pos->GetValue()) { in CreateSystemArrayCopyLocationSummary()
|
D | intrinsics_mips.cc | 2405 HIntConstant* src_pos = invoke->InputAt(1)->AsIntConstant(); in VisitSystemArrayCopyChar() local 2411 if ((src_pos != nullptr && src_pos->GetValue() < 0) || in VisitSystemArrayCopyChar() 2513 Location src_pos = locations->InAt(1); in VisitSystemArrayCopyChar() local 2548 CheckPosition(assembler, src_pos, src, Location::RegisterLocation(count), slow_path); in VisitSystemArrayCopyChar() 2566 if (src_pos.IsConstant()) { in VisitSystemArrayCopyChar() 2567 int32_t src_pos_const = src_pos.GetConstant()->AsIntConstant()->GetValue(); in VisitSystemArrayCopyChar() 2572 __ ShiftAndAdd(src_base, src_pos.AsRegister<Register>(), src_base, char_shift); in VisitSystemArrayCopyChar()
|
/art/test/MyClassNatives/ |
D | MyClassNatives.java | 59 static native void arraycopy(Object src, int src_pos, Object dst, int dst_pos, int length); in arraycopy() argument 193 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 | 1263 void my_arraycopy(JNIEnv* env, jclass klass, jobject src, jint src_pos, jobject dst, jint dst_pos, … in JNI_TEST() 1267 EXPECT_EQ(1234, src_pos); in JNI_TEST()
|