Index: src/utils.h |
diff --git a/src/utils.h b/src/utils.h |
index 5422985bc538c641ac3b5d25a03f4909d390be2a..86420b4793a0dc9793d441939288db73e3d86a5e 100644 |
--- a/src/utils.h |
+++ b/src/utils.h |
@@ -1318,8 +1318,12 @@ inline void MemsetPointer(T** dest, U* value, int counter) { |
#if V8_HOST_ARCH_IA32 |
#define STOS "stosl" |
#elif V8_HOST_ARCH_X64 |
+#if V8_HOST_ARCH_32_BIT |
+#define STOS "addr32 stosl" |
+#else |
#define STOS "stosq" |
#endif |
+#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. |