Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMichaël Zasso <targos@protonmail.com>2022-04-24 09:29:13 +0300
committerMichaël Zasso <targos@protonmail.com>2022-04-28 07:57:22 +0300
commit4050b0d64f2a5b92b54a2de346f301a60d8553ba (patch)
tree9892aa146b2f0d627e0d37f37cc049914608abae /tools
parentd33cbabd79cd7f2d2925e352b34dd42e8675147a (diff)
build: enable V8's shared read-only heap
It is what V8's build config does by default. PR-URL: https://github.com/nodejs/node/pull/42809 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/v8_gypfiles/features.gypi7
-rw-r--r--tools/v8_gypfiles/v8.gyp1
2 files changed, 8 insertions, 0 deletions
diff --git a/tools/v8_gypfiles/features.gypi b/tools/v8_gypfiles/features.gypi
index 2936f7181f3..5aa7c3fb4d2 100644
--- a/tools/v8_gypfiles/features.gypi
+++ b/tools/v8_gypfiles/features.gypi
@@ -179,6 +179,10 @@
# Controls the threshold for on-heap/off-heap Typed Arrays.
'v8_typed_array_max_size_in_heap%': 64,
+ # Enable sharing read-only space across isolates.
+ # Sets -DV8_SHARED_RO_HEAP.
+ 'v8_enable_shared_ro_heap%': 0,
+
# Enable lazy source positions by default.
'v8_enable_lazy_source_positions%': 1,
@@ -396,6 +400,9 @@
['v8_use_siphash==1', {
'defines': ['V8_USE_SIPHASH',],
}],
+ ['v8_enable_shared_ro_heap==1', {
+ 'defines': ['V8_SHARED_RO_HEAP',],
+ }],
['dcheck_always_on!=0', {
'defines': ['DEBUG',],
}],
diff --git a/tools/v8_gypfiles/v8.gyp b/tools/v8_gypfiles/v8.gyp
index d9cab2b5eaf..55f96369334 100644
--- a/tools/v8_gypfiles/v8.gyp
+++ b/tools/v8_gypfiles/v8.gyp
@@ -1757,6 +1757,7 @@
'v8_enable_verify_csa=<(v8_enable_verify_csa)',
'v8_enable_lite_mode=<(v8_enable_lite_mode)',
'v8_enable_pointer_compression=<(v8_enable_pointer_compression)',
+ 'v8_enable_shared_ro_heap=<(v8_enable_shared_ro_heap)',
'v8_enable_webassembly=<(v8_enable_webassembly)',
# Not available in gyp.
'v8_control_flow_integrity=0',