Chromium Code Reviews| Index: src/arm/codegen-arm.cc |
| diff --git a/src/arm/codegen-arm.cc b/src/arm/codegen-arm.cc |
| index 91bfe2b37cc1b52609060aeec97dfbfd9f3a643b..7c4cb810fc88bda07d845bd38f6c17353af1ceca 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::FlushICacheWithoutIsolate(sequence, young_length); |
|
Michael Starzinger
2015/09/11 11:40:03
The isolate is available here, let's use it.
Michael Lippautz
2015/09/11 11:54:52
Done.
|
| } else { |
| Code* stub = GetCodeAgeStub(isolate, age, parity); |
| CodePatcher patcher(sequence, young_length / Assembler::kInstrSize); |