From bcec01e5cca200e7ab2c0ddc10dc189d3be1b414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Wed, 15 Dec 2021 08:33:46 +0100 Subject: [PATCH] tools: update V8 gypfiles for 9.9 --- configure.py | 1 + tools/v8_gypfiles/features.gypi | 6 ++++++ tools/v8_gypfiles/inspector.gypi | 1 + 3 files changed, 8 insertions(+) diff --git a/configure.py b/configure.py index 1bd24a4a8e35db..03a86c8e4c91f3 100755 --- a/configure.py +++ b/configure.py @@ -1419,6 +1419,7 @@ def configure_library(lib, output, pkgname=None): def configure_v8(o): o['variables']['v8_enable_webassembly'] = 1 + o['variables']['v8_enable_javascript_promise_hooks'] = 1 o['variables']['v8_enable_lite_mode'] = 1 if options.v8_lite_mode else 0 o['variables']['v8_enable_gdbjit'] = 1 if options.gdb else 0 o['variables']['v8_no_strict_aliasing'] = 1 # Work around compiler bugs. diff --git a/tools/v8_gypfiles/features.gypi b/tools/v8_gypfiles/features.gypi index 2a2798156ff028..19213b46fc54a4 100644 --- a/tools/v8_gypfiles/features.gypi +++ b/tools/v8_gypfiles/features.gypi @@ -224,6 +224,9 @@ # Sets -DV8_DICT_PROPERTY_CONST_TRACKING 'v8_dict_property_const_tracking%': 0, + # Allow for JS promise hooks (instead of just C++). + 'v8_enable_javascript_promise_hooks%': 0, + # Enable allocation folding globally (sets -dV8_ALLOCATION_FOLDING). # When it's disabled, the --turbo-allocation-folding runtime flag will be ignored. 'v8_enable_allocation_folding%': 1, @@ -396,6 +399,9 @@ ['v8_dict_property_const_tracking==1', { 'defines': ['V8_DICT_PROPERTY_CONST_TRACKING',], }], + ['v8_enable_javascript_promise_hooks==1', { + 'defines': ['V8_ENABLE_JAVASCRIPT_PROMISE_HOOKS',], + }], ['v8_enable_allocation_folding==1', { 'defines': ['V8_ALLOCATION_FOLDING',], }], diff --git a/tools/v8_gypfiles/inspector.gypi b/tools/v8_gypfiles/inspector.gypi index ea4860a72744f4..902c64a252e056 100644 --- a/tools/v8_gypfiles/inspector.gypi +++ b/tools/v8_gypfiles/inspector.gypi @@ -166,6 +166,7 @@ '--jinja_dir', '<(V8_ROOT)/third_party', '--output_base', '<(inspector_generated_output_root)/src/inspector', '--config', '<(inspector_path)/inspector_protocol_config.json', + '--config_value', 'protocol.path=<(v8_inspector_js_protocol)', '--inspector_protocol_dir', '<(inspector_protocol_path)', ], 'message': 'Generating inspector protocol sources from protocol json',