From 5fe74aa4035047c926be305d499b148c9569e85f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Sun, 11 Apr 2021 08:16:48 +0200 Subject: [PATCH] tools: update V8 gypfiles for 9.2 Backport-PR-URL: https://github.com/nodejs/node/pull/39470 PR-URL: https://github.com/nodejs/node/pull/38990 Reviewed-By: Jiawen Geng Reviewed-By: Matteo Collina Reviewed-By: Robert Nagy Reviewed-By: Colin Ihrig --- tools/v8_gypfiles/features.gypi | 16 +++++----- tools/v8_gypfiles/v8.gyp | 56 ++++++++++++++++++++++++--------- 2 files changed, 50 insertions(+), 22 deletions(-) diff --git a/tools/v8_gypfiles/features.gypi b/tools/v8_gypfiles/features.gypi index 97676305cffbc5..68da6ef3378904 100644 --- a/tools/v8_gypfiles/features.gypi +++ b/tools/v8_gypfiles/features.gypi @@ -62,6 +62,12 @@ }, { 'is_component_build': 0, }], + ['OS == "win" or OS == "mac"', { + # Sets -DSYSTEM_INSTRUMENTATION. Enables OS-dependent event tracing + 'v8_enable_system_instrumentation': 1, + }, { + 'v8_enable_system_instrumentation': 0, + }], ], 'is_debug%': 0, @@ -160,10 +166,6 @@ # Controls the threshold for on-heap/off-heap Typed Arrays. 'v8_typed_array_max_size_in_heap%': 64, - # Temporary flag to allow embedders to update their microtasks scopes - # while rolling in a new version of V8. - 'v8_check_microtasks_scopes_consistency%': 0, - # Enable mitigations for executing untrusted code. 'v8_untrusted_code_mitigations%': 1, @@ -327,9 +329,6 @@ ['v8_enable_lazy_source_positions==1', { 'defines': ['V8_ENABLE_LAZY_SOURCE_POSITIONS',], }], - ['v8_check_microtasks_scopes_consistency==1', { - 'defines': ['V8_CHECK_MICROTASKS_SCOPES_CONSISTENCY',], - }], ['v8_use_siphash==1', { 'defines': ['V8_USE_SIPHASH',], }], @@ -360,6 +359,9 @@ ['v8_enable_precise_zone_stats==1', { 'defines': ['V8_ENABLE_PRECISE_ZONE_STATS',], }], + ['v8_enable_system_instrumentation==1', { + 'defines': ['V8_ENABLE_SYSTEM_INSTRUMENTATION',], + }], ['v8_enable_webassembly==1', { 'defines': ['V8_ENABLE_WEBASSEMBLY',], }], diff --git a/tools/v8_gypfiles/v8.gyp b/tools/v8_gypfiles/v8.gyp index 3853a007b37bb1..18945be9313b6f 100644 --- a/tools/v8_gypfiles/v8.gyp +++ b/tools/v8_gypfiles/v8.gyp @@ -671,6 +671,11 @@ '