Changeset 93462 in webkit


Ignore:
Timestamp:
Aug 19, 2011 6:17:18 PM (13 years ago)
Author:
dbates@webkit.org
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):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r93450 r93462  
     12011-08-19  Daniel Bates  <dbates@webkit.org>
     2
     3        Implement ExecutableAllocator::cacheFlush() for QNX
     4        https://bugs.webkit.org/show_bug.cgi?id=66611
     5
     6        Reviewed by Antonio Gomes.
     7
     8        * jit/ExecutableAllocator.h:
     9        (JSC::ExecutableAllocator::cacheFlush):
     10
    1112011-08-19  Daniel Bates  <dbates@webkit.org>
    212
  • trunk/Source/JavaScriptCore/jit/ExecutableAllocator.h

    r92254 r93462  
    3737#if OS(IOS)
    3838#include <libkern/OSCacheControl.h>
     39#endif
     40
     41#if OS(IOS) || OS(QNX)
    3942#include <sys/mman.h>
    4043#endif
     
    326329#endif
    327330    }
     331#elif OS(QNX)
     332    static void cacheFlush(void* code, size_t size)
     333    {
     334#if !ENABLE(ASSEMBLER_WX_EXCLUSIVE)
     335        msync(code, size, MS_INVALIDATE_ICACHE);
     336#else
     337        UNUSED_PARAM(code);
     338        UNUSED_PARAM(size);
     339#endif
     340    }
    328341#else
    329342    #error "The cacheFlush support is missing on this platform."
Note: See TracChangeset for help on using the changeset viewer.