Changeset 46059 in webkit for trunk/JavaScriptCore/jit/ExecutableAllocator.h
- Timestamp:
- Jul 17, 2009, 2:56:28 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/jit/ExecutableAllocator.h
r44886 r46059 214 214 sys_dcache_flush(code, size); 215 215 sys_icache_invalidate(code, size); 216 #elif PLATFORM(ARM) 217 #if COMPILER(GCC) && (GCC_VERSION >= 30406) 218 __clear_cache(reinterpret_cast<char*>(code), reinterpret_cast<char*>(code) + size); 219 #else 220 const int syscall = 0xf0002; 221 __asm __volatile ( 222 "mov r0, %0\n" 223 "mov r1, %1\n" 224 "mov r7, %2\n" 225 "mov r2, #0x0\n" 226 "swi 0x00000000\n" 227 : 228 : "r" (code), "r" (reinterpret_cast<char*>(code) + size), "r" (syscall) 229 : "r0", "r1", "r7"); 230 #endif // COMPILER(GCC) && (GCC_VERSION >= 30406) 216 231 #else 217 232 #error "ExecutableAllocator::cacheFlush not implemented on this platform."
Note:
See TracChangeset
for help on using the changeset viewer.