summaryrefslogtreecommitdiff
path: root/deps/v8/src/base/platform/platform-aix.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/base/platform/platform-aix.cc')
-rw-r--r--deps/v8/src/base/platform/platform-aix.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/deps/v8/src/base/platform/platform-aix.cc b/deps/v8/src/base/platform/platform-aix.cc
index d659dadedd..7d406996cb 100644
--- a/deps/v8/src/base/platform/platform-aix.cc
+++ b/deps/v8/src/base/platform/platform-aix.cc
@@ -71,9 +71,10 @@ double AIXTimezoneCache::LocalTimeOffset() {
TimezoneCache* OS::CreateTimezoneCache() { return new AIXTimezoneCache(); }
-void* OS::Allocate(const size_t requested, size_t* allocated, bool executable) {
+void* OS::Allocate(const size_t requested, size_t* allocated,
+ OS::MemoryPermission access) {
const size_t msize = RoundUp(requested, getpagesize());
- int prot = PROT_READ | PROT_WRITE | (executable ? PROT_EXEC : 0);
+ int prot = GetProtectionFromMemoryPermission(access);
void* mbase = mmapHelper(msize, prot, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
if (mbase == MAP_FAILED) return NULL;