Index: src/v8utils.h |
diff --git a/src/v8utils.h b/src/v8utils.h |
index 02e57ebe7273eb9973759382601cc0df876ca1f4..058b153a7e20f37b7f6c9c1505658ace8497de95 100644 |
--- a/src/v8utils.h |
+++ b/src/v8utils.h |
@@ -266,6 +266,9 @@ INLINE(static void CopyCharsUnsigned(sinkchar* dest, |
INLINE(void CopyCharsUnsigned(uint8_t* dest, const uint8_t* src, int chars)); |
INLINE(void CopyCharsUnsigned(uint16_t* dest, const uint8_t* src, int chars)); |
INLINE(void CopyCharsUnsigned(uint16_t* dest, const uint16_t* src, int chars)); |
+#elif defined(V8_HOST_ARCH_MIPS) |
+INLINE(void CopyCharsUnsigned(uint8_t* dest, const uint8_t* src, int chars)); |
+INLINE(void CopyCharsUnsigned(uint16_t* dest, const uint16_t* src, int chars)); |
#endif |
// Copy from ASCII/16bit chars to ASCII/16bit chars. |
@@ -421,6 +424,24 @@ void CopyCharsUnsigned(uint16_t* dest, const uint16_t* src, int chars) { |
break; |
} |
} |
+ |
+ |
+#elif defined(V8_HOST_ARCH_MIPS) |
+void CopyCharsUnsigned(uint8_t* dest, const uint8_t* src, int chars) { |
+ if (chars < OS::kMinComplexMemCopy) { |
+ memcpy(dest, src, chars); |
+ } else { |
+ OS::MemCopy(dest, src, chars); |
+ } |
+} |
+ |
+void CopyCharsUnsigned(uint16_t* dest, const uint16_t* src, int chars) { |
+ if (chars < OS::kMinComplexMemCopy) { |
+ memcpy(dest, src, chars * sizeof(*dest)); |
+ } else { |
+ OS::MemCopy(dest, src, chars * sizeof(*dest)); |
+ } |
+} |
#endif |