Index: src/mips/codegen-mips.cc |
diff --git a/src/mips/codegen-mips.cc b/src/mips/codegen-mips.cc |
index c27097fc0c16dcce647e6f8a472754c0697f7482..24c3a580b4635d7277035e8813528cdc72375b71 100644 |
--- a/src/mips/codegen-mips.cc |
+++ b/src/mips/codegen-mips.cc |
@@ -58,7 +58,7 @@ UnaryMathFunctionWithIsolate CreateExpFunction(Isolate* isolate) { |
masm.GetCode(&desc); |
DCHECK(!RelocInfo::RequiresRelocation(desc)); |
- CpuFeatures::FlushICache(buffer, actual_size); |
+ Assembler::FlushICache(isolate, buffer, actual_size); |
base::OS::ProtectCode(buffer, actual_size); |
#if !defined(USE_SIMULATOR) |
@@ -597,7 +597,7 @@ MemCopyUint8Function CreateMemCopyUint8Function(MemCopyUint8Function stub) { |
masm.GetCode(&desc); |
DCHECK(!RelocInfo::RequiresRelocation(desc)); |
- CpuFeatures::FlushICache(buffer, actual_size); |
+ Assembler::FlushICacheWithoutIsolate(buffer, actual_size); |
base::OS::ProtectCode(buffer, actual_size); |
return FUNCTION_CAST<MemCopyUint8Function>(buffer); |
#endif |
@@ -1241,7 +1241,7 @@ void Code::PatchPlatformCodeAge(Isolate* isolate, |
uint32_t young_length = isolate->code_aging_helper()->young_sequence_length(); |
if (age == kNoAgeCodeAge) { |
isolate->code_aging_helper()->CopyYoungSequenceTo(sequence); |
- CpuFeatures::FlushICache(sequence, young_length); |
+ Assembler::FlushICache(isolate, sequence, young_length); |
} else { |
Code* stub = GetCodeAgeStub(isolate, age, parity); |
CodePatcher patcher(sequence, young_length / Assembler::kInstrSize); |