30 #include <sys/syscall.h>
34 #include <asm/cachectl.h>
35 #endif // #ifdef __mips
39 #if defined(V8_TARGET_ARCH_MIPS)
66 #if !defined (USE_SIMULATOR)
69 char *end =
reinterpret_cast<char *
>(start) + size;
71 reinterpret_cast<intptr_t>(start), reinterpret_cast<intptr_t>(end), 0);
75 res = syscall(__NR_cacheflush, start, size, ICACHE);
77 V8_Fatal(__FILE__, __LINE__,
"Failed to flush the instruction cache");
80 #else // USE_SIMULATOR.
86 Simulator::FlushICache(Isolate::Current()->simulator_i_cache(), start, size);
87 #endif // USE_SIMULATOR.
93 asm volatile(
"break");
94 #endif // #ifdef __mips
100 #endif // V8_TARGET_ARCH_MIPS
static bool IsSupported(CpuFeature f)
void V8_Fatal(const char *file, int line, const char *format,...)
static bool SupportsCrankshaft()
static void FlushICache(void *start, size_t size)