Title: [93462] trunk/Source/_javascript_Core
Revision
93462
Author
[email protected]
Date
2011-08-19 18:17:18 -0700 (Fri, 19 Aug 2011)

Log Message

Implement ExecutableAllocator::cacheFlush() for QNX
https://bugs.webkit.org/show_bug.cgi?id=66611

Reviewed by Antonio Gomes.

* jit/ExecutableAllocator.h:
(JSC::ExecutableAllocator::cacheFlush):

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (93461 => 93462)


--- trunk/Source/_javascript_Core/ChangeLog	2011-08-20 01:14:39 UTC (rev 93461)
+++ trunk/Source/_javascript_Core/ChangeLog	2011-08-20 01:17:18 UTC (rev 93462)
@@ -1,5 +1,15 @@
 2011-08-19  Daniel Bates  <[email protected]>
 
+        Implement ExecutableAllocator::cacheFlush() for QNX
+        https://bugs.webkit.org/show_bug.cgi?id=66611
+
+        Reviewed by Antonio Gomes.
+
+        * jit/ExecutableAllocator.h:
+        (JSC::ExecutableAllocator::cacheFlush):
+
+2011-08-19  Daniel Bates  <[email protected]>
+
         Implement WTF::atomic{Increment, Decrement}() for QNX
         https://bugs.webkit.org/show_bug.cgi?id=66605
 

Modified: trunk/Source/_javascript_Core/jit/ExecutableAllocator.h (93461 => 93462)


--- trunk/Source/_javascript_Core/jit/ExecutableAllocator.h	2011-08-20 01:14:39 UTC (rev 93461)
+++ trunk/Source/_javascript_Core/jit/ExecutableAllocator.h	2011-08-20 01:17:18 UTC (rev 93462)
@@ -36,6 +36,9 @@
 
 #if OS(IOS)
 #include <libkern/OSCacheControl.h>
+#endif
+
+#if OS(IOS) || OS(QNX)
 #include <sys/mman.h>
 #endif
 
@@ -325,7 +328,17 @@
         syscall(__NR_cacheflush, reinterpret_cast<unsigned>(code), size, CACHEFLUSH_D_WB | CACHEFLUSH_I);
 #endif
     }
+#elif OS(QNX)
+    static void cacheFlush(void* code, size_t size)
+    {
+#if !ENABLE(ASSEMBLER_WX_EXCLUSIVE)
+        msync(code, size, MS_INVALIDATE_ICACHE);
 #else
+        UNUSED_PARAM(code);
+        UNUSED_PARAM(size);
+#endif
+    }
+#else
     #error "The cacheFlush support is missing on this platform."
 #endif
     static size_t committedByteCount();
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to