Index: src/ia32/codegen-ia32.cc |
diff --git a/src/ia32/codegen-ia32.cc b/src/ia32/codegen-ia32.cc |
index 21a16f68fa3a663126510fa2aaa70610dcafa161..93f4cee636698567805955e11b33eba0336358f4 100644 |
--- a/src/ia32/codegen-ia32.cc |
+++ b/src/ia32/codegen-ia32.cc |
@@ -65,7 +65,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); |
return FUNCTION_CAST<UnaryMathFunction>(buffer); |
} |
@@ -94,7 +94,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); |
} |
@@ -505,7 +505,7 @@ MemMoveFunction CreateMemMoveFunction() { |
CodeDesc desc; |
masm.GetCode(&desc); |
DCHECK(!RelocInfo::RequiresRelocation(desc)); |
- CpuFeatures::FlushICache(buffer, actual_size); |
+ Assembler::FlushICacheWithoutIsolate(buffer, actual_size); |
base::OS::ProtectCode(buffer, actual_size); |
// TODO(jkummerow): It would be nice to register this code creation event |
// with the PROFILE / GDBJIT system. |
@@ -1032,7 +1032,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); |