diff options
Diffstat (limited to 'chromium/v8/src/s390/codegen-s390.cc')
-rw-r--r-- | chromium/v8/src/s390/codegen-s390.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/chromium/v8/src/s390/codegen-s390.cc b/chromium/v8/src/s390/codegen-s390.cc index e6c627da3a7..df025707838 100644 --- a/chromium/v8/src/s390/codegen-s390.cc +++ b/chromium/v8/src/s390/codegen-s390.cc @@ -20,8 +20,7 @@ UnaryMathFunctionWithIsolate CreateSqrtFunction(Isolate* isolate) { return nullptr; #else 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), @@ -38,8 +37,7 @@ UnaryMathFunctionWithIsolate CreateSqrtFunction(Isolate* isolate) { !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); #endif } |