/art/runtime/mirror/ |
H A D | object_array-inl.h | 133 int32_t src_pos, 138 src->GetWithoutChecks(src_pos + i); 147 const bool copy_forward = (src != this) || (dst_pos < src_pos) || (dst_pos - src_pos >= count); 161 src_pos + i); 169 T* obj = src->GetWithoutChecks(src_pos + i); 186 src_pos + i); 194 T* obj = src->GetWithoutChecks(src_pos + i); 211 int32_t src_pos, 216 src->GetWithoutChecks(src_pos 131 AssignableMemmove(int32_t dst_pos, ObjPtr<ObjectArray<T>> src, int32_t src_pos, int32_t count) argument 209 AssignableMemcpy(int32_t dst_pos, ObjPtr<ObjectArray<T>> src, int32_t src_pos, int32_t count) argument 259 AssignableCheckingMemcpy(int32_t dst_pos, ObjPtr<ObjectArray<T>> src, int32_t src_pos, int32_t count, bool throw_exception) argument [all...] |
H A D | array-inl.h | 300 int32_t src_pos, 306 DCHECK_GE(src_pos, 0); 311 DCHECK_LT(src_pos, src->GetLength()); 312 DCHECK_LE(src_pos, src->GetLength() - count); 318 Memcpy(dst_pos, src, src_pos, count); 322 const void* src_raw = src->GetRawData(sizeof(T), src_pos); 328 const bool copy_forward = (dst_pos < src_pos) || (dst_pos - src_pos >= count); 362 int32_t src_pos, 368 DCHECK_GE(src_pos, 298 Memmove(int32_t dst_pos, ObjPtr<PrimitiveArray<T>> src, int32_t src_pos, int32_t count) argument 360 Memcpy(int32_t dst_pos, ObjPtr<PrimitiveArray<T>> src, int32_t src_pos, int32_t count) argument 443 Memcpy(int32_t dst_pos, ObjPtr<PointerArray> src, int32_t src_pos, int32_t count, PointerSize ptr_size) argument [all...] |
/art/compiler/optimizing/ |
H A D | code_generator.cc | 1353 HIntConstant* src_pos = invoke->InputAt(1)->AsIntConstant(); local 1357 if ((src_pos != nullptr && src_pos->GetValue() < 0) || 1376 if (src_pos != nullptr && dest_pos != nullptr && src_pos->GetValue() < dest_pos->GetValue()) { 1391 // arraycopy(Object src, int src_pos, Object dest, int dest_pos, int length).
|
H A D | intrinsics_mips64.cc | 2100 HIntConstant* src_pos = invoke->InputAt(1)->AsIntConstant(); local 2106 if ((src_pos != nullptr && src_pos->GetValue() < 0) || 2208 Location src_pos = locations->InAt(1); local 2243 CheckPosition(assembler, src_pos, src, Location::RegisterLocation(count), slow_path); 2261 if (src_pos.IsConstant()) { 2262 int32_t src_pos_const = src_pos.GetConstant()->AsIntConstant()->GetValue(); 2267 __ Dlsa(src_base, src_pos.AsRegister<GpuRegister>(), src_base, char_shift);
|
H A D | intrinsics_arm.cc | 1632 HIntConstant* src_pos = invoke->InputAt(1)->AsIntConstant(); local 1636 if (src_pos != nullptr && !assembler_->ShifterOperandCanAlwaysHold(src_pos->GetValue())) { 1731 Location src_pos = locations->InAt(1); local 1750 if (src_pos.IsConstant()) { 1751 int32_t src_pos_constant = src_pos.GetConstant()->AsIntConstant()->GetValue(); 1780 __ cmp(src_pos.AsRegister<Register>(), ShifterOperand(dest_pos_constant)); 1782 __ cmp(src_pos.AsRegister<Register>(), ShifterOperand(dest_pos.AsRegister<Register>())); 1810 src_pos, 2036 // `src` (and `src_pos`) her 2038 GenSystemArrayCopyBaseAddress(GetAssembler(), type, src, src_pos, temp1); local 2076 GenSystemArrayCopyBaseAddress(GetAssembler(), type, src, src_pos, temp1); local [all...] |
H A D | intrinsics_arm64.cc | 2119 HIntConstant* src_pos = invoke->InputAt(1)->AsIntConstant(); local 2123 if ((src_pos != nullptr && src_pos->GetValue() < 0) || 2144 // arraycopy(char[] src, int src_pos, char[] dst, int dst_pos, int length). 2206 const Location& src_pos, 2220 if (src_pos.IsConstant()) { 2221 int32_t constant = src_pos.GetConstant()->AsIntConstant()->GetValue(); 2225 __ Add(src_base, src_base, Operand(XRegisterFrom(src_pos), LSL, element_size_shift)); 2248 Location src_pos = locations->InAt(1); local 2284 src_pos, 2203 GenSystemArrayCopyAddresses(MacroAssembler* masm, Primitive::Type type, const Register& src, const Location& src_pos, const Register& dst, const Location& dst_pos, const Location& copy_length, const Register& src_base, const Register& dst_base, const Register& src_end) argument 2345 HIntConstant* src_pos = invoke->InputAt(1)->AsIntConstant(); local 2422 Location src_pos = locations->InAt(1); local [all...] |
H A D | intrinsics_arm_vixl.cc | 2010 HIntConstant* src_pos = invoke->InputAt(1)->AsIntConstant(); local 2014 if (src_pos != nullptr && !assembler_->ShifterOperandCanAlwaysHold(src_pos->GetValue())) { 2109 Location src_pos = locations->InAt(1); local 2128 if (src_pos.IsConstant()) { 2129 int32_t src_pos_constant = Int32ConstantFrom(src_pos); 2158 __ Cmp(RegisterFrom(src_pos), dest_pos_constant); 2160 __ Cmp(RegisterFrom(src_pos), RegisterFrom(dest_pos)); 2188 src_pos, 2414 // `src` (and `src_pos`) her 2416 GenSystemArrayCopyBaseAddress(GetAssembler(), type, src, src_pos, temp1); local 2458 GenSystemArrayCopyBaseAddress(GetAssembler(), type, src, src_pos, temp1); local [all...] |
H A D | intrinsics_mips.cc | 2947 HIntConstant* src_pos = invoke->InputAt(1)->AsIntConstant(); local 2953 if ((src_pos != nullptr && src_pos->GetValue() < 0) || 3055 Location src_pos = locations->InAt(1); local 3090 CheckPosition(assembler, src_pos, src, Location::RegisterLocation(count), slow_path); 3108 if (src_pos.IsConstant()) { 3109 int32_t src_pos_const = src_pos.GetConstant()->AsIntConstant()->GetValue(); 3114 __ ShiftAndAdd(src_base, src_pos.AsRegister<Register>(), src_base, char_shift);
|
H A D | intrinsics_x86.cc | 103 Location src_pos = locations->InAt(1); variable 127 // value = src_array[i + src_pos] 128 if (src_pos.IsConstant()) { 129 int32_t constant = src_pos.GetConstant()->AsIntConstant()->GetValue(); 133 __ leal(temp2, Address(src_pos.AsRegister<Register>(), temp1, ScaleFactor::TIMES_1, 0)); 1145 HIntConstant* src_pos = invoke->InputAt(1)->AsIntConstant(); local 1150 ((src_pos != nullptr) ? 1 : 0) 1161 if ((src_pos != nullptr && src_pos->GetValue() < 0) || 2975 Location src_pos local 3236 GenSystemArrayCopyBaseAddress(GetAssembler(), type, src, src_pos, temp1); local [all...] |
H A D | intrinsics_x86_64.cc | 933 HIntConstant* src_pos = invoke->InputAt(1)->AsIntConstant(); local 937 if ((src_pos != nullptr && src_pos->GetValue() < 0) || 956 // arraycopy(Object src, int src_pos, Object dest, int dest_pos, int length). 1038 Location src_pos = locations->InAt(1); local 1074 CheckPosition(assembler, src_pos, src, length, slow_path, src_base); 1093 if (src_pos.IsConstant()) { 1094 int32_t src_pos_const = src_pos.GetConstant()->AsIntConstant()->GetValue(); 1097 __ leal(src_base, Address(src, src_pos.AsRegister<CpuRegister>(), 1131 const Location& src_pos, 1128 GenSystemArrayCopyAddresses(X86_64Assembler* assembler, Primitive::Type type, const CpuRegister& src, const Location& src_pos, const CpuRegister& dst, const Location& dst_pos, const Location& copy_length, const CpuRegister& src_base, const CpuRegister& dst_base, const CpuRegister& src_end) argument 1181 Location src_pos = locations->InAt(1); local 1420 GetAssembler(), type, src, src_pos, dest, dest_pos, length, temp1, temp2, temp3); local [all...] |
/art/runtime/interpreter/ |
H A D | unstarted_runtime.cc | 732 mirror::Array* src_array, int32_t src_pos, 747 const bool copy_forward = (dst_pos < src_pos) || (dst_pos - src_pos >= length); 750 dst->Set(dst_pos + i, src->Get(src_pos + i)); 754 dst->Set(dst_pos + length - i, src->Get(src_pos + length - i)); 762 jint src_pos = shadow_frame->GetVReg(arg_offset + 1); local 787 if (UNLIKELY(src_pos < 0) || UNLIKELY(dst_pos < 0) || UNLIKELY(length < 0) || 788 UNLIKELY(src_pos > src_array->GetLength() - length) || 792 src_array->GetLength(), src_pos, dst_array->GetLength(), dst_pos, 819 const bool copy_forward = (dst_pos < src_pos) || (dst_po [all...] |
/art/test/MyClassNatives/ |
H A D | MyClassNatives.java | 59 static native void arraycopy(Object src, int src_pos, Object dst, int dst_pos, int length); argument 193 static native void arraycopy_Fast(Object src, int src_pos, Object dst, int dst_pos, int length); argument
|
/art/compiler/jni/ |
H A D | jni_compiler_test.cc | 1261 void my_arraycopy(JNIEnv* env, jclass klass, jobject src, jint src_pos, jobject dst, jint dst_pos, jint length) { argument 1265 EXPECT_EQ(1234, src_pos);
|