7 #include <sys/syscall.h>
11 #include <asm/cachectl.h>
16 #if V8_TARGET_ARCH_MIPS64
33 #if !defined (USE_SIMULATOR)
34 #if defined(ANDROID) && !defined(__LP64__)
36 char *end =
reinterpret_cast<char *
>(start) +
size;
38 reinterpret_cast<intptr_t
>(start),
reinterpret_cast<intptr_t
>(end), 0);
42 res = syscall(__NR_cacheflush, start,
size, ICACHE);
44 V8_Fatal(__FILE__, __LINE__,
"Failed to flush the instruction cache");
53 Simulator::FlushICache(Isolate::Current()->simulator_i_cache(), start,
size);
static void FlushICache(void *start, size_t size)
enable harmony numeric enable harmony object literal extensions Optimize object size
void V8_Fatal(const char *file, int line, const char *format,...)
Debugger support for the V8 JavaScript engine.