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

(-)files/patch-Source__JavaScriptCore__assembler__ARMAssembler.h (+11 lines)
Line 0 Link Here
1
--- Source/JavaScriptCore/assembler/ARMAssembler.h.orig	2014-12-15 04:13:43.336068961 +0000
2
+++ Source/JavaScriptCore/assembler/ARMAssembler.h	2014-12-15 04:13:49.213068201 +0000
3
@@ -1121,6 +1121,8 @@
4
             linuxPageFlush(current, end);
5
 #elif OS(WINCE)
6
             CacheRangeFlush(code, size, CACHE_SYNC_ALL);
7
+#elif 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
(-)files/patch-Source__JavaScriptCore__jit__ExecutableAllocator.h (-12 lines)
Lines 12-26 Link Here
12
 static const size_t fixedExecutableMemoryPoolSize = 1024 * 1024 * 1024;
12
 static const size_t fixedExecutableMemoryPoolSize = 1024 * 1024 * 1024;
13
 #else
13
 #else
14
 static const size_t fixedExecutableMemoryPoolSize = 32 * 1024 * 1024;
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 196638