Lines Matching refs:src

14 #include "src/base/logging.h"
15 #include "src/base/macros.h"
16 #include "src/base/platform/wrappers.h"
34 V8_EXPORT_PRIVATE void MemMove(void* dest, const void* src, size_t size);
35 using MemMoveFunction = void (*)(void* dest, const void* src, size_t size);
39 V8_INLINE void MemCopy(void* dest, const void* src, size_t size) {
40 MemMove(dest, src, size);
43 using MemCopyUint8Function = void (*)(uint8_t* dest, const uint8_t* src,
46 V8_INLINE void MemCopyUint8Wrapper(uint8_t* dest, const uint8_t* src,
48 memcpy(dest, src, chars);
52 V8_INLINE void MemCopy(void* dest, const void* src, size_t size) {
54 reinterpret_cast<const uint8_t*>(src), size);
56 V8_EXPORT_PRIVATE V8_INLINE void MemMove(void* dest, const void* src,
58 memmove(dest, src, size);
64 using MemCopyUint8Function = void (*)(uint8_t* dest, const uint8_t* src,
67 V8_INLINE void MemCopyUint8Wrapper(uint8_t* dest, const uint8_t* src,
69 memcpy(dest, src, chars);
73 V8_INLINE void MemCopy(void* dest, const void* src, size_t size) {
75 reinterpret_cast<const uint8_t*>(src), size);
77 V8_EXPORT_PRIVATE V8_INLINE void MemMove(void* dest, const void* src,
79 memmove(dest, src, size);
83 inline void MemCopy(void* dest, const void* src, size_t size) {
90 memcpy(dest, src, N); \
110 memcpy(dest, src, size);
114 V8_EXPORT_PRIVATE inline void MemMove(void* dest, const void* src,
122 memmove(dest, src, N); \
142 memmove(dest, src, size);
149 // Copies words from |src| to |dst|. The data spans must not overlap.
150 // |src| and |dst| must be TWord-size aligned.
156 Address src = reinterpret_cast<Address>(src_ptr);
158 DCHECK(IsAligned(src, kTWordSize));
159 DCHECK(((src <= dst) && ((src + count * kTWordSize) <= dst)) ||
160 ((dst <= src) && ((dst + count * kTWordSize) <= src)));
176 // Copies kSystemPointerSize-sized words from |src| to |dst|. The data spans
177 // must not overlap. |src| and |dst| must be kSystemPointerSize-aligned.
178 inline void CopyWords(Address dst, const Address src, size_t num_words) {
181 reinterpret_cast<const Address*>(src), num_words);
184 // Copies data from |src| to |dst|. The data spans must not overlap.
186 inline void CopyBytes(T* dst, const T* src, size_t num_bytes) {
189 CopyImpl<kMinComplexMemCopy>(dst, src, num_bytes);
268 void CopyChars(DstType* dst, const SrcType* src, size_t count) V8_NONNULL(1, 2);
271 void CopyChars(DstType* dst, const SrcType* src, size_t count) {
279 Address src_start = reinterpret_cast<Address>(src);
287 auto* src_u = reinterpret_cast<const SrcTypeUnsigned*>(src);