From 7ce223273d773bb871fa94edbaec3fb7bedbf8c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Tue, 31 Jan 2023 16:22:28 +0100 Subject: [PATCH] tools: update V8 gypfiles for 11.1 PR-URL: https://github.com/nodejs/node/pull/47251 Reviewed-By: Yagiz Nizipli Reviewed-By: Jiawen Geng Reviewed-By: Rafael Gonzaga Reviewed-By: Richard Lau --- tools/v8_gypfiles/features.gypi | 25 +++++-- tools/v8_gypfiles/inspector.gypi | 2 + tools/v8_gypfiles/v8.gyp | 124 +++++++++++++++++++++++-------- 3 files changed, 116 insertions(+), 35 deletions(-) diff --git a/tools/v8_gypfiles/features.gypi b/tools/v8_gypfiles/features.gypi index 3c383fd32f3b7f..7e71e9c46790ab 100644 --- a/tools/v8_gypfiles/features.gypi +++ b/tools/v8_gypfiles/features.gypi @@ -133,6 +133,9 @@ # as per the --native-code-counters flag. 'v8_enable_snapshot_native_code_counters%': 0, + # Use pre-generated static root pointer values from static-roots.h. + 'v8_enable_static_roots%': 0, + # Enable code-generation-time checking of types in the CodeStubAssembler. 'v8_enable_verify_csa%': 0, @@ -168,10 +171,6 @@ # Enables various testing features. 'v8_enable_test_features%': 0, - # Enable the Maglev compiler. - # Sets -dV8_ENABLE_MAGLEV - 'v8_enable_maglev%': 0, - # With post mortem support enabled, metadata is embedded into libv8 that # describes various parameters of the VM for use by debuggers. See # tools/gen-postmortem-metadata.py for details. @@ -278,9 +277,19 @@ # Sets --DV8_LITE_MODE. 'v8_enable_lite_mode%': 0, + # Enable the Turbofan compiler. + # Sets -dV8_ENABLE_TURBOFAN + 'v8_enable_turbofan%': 1, + + # Enable the Maglev compiler. + # Sets -dV8_ENABLE_MAGLEV + 'v8_enable_maglev%': 0, + # Include support for WebAssembly. If disabled, the 'WebAssembly' global # will not be available, and embedder APIs to generate WebAssembly modules - # will fail. + # will fail. Also, asm.js will not be translated to WebAssembly and will be + # executed as standard JavaScript instead. + # Sets -dV8_ENABLE_WEBASSEMBLY. 'v8_enable_webassembly%': 1, # Enable advanced BigInt algorithms, costing about 10-30 KiB binary size @@ -428,6 +437,9 @@ ['v8_enable_cet_shadow_stack==1', { 'defines': ['V8_ENABLE_CET_SHADOW_STACK',], }], + ['v8_enable_static_roots==1', { + 'defines': ['V8_STATIC_ROOTS',], + }], ['v8_use_zlib==1', { 'defines': ['V8_USE_ZLIB',], }], @@ -437,6 +449,9 @@ ['v8_enable_maglev==1', { 'defines': ['V8_ENABLE_MAGLEV',], }], + ['v8_enable_turbofan==1', { + 'defines': ['V8_ENABLE_TURBOFAN',], + }], ['v8_enable_swiss_name_dictionary==1', { 'defines': ['V8_ENABLE_SWISS_NAME_DICTIONARY',], }], diff --git a/tools/v8_gypfiles/inspector.gypi b/tools/v8_gypfiles/inspector.gypi index 4a423bd9e8a21f..28cdaa8319340d 100644 --- a/tools/v8_gypfiles/inspector.gypi +++ b/tools/v8_gypfiles/inspector.gypi @@ -45,6 +45,8 @@ 'inspector_all_sources': [ '<(V8_ROOT)/include/v8-inspector.h', '<(V8_ROOT)/include/v8-inspector-protocol.h', + '<(V8_ROOT)/src/inspector/crc32.cc', + '<(V8_ROOT)/src/inspector/crc32.h', '<(V8_ROOT)/src/inspector/custom-preview.cc', '<(V8_ROOT)/src/inspector/custom-preview.h', '<(V8_ROOT)/src/inspector/injected-script.cc', diff --git a/tools/v8_gypfiles/v8.gyp b/tools/v8_gypfiles/v8.gyp index 34af094ea61e0d..e6651b89fb69d4 100644 --- a/tools/v8_gypfiles/v8.gyp +++ b/tools/v8_gypfiles/v8.gyp @@ -21,7 +21,6 @@ 'torque_outputs_inl_inc': ['