View | Details | Raw Unified | Return to bug 196908
Collapse All | Expand All

(-)www/webkit-gtk2/files/patch-Source_JavaScriptCore_assembler_ARMAssembler.h (+11 lines)
Line 0 Link Here
1
--- Source/JavaScriptCore/assembler/ARMAssembler.h.orig	2015-01-19 21:25:28.000000000 +0000
2
+++ Source/JavaScriptCore/assembler/ARMAssembler.h	2015-01-19 21:25:57.000000000 +0000
3
@@ -1121,6 +1121,8 @@ namespace JSC {
4
             linuxPageFlush(current, end);
5
 #elif OS(WINCE)
6
             CacheRangeFlush(code, size, CACHE_SYNC_ALL);
7
+#elif CPU(ARM_TRADITIONAL) && OS(FREEBSD) && COMPILER(CLANG)
8
+	__clear_cache(code, reinterpret_cast<char*>(code) + size);
9
 #else
10
 #error "The cacheFlush support is missing on this platform."
11
 #endif
(-)www/webkit-gtk2/files/patch-Source__JavaScriptCore__jit__ExecutableAllocator.h (-26 lines)
Lines 1-26 Link Here
1
2
3
--- Source/JavaScriptCore/jit/ExecutableAllocator.h.orig	2014-12-25 12:52:32.786521149 +0100
4
+++ Source/JavaScriptCore/jit/ExecutableAllocator.h	2014-12-25 12:52:41.921520911 +0100
5
@@ -104,7 +104,8 @@
6
 #if ENABLE(EXECUTABLE_ALLOCATOR_FIXED)
7
 #if CPU(ARM) || CPU(ARM64)
8
 static const size_t fixedExecutableMemoryPoolSize = 16 * 1024 * 1024;
9
-#elif CPU(X86_64)
10
+// We don't want an initial allocation of 1GB, it's above the default ulimit
11
+#elif CPU(X86_64) && !defined(__OpenBSD__) && !defined(__FreeBSD__)
12
 static const size_t fixedExecutableMemoryPoolSize = 1024 * 1024 * 1024;
13
 #else
14
 static const size_t fixedExecutableMemoryPoolSize = 32 * 1024 * 1024;
15
@@ -146,6 +147,11 @@
16
     {
17
         reprotectRegion(start, size, Executable);
18
     }
19
+#elif CPU(ARM_TRADITIONAL) && OS(FREEBSD) && COMPILER(CLANG)
20
+    static void cacheFlush(void* code, size_t size)
21
+    {
22
+        __clear_cache(code, reinterpret_cast<char*>(code) + size);
23
+    }
24
 #else
25
     static void makeWritable(void*, size_t) {}
26
     static void makeExecutable(void*, size_t) {}

Return to bug 196908