Home
last modified time | relevance | path

Searched refs:src_pos (Results 1 – 13 of 13) sorted by relevance

/art/runtime/mirror/
Darray-inl.h134 int32_t src_pos, in Memmove() argument
140 DCHECK_GE(src_pos, 0); in Memmove()
145 DCHECK_LT(src_pos, src->GetLength()); in Memmove()
146 DCHECK_LE(src_pos, src->GetLength() - count); in Memmove()
152 Memcpy(dst_pos, src, src_pos, count); in Memmove()
156 const void* src_raw = src->GetRawData(sizeof(T), src_pos); in Memmove()
162 const bool copy_forward = (dst_pos < src_pos) || (dst_pos - src_pos >= count); in Memmove()
196 int32_t src_pos, in Memcpy() argument
202 DCHECK_GE(src_pos, 0); in Memcpy()
207 DCHECK_LT(src_pos, src->GetLength()); in Memcpy()
[all …]
Dobject_array-inl.h106 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 …]
Dobject_array.h92 int32_t src_pos,
99 int32_t src_pos,
107 int32_t src_pos,
Darray.h206 void Memmove(int32_t dst_pos, ObjPtr<PrimitiveArray<T>> src, int32_t src_pos, int32_t count)
214 void Memcpy(int32_t dst_pos, ObjPtr<PrimitiveArray<T>> src, int32_t src_pos, int32_t count)
277 int32_t src_pos,
/art/runtime/interpreter/
Dunstarted_runtime.cc788 int32_t src_pos, in PrimitiveArrayCopy() argument
804 const bool copy_forward = (dst_pos < src_pos) || (dst_pos - src_pos >= length); in PrimitiveArrayCopy()
807 dst->Set(dst_pos + i, src->Get(src_pos + i)); in PrimitiveArrayCopy()
811 dst->Set(dst_pos + length - i, src->Get(src_pos + length - i)); in PrimitiveArrayCopy()
819 jint src_pos = shadow_frame->GetVReg(arg_offset + 1); in UnstartedSystemArraycopy() local
844 if (UNLIKELY(src_pos < 0) || UNLIKELY(dst_pos < 0) || UNLIKELY(length < 0) || in UnstartedSystemArraycopy()
845 UNLIKELY(src_pos > src_array->GetLength() - length) || in UnstartedSystemArraycopy()
849 src_array->GetLength(), src_pos, dst_array->GetLength(), dst_pos, in UnstartedSystemArraycopy()
881 const bool copy_forward = (dst_pos < src_pos) || (dst_pos - src_pos >= length); in UnstartedSystemArraycopy()
884 dst->Set(dst_pos + i, src->Get(src_pos + i)); in UnstartedSystemArraycopy()
[all …]
Dunstarted_runtime_test.cc138 int32_t src_pos, in RunArrayCopy() argument
145 tmp->SetVReg(1, src_pos); in RunArrayCopy()
163 int32_t src_pos, in RunArrayCopy() argument
182 src_pos, in RunArrayCopy()
/art/compiler/optimizing/
Dintrinsics_x86.cc96 Location src_pos = locations->InAt(1); in EmitNativeCode() local
121 if (src_pos.IsConstant()) { in EmitNativeCode()
122 int32_t constant = src_pos.GetConstant()->AsIntConstant()->GetValue(); in EmitNativeCode()
126 __ leal(temp2, Address(src_pos.AsRegister<Register>(), temp1, ScaleFactor::TIMES_1, 0)); in EmitNativeCode()
777 HIntConstant* src_pos = invoke->InputAt(1)->AsIntConstant(); in CreateSystemArrayCopyLocations() local
782 ((src_pos != nullptr) ? 1 : 0) in CreateSystemArrayCopyLocations()
793 if ((src_pos != nullptr && src_pos->GetValue() < 0) || in CreateSystemArrayCopyLocations()
895 Location src_pos = locations->InAt(1); in SystemArrayCopyPrimitive() local
938 CheckPosition(assembler, src_pos, src, Location::RegisterLocation(count), slow_path, src_base); in SystemArrayCopyPrimitive()
949 if (src_pos.IsConstant()) { in SystemArrayCopyPrimitive()
[all …]
Dintrinsics_x86_64.cc620 HIntConstant* src_pos = invoke->InputAt(1)->AsIntConstant(); in CreateSystemArrayCopyLocations() local
624 if ((src_pos != nullptr && src_pos->GetValue() < 0) || in CreateSystemArrayCopyLocations()
725 Location src_pos = locations->InAt(1); in SystemArrayCopyPrimitive() local
761 CheckPosition(assembler, src_pos, src, length, slow_path, src_base); in SystemArrayCopyPrimitive()
779 if (src_pos.IsConstant()) { in SystemArrayCopyPrimitive()
780 int32_t src_pos_const = src_pos.GetConstant()->AsIntConstant()->GetValue(); in SystemArrayCopyPrimitive()
783 __ leal(src_base, Address(src, src_pos.AsRegister<CpuRegister>(), scale_factor, data_offset)); in SystemArrayCopyPrimitive()
852 const Location& src_pos, in GenSystemArrayCopyAddresses() argument
865 if (src_pos.IsConstant()) { in GenSystemArrayCopyAddresses()
866 int32_t constant = src_pos.GetConstant()->AsIntConstant()->GetValue(); in GenSystemArrayCopyAddresses()
[all …]
Dintrinsics_arm64.cc2596 HIntConstant* src_pos = invoke->InputAt(1)->AsIntConstant(); in VisitSystemArrayCopyChar() local
2600 if ((src_pos != nullptr && src_pos->GetValue() < 0) || in VisitSystemArrayCopyChar()
2682 const Location& src_pos, in GenSystemArrayCopyAddresses() argument
2696 if (src_pos.IsConstant()) { in GenSystemArrayCopyAddresses()
2697 int32_t constant = src_pos.GetConstant()->AsIntConstant()->GetValue(); in GenSystemArrayCopyAddresses()
2701 __ Add(src_base, src_base, Operand(XRegisterFrom(src_pos), LSL, element_size_shift)); in GenSystemArrayCopyAddresses()
2726 Location src_pos = locations->InAt(1); in VisitSystemArrayCopyChar() local
2764 src_pos, in VisitSystemArrayCopyChar()
2786 src_pos, in VisitSystemArrayCopyChar()
2906 HIntConstant* src_pos = invoke->InputAt(1)->AsIntConstant(); in VisitSystemArrayCopy() local
[all …]
Dcode_generator.cc1837 HIntConstant* src_pos = invoke->InputAt(1)->AsIntConstant(); in CreateSystemArrayCopyLocationSummary() local
1841 if ((src_pos != nullptr && src_pos->GetValue() < 0) || in CreateSystemArrayCopyLocationSummary()
1860 if (src_pos != nullptr && dest_pos != nullptr && src_pos->GetValue() < dest_pos->GetValue()) { in CreateSystemArrayCopyLocationSummary()
Dintrinsics_arm_vixl.cc1255 HIntConstant* src_pos = invoke->InputAt(1)->AsIntConstant(); in VisitSystemArrayCopy() local
1259 if (src_pos != nullptr && !assembler_->ShifterOperandCanAlwaysHold(src_pos->GetValue())) { in VisitSystemArrayCopy()
1354 Location src_pos = locations->InAt(1); in VisitSystemArrayCopy() local
1374 if (src_pos.IsConstant()) { in VisitSystemArrayCopy()
1375 int32_t src_pos_constant = Int32ConstantFrom(src_pos); in VisitSystemArrayCopy()
1404 __ Cmp(RegisterFrom(src_pos), dest_pos_constant); in VisitSystemArrayCopy()
1406 __ Cmp(RegisterFrom(src_pos), RegisterFrom(dest_pos)); in VisitSystemArrayCopy()
1434 src_pos, in VisitSystemArrayCopy()
1662 GenSystemArrayCopyBaseAddress(GetAssembler(), type, src, src_pos, temp1); in VisitSystemArrayCopy()
1704 GenSystemArrayCopyBaseAddress(GetAssembler(), type, src, src_pos, temp1); in VisitSystemArrayCopy()
/art/test/MyClassNatives/
DMyClassNatives.java60 static native void arraycopy(Object src, int src_pos, Object dst, int dst_pos, int length); in arraycopy() argument
188 static native void arraycopy_Fast(Object src, int src_pos, Object dst, int dst_pos, int length); in arraycopy_Fast() argument
/art/compiler/jni/
Djni_compiler_test.cc1462 void my_arraycopy(JNIEnv* env, jclass klass, jobject src, jint src_pos, jobject dst, jint dst_pos, … in JNI_TEST()
1466 EXPECT_EQ(1234, src_pos); in JNI_TEST()