diff options
author | Ole André Vadla Ravnås <oleavr@gmail.com> | 2020-11-06 02:46:09 +0100 |
---|---|---|
committer | Node.js GitHub Bot <github-bot@iojs.org> | 2020-11-12 13:54:11 +0000 |
commit | c6ec36a6f2ca49b8291f7c292de3a113a8a71084 (patch) | |
tree | b9d89d5bff288ad002085e3a8cbdd8a46d40dd0b /deps/v8/BUILD.gn | |
parent | 929c51f14acff11b39277f5f5fe4b5537bdc370f (diff) | |
download | node-new-c6ec36a6f2ca49b8291f7c292de3a113a8a71084.tar.gz |
deps: V8: cherry-pick 27e1ac1a79ff
Original commit message:
[wasm][mac] Support w^x codespaces for Apple Silicon
Apple's upcoming arm64 devices will prevent rwx access to memory,
but in turn provide a new per-thread way to switch between write
and execute permissions. This patch puts that system to use for
the WebAssembly subsystem.
The approach relies on CodeSpaceWriteScope objects for now. That
isn't optimal for background threads (which could stay in "write"
mode permanently instead of toggling), but its simplicity makes
it a good first step.
Background:
https://developer.apple.com/documentation/apple_silicon/porting_just-in-time_compilers_to_apple_silicon
Bug: chromium:1117591
Change-Id: I3b60f0efd34c0fed924dfc71ee2c7805801c5d42
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2378307
Commit-Queue: Jakob Kummerow <jkummerow@chromium.org>
Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
Reviewed-by: Thibaud Michaud <thibaudm@chromium.org>
Cr-Commit-Position: refs/heads/master@{#69791}
PR-URL: https://github.com/nodejs/node/pull/35986
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Beth Griggs <bgriggs@redhat.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Diffstat (limited to 'deps/v8/BUILD.gn')
-rw-r--r-- | deps/v8/BUILD.gn | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/deps/v8/BUILD.gn b/deps/v8/BUILD.gn index bda33c185f..219837ff45 100644 --- a/deps/v8/BUILD.gn +++ b/deps/v8/BUILD.gn @@ -3237,6 +3237,7 @@ v8_source_set("v8_base_without_compiler") { "src/wasm/baseline/liftoff-compiler.cc", "src/wasm/baseline/liftoff-compiler.h", "src/wasm/baseline/liftoff-register.h", + "src/wasm/code-space-access.h", "src/wasm/compilation-environment.h", "src/wasm/decoder.h", "src/wasm/function-body-decoder-impl.h", |