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
parent ebd4b61f
...@@ -159,10 +159,9 @@ typedef double (*ModuloFunction)(double, double); ...@@ -159,10 +159,9 @@ typedef double (*ModuloFunction)(double, double);
// Define custom fmod implementation. // Define custom fmod implementation.
ModuloFunction CreateModuloFunction() { ModuloFunction CreateModuloFunction() {
size_t actual_size; size_t actual_size;
byte* buffer = static_cast<byte*>(VirtualMemory::AllocateRegion( byte* buffer = static_cast<byte*>(OS::Allocate(Assembler::kMinimalBufferSize,
Assembler::kMinimalBufferSize, &actual_size,
&actual_size, true));
VirtualMemory::EXECUTABLE));
CHECK(buffer); CHECK(buffer);
Assembler masm(NULL, buffer, static_cast<int>(actual_size)); Assembler masm(NULL, buffer, static_cast<int>(actual_size));
// Generated code is put into a fixed, unmovable, buffer, and not into // Generated code is put into a fixed, unmovable, buffer, and not into
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment