Changeset 69135 in webkit
- Timestamp:
- Oct 5, 2010 12:14:06 PM (13 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r69132 r69135 1 2010-10-05 Kwang Yul Seo <skyul@company100.net> 2 3 Reviewed by Gavin Barraclough. 4 5 [BREWMP] Port ExecutableAllocator::cacheFlush to enable ARM JIT 6 https://bugs.webkit.org/show_bug.cgi?id=47117 7 8 Use IMemCache1 to flush data cache and invalidate instruction cache. 9 10 * jit/ExecutableAllocator.h: 11 (JSC::ExecutableAllocator::cacheFlush): 12 1 13 2010-10-05 Leandro Pereira <leandro@profusion.mobi> 2 14 -
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.