Ignore:
Timestamp:
Jan 4, 2010, 9:20:56 AM (15 years ago)
Author:
[email protected]
Message:

2010-01-04 Patrick Gansterer <[email protected]>

Reviewed by Darin Adler.

Add cacheFlush support for WinCE
https://bugs.webkit.org/show_bug.cgi?id=33110

  • jit/ExecutableAllocator.h: (JSC::ExecutableAllocator::cacheFlush):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/jit/ExecutableAllocator.h

    r52729 r52743  
    4444#endif
    4545
     46#if PLATFORM(WINCE)
     47// From pkfuncs.h (private header file from the Platform Builder)
     48#define CACHE_SYNC_ALL 0x07F
     49extern "C" __declspec(dllimport) void CacheRangeFlush(LPVOID pAddr, DWORD dwLength, DWORD dwFlags);
     50#endif
     51
    4652#define JIT_ALLOCATOR_PAGE_SIZE (ExecutableAllocator::pageSize)
    4753#define JIT_ALLOCATOR_LARGE_ALLOC_SIZE (ExecutableAllocator::pageSize * 4)
     
    228234            : "r0", "r1", "r2");
    229235    }
     236#elif PLATFORM(WINCE)
     237    static void cacheFlush(void* code, size_t size)
     238    {
     239        CacheRangeFlush(code, size, CACHE_SYNC_ALL);
     240    }
    230241#else
    231242    #error "The cacheFlush support is missing on this platform."
Note: See TracChangeset for help on using the changeset viewer.