| Index: src/x87/codegen-x87.cc
|
| diff --git a/src/x87/codegen-x87.cc b/src/x87/codegen-x87.cc
|
| index 5091e88aa3337ac2367ddf4fe0b5781885248358..334490a3cc3b349512976e2875d149427d6917a4 100644
|
| --- a/src/x87/codegen-x87.cc
|
| +++ b/src/x87/codegen-x87.cc
|
| @@ -79,7 +79,8 @@ class LabelConverter {
|
| MemMoveFunction CreateMemMoveFunction() {
|
| size_t actual_size;
|
| // Allocate buffer in executable space.
|
| - 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 NULL;
|
| MacroAssembler masm(NULL, buffer, static_cast<int>(actual_size));
|
| LabelConverter conv(buffer);
|
| @@ -181,8 +182,8 @@ MemMoveFunction CreateMemMoveFunction() {
|
| CodeDesc desc;
|
| 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);
|
| // TODO(jkummerow): It would be nice to register this code creation event
|
| // with the PROFILE / GDBJIT system.
|
| return FUNCTION_CAST<MemMoveFunction>(buffer);
|
| @@ -618,7 +619,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);
|
|
|