Changeset 69135 in webkit for trunk/JavaScriptCore/jit/ExecutableAllocator.h
- Timestamp:
- Oct 5, 2010, 12:14:06 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/jit/ExecutableAllocator.h
r67130 r69135 54 54 #endif 55 55 56 #if PLATFORM(BREWMP) 57 #include <AEEIMemCache1.h> 58 #include <AEEMemCache1.bid> 59 #include <wtf/brew/RefPtrBrew.h> 60 #endif 61 56 62 #define JIT_ALLOCATOR_PAGE_SIZE (ExecutableAllocator::pageSize) 57 63 #define JIT_ALLOCATOR_LARGE_ALLOC_SIZE (ExecutableAllocator::pageSize * 4) … … 295 301 CacheRangeFlush(code, size, CACHE_SYNC_ALL); 296 302 } 303 #elif PLATFORM(BREWMP) 304 static void cacheFlush(void* code, size_t size) 305 { 306 PlatformRefPtr<IMemCache1> memCache = createRefPtrInstance<IMemCache1>(AEECLSID_MemCache1); 307 IMemCache1_ClearCache(memCache.get(), reinterpret_cast<uint32>(code), size, MEMSPACE_CACHE_FLUSH, MEMSPACE_DATACACHE); 308 IMemCache1_ClearCache(memCache.get(), reinterpret_cast<uint32>(code), size, MEMSPACE_CACHE_INVALIDATE, MEMSPACE_INSTCACHE); 309 } 297 310 #else 298 311 #error "The cacheFlush support is missing on this platform."
Note:
See TracChangeset
for help on using the changeset viewer.