diff options
Diffstat (limited to 'deps/v8/src/ppc/cpu-ppc.cc')
-rw-r--r-- | deps/v8/src/ppc/cpu-ppc.cc | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/deps/v8/src/ppc/cpu-ppc.cc b/deps/v8/src/ppc/cpu-ppc.cc index 079aa23403..a42fa53960 100644 --- a/deps/v8/src/ppc/cpu-ppc.cc +++ b/deps/v8/src/ppc/cpu-ppc.cc @@ -8,26 +8,12 @@ #include "src/assembler.h" #include "src/macro-assembler.h" -#include "src/simulator.h" // for cache flushing. namespace v8 { namespace internal { void CpuFeatures::FlushICache(void* buffer, size_t size) { - // Nothing to do flushing no instructions. - if (size == 0) { - return; - } - -#if defined(USE_SIMULATOR) - // Not generating PPC instructions for C-code. This means that we are - // building an PPC 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(), buffer, size); -#else - +#if !defined(USE_SIMULATOR) if (CpuFeatures::IsSupported(INSTR_AND_DATA_CACHE_COHERENCY)) { __asm__ __volatile__( "sync \n" @@ -54,7 +40,7 @@ void CpuFeatures::FlushICache(void* buffer, size_t size) { : "r"(pointer)); } -#endif // USE_SIMULATOR +#endif // !USE_SIMULATOR } } // namespace internal } // namespace v8 |