Index: src/utils.h |
diff --git a/src/utils.h b/src/utils.h |
index e85b88a12671e491118591be28c29b4f69c7a8c3..314ea9be9ecac1cadaa312dbe6094066319ec7a4 100644 |
--- a/src/utils.h |
+++ b/src/utils.h |
@@ -437,7 +437,7 @@ void init_memcopy_functions(Isolate* isolate); |
const int kMinComplexMemCopy = 64; |
// Copy memory area. No restrictions. |
-void MemMove(void* dest, const void* src, size_t size); |
+V8_EXPORT_PRIVATE void MemMove(void* dest, const void* src, size_t size); |
typedef void (*MemMoveFunction)(void* dest, const void* src, size_t size); |
// Keep the distinction of "move" vs. "copy" for the benefit of other |
@@ -448,7 +448,7 @@ V8_INLINE void MemCopy(void* dest, const void* src, size_t size) { |
#elif defined(V8_HOST_ARCH_ARM) |
typedef void (*MemCopyUint8Function)(uint8_t* dest, const uint8_t* src, |
size_t size); |
-extern MemCopyUint8Function memcopy_uint8_function; |
+V8_EXPORT_PRIVATE extern MemCopyUint8Function memcopy_uint8_function; |
V8_INLINE void MemCopyUint8Wrapper(uint8_t* dest, const uint8_t* src, |
size_t chars) { |
memcpy(dest, src, chars); |
@@ -459,7 +459,8 @@ V8_INLINE void MemCopy(void* dest, const void* src, size_t size) { |
(*memcopy_uint8_function)(reinterpret_cast<uint8_t*>(dest), |
reinterpret_cast<const uint8_t*>(src), size); |
} |
-V8_INLINE void MemMove(void* dest, const void* src, size_t size) { |
+V8_EXPORT_PRIVATE V8_INLINE void MemMove(void* dest, const void* src, |
+ size_t size) { |
memmove(dest, src, size); |
} |
@@ -477,7 +478,7 @@ V8_INLINE void MemCopyUint16Uint8(uint16_t* dest, const uint8_t* src, |
#elif defined(V8_HOST_ARCH_MIPS) |
typedef void (*MemCopyUint8Function)(uint8_t* dest, const uint8_t* src, |
size_t size); |
-extern MemCopyUint8Function memcopy_uint8_function; |
+V8_EXPORT_PRIVATE extern MemCopyUint8Function memcopy_uint8_function; |
V8_INLINE void MemCopyUint8Wrapper(uint8_t* dest, const uint8_t* src, |
size_t chars) { |
memcpy(dest, src, chars); |
@@ -488,7 +489,8 @@ V8_INLINE void MemCopy(void* dest, const void* src, size_t size) { |
(*memcopy_uint8_function)(reinterpret_cast<uint8_t*>(dest), |
reinterpret_cast<const uint8_t*>(src), size); |
} |
-V8_INLINE void MemMove(void* dest, const void* src, size_t size) { |
+V8_EXPORT_PRIVATE V8_INLINE void MemMove(void* dest, const void* src, |
+ size_t size) { |
memmove(dest, src, size); |
} |
#else |
@@ -496,7 +498,8 @@ V8_INLINE void MemMove(void* dest, const void* src, size_t size) { |
V8_INLINE void MemCopy(void* dest, const void* src, size_t size) { |
memcpy(dest, src, size); |
} |
-V8_INLINE void MemMove(void* dest, const void* src, size_t size) { |
+V8_EXPORT_PRIVATE V8_INLINE void MemMove(void* dest, const void* src, |
+ size_t size) { |
memmove(dest, src, size); |
} |
const int kMinComplexMemCopy = 16 * kPointerSize; |