30 #include <sys/syscall.h>
34 #include <asm/cachectl.h>
35 #endif // #ifdef __mips
39 #if V8_TARGET_ARCH_MIPS
55 bool CPU::SupportsCrankshaft() {
60 void CPU::FlushICache(
void* start,
size_t size) {
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.
92 #endif // V8_TARGET_ARCH_MIPS
static bool IsSupported(CpuFeature f)
void V8_Fatal(const char *file, int line, const char *format,...)
enable upcoming ES6 features enable harmony block scoping enable harmony enable harmony proxies enable harmony generators enable harmony numeric enable harmony string enable harmony math functions harmony_scoping harmony_symbols harmony_collections harmony_iteration harmony_strings harmony_scoping harmony_maths tracks arrays with only smi values Optimize object size