$OpenBSD: patch-assembler_wtf_Platform_h,v 1.2 2014/03/26 10:11:01 landry Exp $
Fix mips64
--- assembler/wtf/Platform.h.orig	Tue Oct 29 21:40:26 2013
+++ assembler/wtf/Platform.h	Sat Nov  9 15:34:06 2013
@@ -139,9 +139,14 @@
 
 /* WTF_CPU_MIPS - MIPS 32-bit */
 /* Note: Only O32 ABI is tested, so we enable it for O32 ABI for now.  */
-#if (defined(mips) || defined(__mips__) || defined(MIPS) || defined(_MIPS_)) \
-    && defined(_ABIO32)
+#if (defined(mips) || defined(__mips__) || defined(MIPS) || defined(_MIPS_) || defined (__mips64__))
+#if defined(_ABIO32)
 #define WTF_CPU_MIPS 1
+#endif
+#if defined(__mips64__)
+#define WTF_CPU_MIPS64        1
+#define USE_SYSTEM_MALLOC     1
+#endif
 #if defined(__MIPSEB__)
 #define WTF_CPU_BIG_ENDIAN 1
 #endif
@@ -359,7 +364,7 @@
 
 #endif /* ARM */
 
-#if WTF_CPU_ARM || WTF_CPU_MIPS
+#if WTF_CPU_ARM || WTF_CPU_MIPS || WTF_CPU_MIPS64
 #define WTF_CPU_NEEDS_ALIGNED_ACCESS 1
 #endif
 
@@ -1011,7 +1016,8 @@
     || WTF_CPU_ALPHA \
     || WTF_CPU_SPARC64 \
     || WTF_CPU_S390X \
-    || WTF_CPU_PPC64
+    || WTF_CPU_PPC64 \
+    || WTF_CPU_MIPS64
 #define WTF_USE_JSVALUE64 1
 #else
 #define WTF_USE_JSVALUE32_64 1
