diff options
Diffstat (limited to 'deps/v8/src/heap/memory-chunk.h')
-rw-r--r-- | deps/v8/src/heap/memory-chunk.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/deps/v8/src/heap/memory-chunk.h b/deps/v8/src/heap/memory-chunk.h index 761ea9a83a..de6f09234b 100644 --- a/deps/v8/src/heap/memory-chunk.h +++ b/deps/v8/src/heap/memory-chunk.h @@ -189,6 +189,11 @@ class MemoryChunk : public BasicMemoryChunk { // MemoryChunk::synchronized_heap() to simulate the barrier. void InitializationMemoryFence(); + static PageAllocator::Permission GetCodeModificationPermission() { + return FLAG_write_code_using_rwx ? PageAllocator::kReadWriteExecute + : PageAllocator::kReadWrite; + } + V8_EXPORT_PRIVATE void SetReadable(); V8_EXPORT_PRIVATE void SetReadAndExecutable(); |