Index: src/deoptimizer.cc |
diff --git a/src/deoptimizer.cc b/src/deoptimizer.cc |
index 5f59fd9ab05584e96fec88e23ed8598ab5a0bc9b..428495027276a34605e137000c0f0380b64a277d 100644 |
--- a/src/deoptimizer.cc |
+++ b/src/deoptimizer.cc |
@@ -43,7 +43,13 @@ namespace internal { |
static MemoryChunk* AllocateCodeChunk(MemoryAllocator* allocator) { |
return allocator->AllocateChunk(Deoptimizer::GetMaxDeoptTableSize(), |
OS::CommitPageSize(), |
+#if defined(__native_client__) |
+ // The Native Client port of V8 uses an interpreter, |
+ // so code pages don't need PROT_EXEC. |
+ NOT_EXECUTABLE, |
+#else |
EXECUTABLE, |
+#endif |
NULL); |
} |