]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - wtf/Platform.h
JavaScriptCore-721.26.tar.gz
[apple/javascriptcore.git] / wtf / Platform.h
index 621f0f2fe1d829d3e79f8e6388e76bd24c5b0831..961e80fe8b4321be293e91f61a8601eafd04f832 100644 (file)
 #endif
 
 #define ENABLE_CONTEXT_MENUS 0
+#define ENABLE_DISK_IMAGE_CACHE 1
 #define ENABLE_DRAG_SUPPORT 0
 #define ENABLE_FTPDIR 1
 #define ENABLE_GEOLOCATION 1
 
 #define WTF_USE_PTHREAD_GETSPECIFIC_DIRECT 1
 
-#define ENABLE_JIT 0
-#define ENABLE_YARR 0
-#define ENABLE_YARR_JIT 0
-#ifdef __llvm__
-#define WTF_USE_JSVALUE32_64 1
+#if defined(WTF_ARM_ARCH_VERSION) && WTF_ARM_ARCH_VERSION >= 7
+    // ARMv7;
+    #define WTF_USE_JSVALUE32_64 1
+    #define ENABLE_INTERPRETER 1
+    #define ENABLE_JIT 1
+    #define ENABLE_YARR 1
+    #define ENABLE_YARR_JIT 1
 #else
-#define WTF_USE_JSVALUE32 1
+    // ARMv6; never use the JIT, use JSVALUE32_64 only if compiling with llvm.
+    #define ENABLE_JIT 0
+    #define ENABLE_YARR 0
+    #define ENABLE_YARR_JIT 0
+    /* FIXME: <rdar://problem/7478149> gcc-4.2 compiler bug with USE(JSVALUE32_64) and armv6 target */
+    #ifdef __llvm__
+    #define WTF_USE_JSVALUE32_64 1
+    #else
+    #define WTF_USE_JSVALUE32 1
+    #endif
 #endif
 
 #undef ENABLE_3D_CANVAS
 #define ENABLE_CONTEXT_MENUS 1
 #endif
 
+#if !defined(ENABLE_DISK_IMAGE_CACHE)
+#define ENABLE_DISK_IMAGE_CACHE 0
+#endif
+
 #if !defined(ENABLE_DRAG_SUPPORT)
 #define ENABLE_DRAG_SUPPORT 1
 #endif
@@ -1144,4 +1160,8 @@ on MinGW. See https://bugs.webkit.org/show_bug.cgi?id=29268 */
 
 #define ENABLE_JSC_ZOMBIES 0
 
+#if CPU(ARM_THUMB2)
+#define ENABLE_BRANCH_COMPACTION 1
+#endif
+
 #endif /* WTF_Platform_h */