Searched defs:src (Results 1 - 25 of 39) sorted by relevance

12

/art/runtime/base/unix_file/
H A Drandom_access_file_utils.cc23 bool CopyFile(const RandomAccessFile& src, RandomAccessFile* dst) { argument
24 // We don't call src->GetLength because some files (those in /proc, say)
29 while ((n = src.Read(&buf[0], buf.size(), offset)) > 0) {
/art/compiler/
H A Dbuffered_output_stream.cc37 const uint8_t* src = reinterpret_cast<const uint8_t*>(buffer); local
38 memcpy(&buffer_[used_], src, byte_count);
/art/runtime/
H A Dreflection-inl.h33 const JValue& src, JValue* dst) {
36 dst->SetJ(src.GetJ());
47 dst->SetS(src.GetI());
54 dst->SetI(src.GetI());
61 dst->SetJ(src.GetI());
68 dst->SetF(src.GetI());
71 dst->SetF(src.GetJ());
78 dst->SetD(src.GetI());
81 dst->SetD(src.GetJ());
84 dst->SetD(src
31 ConvertPrimitiveValue(bool unbox_for_result, Primitive::Type srcType, Primitive::Type dstType, const JValue& src, JValue* dst) argument
[all...]
H A Ddex_file_verifier_test.cc58 static inline uint8_t* DecodeBase64(const char* src, size_t* dst_size) { argument
62 for (size_t i = 0; src[i] != '\0'; ++i) {
63 uint8_t c = kBase64Map[src[i] & 0xFF];
H A Ddex_file_test.cc64 static inline uint8_t* DecodeBase64(const char* src, size_t* dst_size) { argument
68 for (size_t i = 0; src[i] != '\0'; ++i) {
69 uint8_t c = kBase64Map[src[i] & 0xFF];
H A Dart_method.h54 ArtMethod(const ArtMethod& src, size_t image_pointer_size) { argument
55 CopyFrom(&src, image_pointer_size);
535 void CopyFrom(const ArtMethod* src, size_t image_pointer_size)
H A Doat_file_assistant_test.cc121 void Copy(std::string src, std::string dst) { argument
122 std::ifstream src_stream(src, std::ios::binary);
H A Dart_method-inl.h495 inline void ArtMethod::CopyFrom(const ArtMethod* src, size_t image_pointer_size) { argument
496 memcpy(reinterpret_cast<void*>(this), reinterpret_cast<const void*>(src),
498 declaring_class_ = GcRoot<mirror::Class>(const_cast<ArtMethod*>(src)->GetDeclaringClass());
500 const_cast<ArtMethod*>(src)->GetDexCacheResolvedMethods());
502 const_cast<ArtMethod*>(src)->GetDexCacheResolvedTypes());
H A Dtrace.cc862 void Trace::WriteToBuf(const uint8_t* src, size_t src_size) { argument
873 if (!trace_file_->WriteFully(src, src_size)) {
885 memcpy(buf_.get() + old_offset, src, src_size);
/art/compiler/dex/quick/
H A Dmir_to_lir-inl.h101 inline LIR* Mir2Lir::NewLIR2NoDest(int opcode, int src, int info) { argument
106 LIR* insn = RawLIR(current_dalvik_offset_, opcode, src, info);
H A Dlocal_optimizations.cc71 void Mir2Lir::ConvertMemOpIntoMove(LIR* orig_lir, RegStorage dest, RegStorage src) { argument
74 move_lir = OpRegCopyNoInsert(dest, src);
79 * will need to be re-checked (eg the new dest clobbers the src used in
/art/runtime/base/
H A Dbit_vector.cc51 BitVector::BitVector(const BitVector& src, argument
56 src.storage_size_,
57 static_cast<uint32_t*>(allocator->Alloc(src.storage_size_ * kWordBytes))) {
59 Copy(&src);
66 bool BitVector::SameBitsSet(const BitVector *src) const {
68 int src_highest = src->GetHighestBitSet();
89 return (memcmp(storage_, src->GetRawStorage(), our_highest_index * kWordBytes) == 0);
118 void BitVector::Intersect(const BitVector* src) { argument
119 uint32_t src_storage_size = src->storage_size_;
126 storage_[idx] &= src
138 Union(const BitVector* src) argument
217 Subtract(const BitVector *src) argument
290 Copy(const BitVector *src) argument
[all...]
/art/runtime/mirror/
H A Darray-inl.h278 inline void PrimitiveArray<T>::Memmove(int32_t dst_pos, PrimitiveArray<T>* src, int32_t src_pos, argument
286 DCHECK(src != nullptr);
289 DCHECK_LT(src_pos, src->GetLength());
290 DCHECK_LE(src_pos, src->GetLength() - count);
294 if (LIKELY(src != this)) {
296 Memcpy(dst_pos, src, src_pos, count);
300 const void* src_raw = src->GetRawData(sizeof(T), src_pos);
338 inline void PrimitiveArray<T>::Memcpy(int32_t dst_pos, PrimitiveArray<T>* src, int32_t src_pos, argument
346 DCHECK(src != nullptr);
349 DCHECK_LT(src_pos, src
[all...]
H A Dobject.cc70 Object* Object::CopyObject(Thread* self, mirror::Object* dest, mirror::Object* src, argument
74 uint8_t* src_bytes = reinterpret_cast<uint8_t*>(src);
83 src->VisitReferences<true>(visitor, visitor);
87 Class* c = src->GetClass();
H A Dobject_array-inl.h123 inline void ObjectArray<T>::AssignableMemmove(int32_t dst_pos, ObjectArray<T>* src, argument
128 src->GetWithoutChecks(src_pos + i);
134 IntArray* srcAsIntArray = reinterpret_cast<IntArray*>(src);
137 const bool copy_forward = (src != this) || (dst_pos < src_pos) || (dst_pos - src_pos >= count);
142 Object* obj = src->GetWithoutChecks(src_pos + i);
149 Object* obj = src->GetWithoutChecks(src_pos + i);
166 inline void ObjectArray<T>::AssignableMemcpy(int32_t dst_pos, ObjectArray<T>* src, argument
171 src->GetWithoutChecks(src_pos + i);
177 IntArray* srcAsIntArray = reinterpret_cast<IntArray*>(src);
182 T* obj = src
198 AssignableCheckingMemcpy(int32_t dst_pos, ObjectArray<T>* src, int32_t src_pos, int32_t count, bool throw_exception) argument
[all...]
H A Dstring-inl.h69 const uint8_t* const src = reinterpret_cast<uint8_t*>(src_array_->GetData()) + offset_; local
71 value[i] = high_byte_ + (src[i] & 0xFF);
95 const uint16_t* const src = src_array_->GetData() + offset_; local
96 memcpy(string->GetValue(), src, count_ * sizeof(uint16_t));
118 const uint16_t* const src = src_string_->GetValue() + offset_; local
119 memcpy(string->GetValue(), src, count_ * sizeof(uint16_t));
/art/runtime/native/
H A Dlibcore_util_CharsetUtils.cc121 const jbyte* src = &bytes[offset]; local
125 jchar ch = static_cast<jchar>(*src++ & 0xff);
141 const jbyte* src = &bytes[offset]; local
144 *dst++ = static_cast<jchar>(*src++ & 0xff);
168 const jchar* src = &(string->GetValue()[offset]); local
171 jchar ch = *src++;
/art/runtime/verifier/
H A Dregister_line.h112 void CopyFromLine(const RegisterLine* src) { argument
113 DCHECK_EQ(num_regs_, src->num_regs_);
114 memcpy(&line_, &src->line_, num_regs_ * sizeof(uint16_t));
115 monitors_ = src->monitors_;
116 reg_to_lock_depths_ = src->reg_to_lock_depths_;
117 this_initialized_ = src->this_initialized_;
157 void CopyThisInitialized(const RegisterLine& src) { argument
158 this_initialized_ = src.this_initialized_;
306 void CopyRegToLockDepth(size_t dst, size_t src) { argument
307 auto it = reg_to_lock_depths_.find(src);
[all...]
H A Dreg_type.cc824 bool RegType::CanAssignArray(const RegType& src, RegTypeCache& reg_types, argument
826 if (!IsArrayTypes() || !src.IsArrayTypes()) {
832 const RegType& cmp2 = reg_types.GetComponentType(src, class_loader.Get());
/art/runtime/gc/collector/
H A Dsemi_space.cc441 static inline size_t CopyAvoidingDirtyingPages(void* dest, const void* src, size_t size) { argument
447 memcpy(dest, src, size);
458 const uint8_t* byte_src = reinterpret_cast<const uint8_t*>(src);
462 memcpy(dest, src, page_remain);
/art/compiler/dex/quick/x86/
H A Dutility_x86.cc311 int src = r_src.IsPair() ? r_src.GetLowReg() : r_src.GetReg(); local
359 return NewLIR3(opcode, r_base.GetReg(), offset, src);
918 // x86 only allows registers EAX-EDX to be used as byte registers, if the input src is not
/art/compiler/utils/arm64/
H A Dassembler_arm64.cc126 Arm64ManagedRegister src = m_src.AsArm64(); local
127 if (src.IsNoRegister()) {
129 } else if (src.IsWRegister()) {
131 StoreWToOffset(kStoreWord, src.AsWRegister(), SP, offs.Int32Value());
132 } else if (src.IsXRegister()) {
134 StoreToOffset(src.AsXRegister(), SP, offs.Int32Value());
135 } else if (src.IsSRegister()) {
136 StoreSToOffset(src.AsSRegister(), SP, offs.Int32Value());
138 CHECK(src.IsDRegister()) << src;
144 Arm64ManagedRegister src = m_src.AsArm64(); local
151 Arm64ManagedRegister src = m_src.AsArm64(); local
282 Load(ManagedRegister m_dst, FrameOffset src, size_t size) argument
286 LoadFromThread64(ManagedRegister m_dst, ThreadOffset<8> src, size_t size) argument
328 Arm64ManagedRegister src = m_src.AsArm64(); local
373 CopyRef(FrameOffset dest, FrameOffset src, ManagedRegister m_scratch) argument
383 Copy(FrameOffset dest, FrameOffset src, ManagedRegister m_scratch, size_t size) argument
418 Copy(ManagedRegister m_dest_base, Offset dest_offs, FrameOffset src, ManagedRegister m_scratch, size_t size) argument
446 Arm64ManagedRegister src = m_src.AsArm64(); local
[all...]
/art/patchoat/
H A Dpatchoat.cc423 auto* src = reinterpret_cast<ArtField*>(heap_->Begin() + section.Offset() + pos); local
424 auto* dest = RelocatedCopyOf(src);
425 dest->SetDeclaringClass(RelocatedAddressOfPointer(src->GetDeclaringClass()));
434 auto* src = reinterpret_cast<ArtMethod*>(heap_->Begin() + section.Offset() + pos); local
435 auto* dest = RelocatedCopyOf(src);
436 FixupMethod(src, dest);
637 auto* src = down_cast<mirror::AbstractMethod*>(object); local
638 dest->SetArtMethod(RelocatedAddressOfPointer(src->GetArtMethod()));
/art/runtime/interpreter/
H A Dunstarted_runtime.cc304 mirror::PrimitiveArray<T>* src = down_cast<mirror::PrimitiveArray<T>*>(src_array); local
309 dst->Set(dst_pos + i, src->Get(src_pos + i));
313 dst->Set(dst_pos + length - i, src->Get(src_pos + length - i));
329 AbortTransactionOrFail(self, "src is null in arraycopy.");
342 "src.length=%d srcPos=%d dst.length=%d dstPos=%d length=%d",
373 mirror::ObjectArray<mirror::Object>* src = src_array->AsObjectArray<mirror::Object>(); local
375 if (src == dst) {
380 dst->Set(dst_pos + i, src->Get(src_pos + i));
384 dst->Set(dst_pos + length - i, src->Get(src_pos + length - i));
390 dst->Set(dst_pos + i, src
524 mirror::Object* src = shadow_frame->GetVRegReference(arg_offset); local
[all...]
/art/compiler/dex/
H A Dlocal_value_numbering.cc315 const ScopedArenaSafeMap<K, AliasingValues>& src) {
318 for (const auto& entry : src) {
526 void LocalValueNumbering::CopyLiveSregValues(SregValueMap* dest, const SregValueMap& src) { argument
530 for (const auto& entry : src) {
314 CopyAliasingValuesMap(ScopedArenaSafeMap<K, AliasingValues>* dest, const ScopedArenaSafeMap<K, AliasingValues>& src) argument

Completed in 1226 milliseconds

12