[rwx][mac] Enable fast W^X on Apple Silicon (M1)

Bug: v8:12797
Change-Id: I53bb803dd77db5bdd42b1a1b4b568e63857adf31
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3598861
Reviewed-by: Toon Verwaest <verwaest@chromium.org>
Commit-Queue: Igor Sheludko <ishell@chromium.org>
Cr-Commit-Position: refs/heads/main@{#80396}
This commit is contained in:
Igor Sheludko 2022-04-29 23:50:18 +02:00 committed by V8 LUCI CQ
parent 1a5adf8978
commit e8cac3776e

View File

@ -188,8 +188,7 @@ using CodeT = Code;
//
#if V8_HAS_PTHREAD_JIT_WRITE_PROTECT && \
!(defined(V8_COMPRESS_POINTERS) && !defined(V8_EXTERNAL_CODE_SPACE))
// TODO(v8:12797): enable fast W^X permissions switching on Apple Silicon.
#define V8_HEAP_USE_PTHREAD_JIT_WRITE_PROTECT false
#define V8_HEAP_USE_PTHREAD_JIT_WRITE_PROTECT true
#else
#define V8_HEAP_USE_PTHREAD_JIT_WRITE_PROTECT false
#endif