| Index: src/base/platform/platform-aix.cc
|
| diff --git a/src/base/platform/platform-aix.cc b/src/base/platform/platform-aix.cc
|
| index 18b35b9066466bcf6c3b2c1a677e3abbccfd5663..ad272b37233735da7c6459c690ac700f7a24739c 100644
|
| --- a/src/base/platform/platform-aix.cc
|
| +++ b/src/base/platform/platform-aix.cc
|
| @@ -215,13 +215,8 @@ void* VirtualMemory::ReserveRegion(size_t size) {
|
|
|
|
|
| bool VirtualMemory::CommitRegion(void* base, size_t size, bool is_executable) {
|
| -#if defined(__native_client__)
|
| - // The Native Client port of V8 uses an interpreter,
|
| - // so code pages don't need PROT_EXEC.
|
| - int prot = PROT_READ | PROT_WRITE;
|
| -#else
|
| int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0);
|
| -#endif
|
| +
|
| if (mprotect(base, size, prot) == -1) return false;
|
|
|
| return true;
|
|
|