Skip to content

Commit 32dd0d7

Browse files
committed
tools: update V8 gypfiles for 9.9
1 parent f9474ab commit 32dd0d7

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

configure.py

+1
Original file line numberDiff line numberDiff line change
@@ -1419,6 +1419,7 @@ def configure_library(lib, output, pkgname=None):
14191419

14201420
def configure_v8(o):
14211421
o['variables']['v8_enable_webassembly'] = 1
1422+
o['variables']['v8_enable_javascript_promise_hooks'] = 1
14221423
o['variables']['v8_enable_lite_mode'] = 1 if options.v8_lite_mode else 0
14231424
o['variables']['v8_enable_gdbjit'] = 1 if options.gdb else 0
14241425
o['variables']['v8_no_strict_aliasing'] = 1 # Work around compiler bugs.

tools/v8_gypfiles/features.gypi

+6
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,9 @@
224224
# Sets -DV8_DICT_PROPERTY_CONST_TRACKING
225225
'v8_dict_property_const_tracking%': 0,
226226

227+
# Allow for JS promise hooks (instead of just C++).
228+
'v8_enable_javascript_promise_hooks%': 0,
229+
227230
# Enable allocation folding globally (sets -dV8_ALLOCATION_FOLDING).
228231
# When it's disabled, the --turbo-allocation-folding runtime flag will be ignored.
229232
'v8_enable_allocation_folding%': 1,
@@ -396,6 +399,9 @@
396399
['v8_dict_property_const_tracking==1', {
397400
'defines': ['V8_DICT_PROPERTY_CONST_TRACKING',],
398401
}],
402+
['v8_enable_javascript_promise_hooks==1', {
403+
'defines': ['V8_ENABLE_JAVASCRIPT_PROMISE_HOOKS',],
404+
}],
399405
['v8_enable_allocation_folding==1', {
400406
'defines': ['V8_ALLOCATION_FOLDING',],
401407
}],

tools/v8_gypfiles/inspector.gypi

+1
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@
166166
'--jinja_dir', '<(V8_ROOT)/third_party',
167167
'--output_base', '<(inspector_generated_output_root)/src/inspector',
168168
'--config', '<(inspector_path)/inspector_protocol_config.json',
169+
'--config_value', 'protocol.path=<(v8_inspector_js_protocol)',
169170
'--inspector_protocol_dir', '<(inspector_protocol_path)',
170171
],
171172
'message': 'Generating inspector protocol sources from protocol json',

0 commit comments

Comments
 (0)