| Index: src/mips/codegen-mips.cc
|
| diff --git a/src/mips/codegen-mips.cc b/src/mips/codegen-mips.cc
|
| index 5d613d0fb0aaf4640e4a59c737d6f34e9e0c2966..6754c680c8e9e44916f13a27adc0a0b745ae69d3 100644
|
| --- a/src/mips/codegen-mips.cc
|
| +++ b/src/mips/codegen-mips.cc
|
| @@ -29,7 +29,8 @@ double fast_exp_simulator(double x) {
|
| UnaryMathFunction CreateExpFunction() {
|
| if (!FLAG_fast_math) return &std::exp;
|
| size_t actual_size;
|
| - byte* buffer = static_cast<byte*>(OS::Allocate(1 * KB, &actual_size, true));
|
| + byte* buffer =
|
| + static_cast<byte*>(base::OS::Allocate(1 * KB, &actual_size, true));
|
| if (buffer == NULL) return &std::exp;
|
| ExternalReference::InitializeMathExpData();
|
|
|
| @@ -58,8 +59,8 @@ UnaryMathFunction CreateExpFunction() {
|
| masm.GetCode(&desc);
|
| ASSERT(!RelocInfo::RequiresRelocation(desc));
|
|
|
| - CPU::FlushICache(buffer, actual_size);
|
| - OS::ProtectCode(buffer, actual_size);
|
| + CpuFeatures::FlushICache(buffer, actual_size);
|
| + base::OS::ProtectCode(buffer, actual_size);
|
|
|
| #if !defined(USE_SIMULATOR)
|
| return FUNCTION_CAST<UnaryMathFunction>(buffer);
|
| @@ -76,7 +77,8 @@ MemCopyUint8Function CreateMemCopyUint8Function(MemCopyUint8Function stub) {
|
| return stub;
|
| #else
|
| size_t actual_size;
|
| - byte* buffer = static_cast<byte*>(OS::Allocate(3 * KB, &actual_size, true));
|
| + byte* buffer =
|
| + static_cast<byte*>(base::OS::Allocate(3 * KB, &actual_size, true));
|
| if (buffer == NULL) return stub;
|
|
|
| // This code assumes that cache lines are 32 bytes and if the cache line is
|
| @@ -594,8 +596,8 @@ MemCopyUint8Function CreateMemCopyUint8Function(MemCopyUint8Function stub) {
|
| masm.GetCode(&desc);
|
| ASSERT(!RelocInfo::RequiresRelocation(desc));
|
|
|
| - CPU::FlushICache(buffer, actual_size);
|
| - OS::ProtectCode(buffer, actual_size);
|
| + CpuFeatures::FlushICache(buffer, actual_size);
|
| + base::OS::ProtectCode(buffer, actual_size);
|
| return FUNCTION_CAST<MemCopyUint8Function>(buffer);
|
| #endif
|
| }
|
| @@ -606,7 +608,8 @@ UnaryMathFunction CreateSqrtFunction() {
|
| return &std::sqrt;
|
| #else
|
| size_t actual_size;
|
| - byte* buffer = static_cast<byte*>(OS::Allocate(1 * KB, &actual_size, true));
|
| + byte* buffer =
|
| + static_cast<byte*>(base::OS::Allocate(1 * KB, &actual_size, true));
|
| if (buffer == NULL) return &std::sqrt;
|
|
|
| MacroAssembler masm(NULL, buffer, static_cast<int>(actual_size));
|
| @@ -620,8 +623,8 @@ UnaryMathFunction CreateSqrtFunction() {
|
| masm.GetCode(&desc);
|
| ASSERT(!RelocInfo::RequiresRelocation(desc));
|
|
|
| - CPU::FlushICache(buffer, actual_size);
|
| - OS::ProtectCode(buffer, actual_size);
|
| + CpuFeatures::FlushICache(buffer, actual_size);
|
| + base::OS::ProtectCode(buffer, actual_size);
|
| return FUNCTION_CAST<UnaryMathFunction>(buffer);
|
| #endif
|
| }
|
| @@ -1175,7 +1178,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);
|
| - CPU::FlushICache(sequence, young_length);
|
| + CpuFeatures::FlushICache(sequence, young_length);
|
| } else {
|
| Code* stub = GetCodeAgeStub(isolate, age, parity);
|
| CodePatcher patcher(sequence, young_length / Assembler::kInstrSize);
|
|
|