Index: src/v8utils.h |
diff --git a/src/v8utils.h b/src/v8utils.h |
index b5c8f084e02b95785e177846b70e8c4c9fe97612..0dbd60e21448d21712501007b7103aebb7b5d083 100644 |
--- a/src/v8utils.h |
+++ b/src/v8utils.h |
@@ -185,6 +185,13 @@ inline void MemsetPointer(T** dest, U* value, int counter) { |
#elif defined(V8_HOST_ARCH_X64) |
#define STOS "stosq" |
#endif |
+#if defined(__native_client__) |
+ // This STOS sequence does not validate for x86_64 Native Client. |
+ // Here we #undef STOS to force use of the slower C version. |
+ // TODO(bradchen): Profile V8 and implement a faster REP STOS |
+ // here if the profile indicates it matters. |
+#undef STOS |
+#endif |
#if defined(__GNUC__) && defined(STOS) |
asm volatile( |