Index: test/cctest/test-code-stubs-x64.cc |
diff --git a/test/cctest/test-code-stubs-x64.cc b/test/cctest/test-code-stubs-x64.cc |
index a058118aa7a3b8a60322ea54e7fe775c3566235d..4af5b45d7c62135119a37b7825003f538647fd4a 100644 |
--- a/test/cctest/test-code-stubs-x64.cc |
+++ b/test/cctest/test-code-stubs-x64.cc |
@@ -46,10 +46,9 @@ ConvertDToIFunc MakeConvertDToIFuncTrampoline(Isolate* isolate, |
Register destination_reg) { |
// Allocate an executable page of memory. |
size_t actual_size; |
- byte* buffer = static_cast<byte*>(VirtualMemory::AllocateRegion( |
- Assembler::kMinimalBufferSize, |
- &actual_size, |
- VirtualMemory::EXECUTABLE)); |
+ byte* buffer = static_cast<byte*>(OS::Allocate(Assembler::kMinimalBufferSize, |
+ &actual_size, |
+ true)); |
CHECK(buffer); |
HandleScope handles(isolate); |
MacroAssembler assm(isolate, buffer, static_cast<int>(actual_size)); |