Index: qtwebkit-2.2.1/Source/JavaScriptCore/wtf/Platform.h
===================================================================
--- qtwebkit-2.2.1.orig/Source/JavaScriptCore/wtf/Platform.h	2013-10-07 09:26:04.936334240 +0800
+++ qtwebkit-2.2.1/Source/JavaScriptCore/wtf/Platform.h	2013-10-07 09:27:26.467216003 +0800
@@ -54,7 +54,15 @@
 /* ENABLE() - turn on a specific feature of WebKit */
 #define ENABLE(WTF_FEATURE) (defined ENABLE_##WTF_FEATURE  && ENABLE_##WTF_FEATURE)
 
+/* CPU(MIPS64) - MIPS 64-bit both BIG and LITTLE endian */
+#if (_MIPS_SIM == _ABI64)
+	#define WTF_CPU_MIPS64 1
+#endif
 
+/* CPU(MIPSN32) - MIPS N32 ABI both BIG and LITTLE endian */
+#if (_MIPS_SIM == _ABIN32)
+#define WTF_CPU_MIPSN32 1
+#endif
 
 /* ==== COMPILER() - the compiler being used to build the project ==== */
 
@@ -998,7 +1006,8 @@
     || CPU(ALPHA) \
     || CPU(SPARC64) \
     || CPU(S390X) \
-    || CPU(PPC64)
+    || CPU(PPC64) \
+    || CPU(MIPS64)
 #define WTF_USE_JSVALUE64 1
 #else
 #define WTF_USE_JSVALUE32_64 1
