9 #include "src/assembler.h" 10 #include "src/macro-assembler.h" 15 void CpuFeatures::FlushICache(
void* buffer,
size_t size) {
16 #if !defined(USE_SIMULATOR) 17 if (CpuFeatures::IsSupported(INSTR_AND_DATA_CACHE_COHERENCY)) {
28 const int kCacheLineSize = CpuFeatures::icache_line_size();
29 intptr_t mask = kCacheLineSize - 1;
31 reinterpret_cast<byte *
>(
reinterpret_cast<intptr_t
>(buffer) & ~mask);
32 byte *end =
static_cast<byte *
>(buffer) + size;
33 for (byte *pointer = start; pointer < end; pointer += kCacheLineSize) {
43 #endif // !USE_SIMULATOR 48 #endif // V8_TARGET_ARCH_PPC