From 51b37666e340457f79b07fd79179b696228a2b04 Mon Sep 17 00:00:00 2001 From: "mstarzinger@chromium.org" Date: Wed, 11 Sep 2013 20:04:51 +0000 Subject: [PATCH] Revert "Fix leftover usage of OS::Allocate()." TBR=bmeurer@chromium.org Review URL: https://codereview.chromium.org/23691049 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16664 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/x64/codegen-x64.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/x64/codegen-x64.cc b/src/x64/codegen-x64.cc index 03a9887..24773c2 100644 --- a/src/x64/codegen-x64.cc +++ b/src/x64/codegen-x64.cc @@ -159,10 +159,9 @@ typedef double (*ModuloFunction)(double, double); // Define custom fmod implementation. ModuloFunction CreateModuloFunction() { size_t actual_size; - byte* buffer = static_cast(VirtualMemory::AllocateRegion( - Assembler::kMinimalBufferSize, - &actual_size, - VirtualMemory::EXECUTABLE)); + byte* buffer = static_cast(OS::Allocate(Assembler::kMinimalBufferSize, + &actual_size, + true)); CHECK(buffer); Assembler masm(NULL, buffer, static_cast(actual_size)); // Generated code is put into a fixed, unmovable, buffer, and not into -- 2.7.4