From 80e8aec4a5884adbc3bbf38ccde9674ac58ba326 Mon Sep 17 00:00:00 2001 From: Ujjwal Sharma Date: Sun, 5 Jul 2020 02:15:43 +0530 Subject: [PATCH] tools: update V8 gypfiles for 8.6 PR-URL: https://github.com/nodejs/node/pull/35415 Reviewed-By: Rich Trott Reviewed-By: Jiawen Geng Reviewed-By: Daniel Bevenius Reviewed-By: Matteo Collina Reviewed-By: Myles Borins --- tools/v8_gypfiles/features.gypi | 23 ++++++++-------- tools/v8_gypfiles/inspector.gypi | 4 ++- tools/v8_gypfiles/v8.gyp | 46 ++++++++++++++++++-------------- 3 files changed, 41 insertions(+), 32 deletions(-) diff --git a/tools/v8_gypfiles/features.gypi b/tools/v8_gypfiles/features.gypi index 0b518a2f851ce9..03ad2f90439485 100644 --- a/tools/v8_gypfiles/features.gypi +++ b/tools/v8_gypfiles/features.gypi @@ -149,9 +149,6 @@ # Sets -dV8_CONCURRENT_MARKING 'v8_enable_concurrent_marking%': 1, - # Sets -dV8_ARRAY_BUFFER_EXTENSION - 'v8_enable_array_buffer_extension%': 1, - # Enables various testing features. 'v8_enable_test_features%': 0, @@ -215,9 +212,13 @@ # for ARM64. 'v8_control_flow_integrity%': 0, - # Experimental support for native context independent code. - # https://crbug.com/v8/8888 - 'v8_enable_nci_code%': 0, + # Enable V8 zone compression experimental feature. + # Sets -DV8_COMPRESS_ZONES. + 'v8_enable_zone_compression%': 0, + + # Experimental feature for collecting per-class zone memory stats. + # Requires use_rtti = true + 'v8_enable_precise_zone_stats%': 0, # Variables from v8.gni @@ -258,6 +259,9 @@ ['v8_enable_pointer_compression==1 or v8_enable_31bit_smis_on_64bit_arch==1', { 'defines': ['V8_31BIT_SMIS_ON_64BIT_ARCH',], }], + ['v8_enable_zone_compression==1', { + 'defines': ['V8_COMPRESS_ZONES',], + }], ['v8_enable_object_print==1', { 'defines': ['OBJECT_PRINT',], }], @@ -321,9 +325,6 @@ ['v8_enable_concurrent_marking==1', { 'defines': ['V8_CONCURRENT_MARKING',], }], - ['v8_enable_array_buffer_extension==1', { - 'defines': ['V8_ARRAY_BUFFER_EXTENSION',], - }], ['v8_enable_lazy_source_positions==1', { 'defines': ['V8_ENABLE_LAZY_SOURCE_POSITIONS',], }], @@ -357,8 +358,8 @@ ['v8_control_flow_integrity==1', { 'defines': ['V8_ENABLE_CONTROL_FLOW_INTEGRITY',], }], - ['v8_enable_nci_code==1', { - 'defines': ['V8_ENABLE_NCI_CODE',], + ['v8_enable_precise_zone_stats==1', { + 'defines': ['V8_ENABLE_PRECISE_ZONE_STATS',], }], ], # conditions 'defines': [ diff --git a/tools/v8_gypfiles/inspector.gypi b/tools/v8_gypfiles/inspector.gypi index 27e2014132a671..75a876ff763814 100644 --- a/tools/v8_gypfiles/inspector.gypi +++ b/tools/v8_gypfiles/inspector.gypi @@ -110,10 +110,12 @@ '<(inspector_protocol_path)/crdtp/error_support.h', '<(inspector_protocol_path)/crdtp/export.h', '<(inspector_protocol_path)/crdtp/find_by_first.h', - '<(inspector_protocol_path)/crdtp/glue.h', '<(inspector_protocol_path)/crdtp/json.cc', '<(inspector_protocol_path)/crdtp/json.h', + '<(inspector_protocol_path)/crdtp/maybe.h', '<(inspector_protocol_path)/crdtp/parser_handler.h', + '<(inspector_protocol_path)/crdtp/protocol_core.cc', + '<(inspector_protocol_path)/crdtp/protocol_core.h', '<(inspector_protocol_path)/crdtp/serializable.cc', '<(inspector_protocol_path)/crdtp/serializable.h', '<(inspector_protocol_path)/crdtp/serializer_traits.h', diff --git a/tools/v8_gypfiles/v8.gyp b/tools/v8_gypfiles/v8.gyp index 2fceb15e5c0a1c..6d7df06f735460 100644 --- a/tools/v8_gypfiles/v8.gyp +++ b/tools/v8_gypfiles/v8.gyp @@ -41,6 +41,7 @@ "<(V8_ROOT)/src/builtins/builtins-string.tq", "<(V8_ROOT)/src/builtins/cast.tq", "<(V8_ROOT)/src/builtins/collections.tq", + "<(V8_ROOT)/src/builtins/constructor.tq", "<(V8_ROOT)/src/builtins/conversion.tq", "<(V8_ROOT)/src/builtins/convert.tq", "<(V8_ROOT)/src/builtins/console.tq", @@ -125,6 +126,7 @@ "<(V8_ROOT)/src/builtins/typed-array-values.tq", "<(V8_ROOT)/src/builtins/typed-array.tq", "<(V8_ROOT)/src/builtins/wasm.tq", + "<(V8_ROOT)/src/builtins/weak-ref.tq", "<(V8_ROOT)/src/ic/handler-configuration.tq", "<(V8_ROOT)/src/objects/allocation-site.tq", "<(V8_ROOT)/src/objects/api-callbacks.tq", @@ -616,6 +618,7 @@ ], 'direct_dependent_settings': { 'sources': [ + '<(V8_ROOT)/include/v8-cppgc.h', '<(V8_ROOT)/include/v8-fast-api-calls.h', '<(V8_ROOT)/include/v8-internal.h', '<(V8_ROOT)/include/v8.h', @@ -1668,63 +1671,66 @@ 'dependencies': ['run_torque'], 'variables': { 'heapobject_files': [ - '<(V8_ROOT)/src/objects/objects.h', - '<(V8_ROOT)/src/objects/objects-inl.h', - '<(V8_ROOT)/src/objects/allocation-site-inl.h', + '<(torque_output_root)/torque-generated/instance-types-tq.h', '<(V8_ROOT)/src/objects/allocation-site.h', - '<(V8_ROOT)/src/objects/cell-inl.h', + '<(V8_ROOT)/src/objects/allocation-site-inl.h', '<(V8_ROOT)/src/objects/cell.h', - '<(V8_ROOT)/src/objects/code-inl.h', + '<(V8_ROOT)/src/objects/cell-inl.h', '<(V8_ROOT)/src/objects/code.h', + '<(V8_ROOT)/src/objects/code-inl.h', '<(V8_ROOT)/src/objects/data-handler.h', '<(V8_ROOT)/src/objects/data-handler-inl.h', '<(V8_ROOT)/src/objects/descriptor-array.h', '<(V8_ROOT)/src/objects/descriptor-array-inl.h', '<(V8_ROOT)/src/objects/feedback-cell.h', '<(V8_ROOT)/src/objects/feedback-cell-inl.h', - '<(V8_ROOT)/src/objects/fixed-array-inl.h', '<(V8_ROOT)/src/objects/fixed-array.h', - '<(V8_ROOT)/src/objects/heap-number-inl.h', + '<(V8_ROOT)/src/objects/fixed-array-inl.h', '<(V8_ROOT)/src/objects/heap-number.h', - '<(V8_ROOT)/src/objects/heap-object-inl.h', + '<(V8_ROOT)/src/objects/heap-number-inl.h', '<(V8_ROOT)/src/objects/heap-object.h', + '<(V8_ROOT)/src/objects/heap-object-inl.h', '<(V8_ROOT)/src/objects/instance-type.h', - '<(V8_ROOT)/src/objects/js-array-inl.h', - '<(V8_ROOT)/src/objects/js-array.h', - '<(V8_ROOT)/src/objects/js-array-buffer-inl.h', '<(V8_ROOT)/src/objects/js-array-buffer.h', - '<(V8_ROOT)/src/objects/js-objects-inl.h', + '<(V8_ROOT)/src/objects/js-array-buffer-inl.h', + '<(V8_ROOT)/src/objects/js-array.h', + '<(V8_ROOT)/src/objects/js-array-inl.h', + '<(V8_ROOT)/src/objects/js-function.cc', + '<(V8_ROOT)/src/objects/js-function.h', + '<(V8_ROOT)/src/objects/js-objects.cc', '<(V8_ROOT)/src/objects/js-objects.h', - '<(V8_ROOT)/src/objects/js-promise-inl.h', + '<(V8_ROOT)/src/objects/js-objects-inl.h', '<(V8_ROOT)/src/objects/js-promise.h', - '<(V8_ROOT)/src/objects/js-regexp-inl.h', + '<(V8_ROOT)/src/objects/js-promise-inl.h', '<(V8_ROOT)/src/objects/js-regexp.cc', '<(V8_ROOT)/src/objects/js-regexp.h', - '<(V8_ROOT)/src/objects/js-regexp-string-iterator-inl.h', + '<(V8_ROOT)/src/objects/js-regexp-inl.h', '<(V8_ROOT)/src/objects/js-regexp-string-iterator.h', - '<(V8_ROOT)/src/objects/map.h', + '<(V8_ROOT)/src/objects/js-regexp-string-iterator-inl.h', '<(V8_ROOT)/src/objects/map.cc', + '<(V8_ROOT)/src/objects/map.h', '<(V8_ROOT)/src/objects/map-inl.h', - '<(V8_ROOT)/src/objects/js-objects.cc', '<(V8_ROOT)/src/objects/name.h', '<(V8_ROOT)/src/objects/name-inl.h', - '<(V8_ROOT)/src/objects/oddball-inl.h', + '<(V8_ROOT)/src/objects/objects.h', + '<(V8_ROOT)/src/objects/objects-inl.h', '<(V8_ROOT)/src/objects/oddball.h', + '<(V8_ROOT)/src/objects/oddball-inl.h', '<(V8_ROOT)/src/objects/primitive-heap-object.h', '<(V8_ROOT)/src/objects/primitive-heap-object-inl.h', '<(V8_ROOT)/src/objects/scope-info.h', '<(V8_ROOT)/src/objects/script.h', '<(V8_ROOT)/src/objects/script-inl.h', + '<(V8_ROOT)/src/objects/shared-function-info.cc', '<(V8_ROOT)/src/objects/shared-function-info.h', '<(V8_ROOT)/src/objects/shared-function-info-inl.h', '<(V8_ROOT)/src/objects/string.cc', - '<(V8_ROOT)/src/objects/string.h', '<(V8_ROOT)/src/objects/string-comparator.cc', '<(V8_ROOT)/src/objects/string-comparator.h', + '<(V8_ROOT)/src/objects/string.h', '<(V8_ROOT)/src/objects/string-inl.h', '<(V8_ROOT)/src/objects/struct.h', '<(V8_ROOT)/src/objects/struct-inl.h', - '<(torque_output_root)/torque-generated/instance-types-tq.h', ], }, 'actions': [