Index: src/arm/codegen-arm.cc |
diff --git a/src/arm/codegen-arm.cc b/src/arm/codegen-arm.cc |
index 91bfe2b37cc1b52609060aeec97dfbfd9f3a643b..97f103406113aaed83f88efa9e23f8292f4bb3e9 100644 |
--- a/src/arm/codegen-arm.cc |
+++ b/src/arm/codegen-arm.cc |
@@ -67,7 +67,7 @@ UnaryMathFunction CreateExpFunction() { |
masm.GetCode(&desc); |
DCHECK(!RelocInfo::RequiresRelocation(desc)); |
- CpuFeatures::FlushICache(buffer, actual_size); |
+ Assembler::FlushICacheWithoutIsolate(buffer, actual_size); |
base::OS::ProtectCode(buffer, actual_size); |
#if !defined(USE_SIMULATOR) |
@@ -227,7 +227,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 |
@@ -314,7 +314,7 @@ MemCopyUint16Uint8Function CreateMemCopyUint16Uint8Function( |
CodeDesc desc; |
masm.GetCode(&desc); |
- CpuFeatures::FlushICache(buffer, actual_size); |
+ Assembler::FlushICacheWithoutIsolate(buffer, actual_size); |
base::OS::ProtectCode(buffer, actual_size); |
return FUNCTION_CAST<MemCopyUint16Uint8Function>(buffer); |
@@ -342,7 +342,7 @@ UnaryMathFunction CreateSqrtFunction() { |
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<UnaryMathFunction>(buffer); |
#endif |
@@ -934,7 +934,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); |