diff options
Diffstat (limited to 'deps/v8/src/mips/cpu-mips.cc')
-rw-r--r-- | deps/v8/src/mips/cpu-mips.cc | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/deps/v8/src/mips/cpu-mips.cc b/deps/v8/src/mips/cpu-mips.cc index dff1d30402..1199365b7d 100644 --- a/deps/v8/src/mips/cpu-mips.cc +++ b/deps/v8/src/mips/cpu-mips.cc @@ -23,12 +23,12 @@ namespace internal { void CpuFeatures::FlushICache(void* start, size_t size) { +#if !defined(USE_SIMULATOR) // Nothing to do, flushing no instructions. if (size == 0) { return; } -#if !defined (USE_SIMULATOR) #if defined(ANDROID) // Bionic cacheflush can typically run in userland, avoiding kernel call. char *end = reinterpret_cast<char *>(start) + size; @@ -42,14 +42,7 @@ void CpuFeatures::FlushICache(void* start, size_t size) { V8_Fatal(__FILE__, __LINE__, "Failed to flush the instruction cache"); } #endif // ANDROID -#else // USE_SIMULATOR. - // Not generating mips instructions for C-code. This means that we are - // building a mips emulator based target. We should notify the simulator - // that the Icache was flushed. - // None of this code ends up in the snapshot so there are no issues - // around whether or not to generate the code when building snapshots. - Simulator::FlushICache(Isolate::Current()->simulator_i_cache(), start, size); -#endif // USE_SIMULATOR. +#endif // !USE_SIMULATOR. } } // namespace internal |