diff options
Diffstat (limited to 'deps/v8/src/x64/codegen-x64.cc')
-rw-r--r-- | deps/v8/src/x64/codegen-x64.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/deps/v8/src/x64/codegen-x64.cc b/deps/v8/src/x64/codegen-x64.cc index 8c22e07b12..25a74b98fc 100644 --- a/deps/v8/src/x64/codegen-x64.cc +++ b/deps/v8/src/x64/codegen-x64.cc @@ -15,8 +15,7 @@ namespace internal { UnaryMathFunctionWithIsolate CreateSqrtFunction(Isolate* isolate) { size_t allocated = 0; - byte* buffer = - AllocateSystemPage(isolate->heap()->GetRandomMmapAddr(), &allocated); + byte* buffer = AllocatePage(isolate->heap()->GetRandomMmapAddr(), &allocated); if (buffer == nullptr) return nullptr; MacroAssembler masm(isolate, buffer, static_cast<int>(allocated), @@ -32,8 +31,7 @@ UnaryMathFunctionWithIsolate CreateSqrtFunction(Isolate* isolate) { DCHECK(!RelocInfo::RequiresRelocation(isolate, desc)); Assembler::FlushICache(isolate, buffer, allocated); - CHECK(base::OS::SetPermissions(buffer, allocated, - base::OS::MemoryPermission::kReadExecute)); + CHECK(SetPermissions(buffer, allocated, PageAllocator::kReadExecute)); return FUNCTION_CAST<UnaryMathFunctionWithIsolate>(buffer); } |