From a9d13f99f3d62253df2ed1bb0581679bced3ac3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Wed, 10 Oct 2018 18:29:25 +0200 Subject: [PATCH] deps: sync V8 gypfiles with 7.2 Co-authored-by: Ujjwal Sharma win: add v8_init to dependencies Fixes: https://github.com/nodejs/node-v8/issues/89 Co-authored-by: Bartosz Sosnowski --- common.gypi | 3 + deps/v8/gypfiles/d8.gyp | 2 + deps/v8/gypfiles/features.gypi | 29 +++- deps/v8/gypfiles/inspector.gypi | 33 +--- deps/v8/gypfiles/v8.gyp | 296 ++++++++++++++++++-------------- 5 files changed, 205 insertions(+), 158 deletions(-) diff --git a/common.gypi b/common.gypi index 3b99d4a36e91d4..c16db57a5e7438 100644 --- a/common.gypi +++ b/common.gypi @@ -71,6 +71,9 @@ # Still WIP in V8 7.1 'v8_enable_pointer_compression': 'false', + # Explicitly set to false to copy V8's default + 'v8_enable_31bit_smis_on_64bit_arch': 'false', + # New in V8 7.1 'v8_enable_embedded_builtins': 'true', diff --git a/deps/v8/gypfiles/d8.gyp b/deps/v8/gypfiles/d8.gyp index 34a4a6afee2b0d..aa1a631d23fcf1 100644 --- a/deps/v8/gypfiles/d8.gyp +++ b/deps/v8/gypfiles/d8.gyp @@ -31,6 +31,8 @@ '../src/async-hooks-wrapper.h', '../src/d8-console.cc', '../src/d8-console.h', + '../src/d8-platforms.cc', + '../src/d8-platforms.h', '../src/d8.cc', '../src/d8.h', ], diff --git a/deps/v8/gypfiles/features.gypi b/deps/v8/gypfiles/features.gypi index 28ae99dac810b1..48e51a76e2121b 100644 --- a/deps/v8/gypfiles/features.gypi +++ b/deps/v8/gypfiles/features.gypi @@ -51,10 +51,21 @@ 'v8_enable_gdbjit%': 0, + # Build-time flag for enabling nojit mode. + # TODO(v8:7777): Remove the build-time flag once the --jitless runtime flag + # does everything we need. + 'v8_enable_jitless_mode%': 0, + + # Enable code-generation-time checking of types in the CodeStubAssembler. 'v8_enable_verify_csa%': 0, 'v8_object_print%': 0, + # Lite mode disables a number of performance optimizations to reduce memory + # at the cost of performance. + # Sets --DV8_LITE_MODE. + 'v8_enable_lite_mode%': 0, + 'v8_enable_verify_heap%': 0, 'v8_trace_maps%': 0, @@ -111,17 +122,17 @@ 'v8_enable_pointer_compression%': 'false', - 'v8_enable_embedded_builtins%': 'true', + 'v8_enable_31bit_smis_on_64bit_arch%': 'false', - 'v8_perf_prof_unwinding_info%': 0, + 'v8_enable_embedded_builtins%': 'true', 'v8_enable_fast_mksnapshot%': 0, }, 'conditions': [ # V8's predicate inverted since we default to 'true' and set 'false' for unsupported cases. - # v8_use_snapshot && v8_current_cpu != "x86" && !is_aix && ( !is_win || is_clang) - ['not (v8_use_snapshot=="true" and v8_target_arch !="ia32" and OS!="aix" and (OS!="win" or clang==1))', { + # !is_aix + ['not (OS!="aix")', { 'variables': { 'v8_enable_embedded_builtins': 'false', } @@ -138,6 +149,9 @@ ['v8_promise_internal_field_count!=0', { 'defines': ['V8_PROMISE_INTERNAL_FIELD_COUNT=<(v8_promise_internal_field_count)'], }], + ['v8_enable_lite_mode==1', { + 'defines': ['V8_LITE_MODE',], + }], ['v8_enable_gdbjit==1', { 'defines': ['ENABLE_GDB_JIT_INTERFACE',], }], @@ -200,12 +214,17 @@ ['v8_enable_pointer_compression=="true"', { 'defines': ['V8_COMPRESS_POINTERS',], }], + ['v8_enable_31bit_smis_on_64bit_arch=="true"', { + 'defines': ['V8_31BIT_SMIS_ON_64BIT_ARCH',], + }], ['v8_enable_embedded_builtins=="true"', { 'defines': [ 'V8_EMBEDDED_BUILTINS', - 'V8_EMBEDDED_BYTECODE_HANDLERS', ], }], + ['v8_enable_jitless_mode==1', { + 'defines': ['V8_JITLESS_MODE',], + }], ], # conditions 'defines': [ 'V8_GYP_BUILD', diff --git a/deps/v8/gypfiles/inspector.gypi b/deps/v8/gypfiles/inspector.gypi index be42ea8b783ff8..840c092efe3976 100644 --- a/deps/v8/gypfiles/inspector.gypi +++ b/deps/v8/gypfiles/inspector.gypi @@ -28,12 +28,11 @@ '<(SHARED_INTERMEDIATE_DIR)/include/inspector/Schema.h', ], - 'inspector_injected_script_source': '../src/inspector/injected-script-source.js', - 'inspector_generated_injected_script': '<(SHARED_INTERMEDIATE_DIR)/src/inspector/injected-script-source.h', - 'inspector_all_sources': [ '../include/v8-inspector.h', '../include/v8-inspector-protocol.h', + '../src/inspector/custom-preview.cc', + '../src/inspector/custom-preview.h', '../src/inspector/injected-script.cc', '../src/inspector/injected-script.h', '../src/inspector/inspected-context.cc', @@ -60,18 +59,12 @@ '../src/inspector/v8-debugger-agent-impl.h', '../src/inspector/v8-debugger-script.cc', '../src/inspector/v8-debugger-script.h', - '../src/inspector/v8-function-call.cc', - '../src/inspector/v8-function-call.h', '../src/inspector/v8-heap-profiler-agent-impl.cc', '../src/inspector/v8-heap-profiler-agent-impl.h', - '../src/inspector/v8-injected-script-host.cc', - '../src/inspector/v8-injected-script-host.h', '../src/inspector/v8-inspector-impl.cc', '../src/inspector/v8-inspector-impl.h', '../src/inspector/v8-inspector-session-impl.cc', '../src/inspector/v8-inspector-session-impl.h', - '../src/inspector/v8-internal-value-type.cc', - '../src/inspector/v8-internal-value-type.h', '../src/inspector/v8-profiler-agent-impl.cc', '../src/inspector/v8-profiler-agent-impl.h', '../src/inspector/v8-regex.cc', @@ -84,6 +77,8 @@ '../src/inspector/v8-stack-trace-impl.h', '../src/inspector/v8-value-utils.cc', '../src/inspector/v8-value-utils.h', + '../src/inspector/value-mirror.cc', + '../src/inspector/value-mirror.h', '../src/inspector/wasm-translation.cc', '../src/inspector/wasm-translation.h', ] @@ -102,7 +97,7 @@ ], 'action': [ 'python', - '<(protocol_path)/CheckProtocolCompatibility.py', + '<(protocol_path)/check_protocol_compatibility.py', '--stamp', '<@(_outputs)', '<(inspector_path)/js_protocol.json', ], @@ -128,23 +123,5 @@ ], 'message': 'Generating inspector protocol sources from protocol json', }, - { - 'action_name': 'convert_js_to_cpp_char_array', - 'inputs': [ - '<(inspector_path)/build/xxd.py', - '<(inspector_injected_script_source)', - ], - 'outputs': [ - '<(inspector_generated_injected_script)', - ], - 'process_outputs_as_sources': 1, - 'action': [ - 'python', - '<(inspector_path)/build/xxd.py', - 'InjectedScriptSource_js', - '<(inspector_path)/injected-script-source.js', - '<@(_outputs)' - ], - }, ], } diff --git a/deps/v8/gypfiles/v8.gyp b/deps/v8/gypfiles/v8.gyp index 7acd2ac9413dec..df4f4ca542552c 100644 --- a/deps/v8/gypfiles/v8.gyp +++ b/deps/v8/gypfiles/v8.gyp @@ -18,25 +18,36 @@ "../src/builtins/array.tq", "../src/builtins/array-copywithin.tq", "../src/builtins/array-foreach.tq", + "../src/builtins/array-join.tq", "../src/builtins/array-lastindexof.tq", + "../src/builtins/array-of.tq", "../src/builtins/array-reverse.tq", + "../src/builtins/array-slice.tq", "../src/builtins/array-splice.tq", "../src/builtins/array-unshift.tq", + "../src/builtins/collections.tq", "../src/builtins/typed-array.tq", "../src/builtins/data-view.tq", + "../src/builtins/object.tq", + "../src/builtins/object-fromentries.tq", + "../src/builtins/iterator.tq", + "../src/builtins/typed-array.tq", "../third_party/v8/builtins/array-sort.tq", ], - 'torque_modules': [ + 'torque_namespaces': [ "base", "array", + "collections", + "iterator", + "object", "typed-array", "data-view", ], # Since there is no foreach in GYP we manualy unroll the following: - # foreach(module, torque_modules) { + # foreach(namespace, torque_namespaces) { # outputs += [ - # "$target_gen_dir/torque-generated/builtins-$module-from-dsl-gen.cc", - # "$target_gen_dir/torque-generated/builtins-$module-from-dsl-gen.h", + # "$target_gen_dir/torque-generated/builtins-$namespace-from-dsl-gen.cc", + # "$target_gen_dir/torque-generated/builtins-$namespace-from-dsl-gen.h", # ] # } 'torque_outputs': [ @@ -44,6 +55,12 @@ '<(SHARED_INTERMEDIATE_DIR)/torque-generated/builtins-base-from-dsl-gen.h', '<(SHARED_INTERMEDIATE_DIR)/torque-generated/builtins-array-from-dsl-gen.cc', '<(SHARED_INTERMEDIATE_DIR)/torque-generated/builtins-array-from-dsl-gen.h', + '<(SHARED_INTERMEDIATE_DIR)/torque-generated/builtins-collections-from-dsl-gen.cc', + '<(SHARED_INTERMEDIATE_DIR)/torque-generated/builtins-collections-from-dsl-gen.h', + '<(SHARED_INTERMEDIATE_DIR)/torque-generated/builtins-iterator-from-dsl-gen.cc', + '<(SHARED_INTERMEDIATE_DIR)/torque-generated/builtins-iterator-from-dsl-gen.h', + '<(SHARED_INTERMEDIATE_DIR)/torque-generated/builtins-object-from-dsl-gen.cc', + '<(SHARED_INTERMEDIATE_DIR)/torque-generated/builtins-object-from-dsl-gen.h', '<(SHARED_INTERMEDIATE_DIR)/torque-generated/builtins-typed-array-from-dsl-gen.cc', '<(SHARED_INTERMEDIATE_DIR)/torque-generated/builtins-typed-array-from-dsl-gen.h', '<(SHARED_INTERMEDIATE_DIR)/torque-generated/builtins-data-view-from-dsl-gen.cc', @@ -131,6 +148,10 @@ 'v8_target_cpu=<(v8_target_arch)', 'v8_use_snapshot=<(v8_use_snapshot)', 'v8_use_siphash=<(v8_use_siphash)', + 'v8_enable_embedded_builtins=<(v8_enable_embedded_builtins)', + 'v8_enable_jitless_mode=<(v8_enable_jitless_mode)', + 'v8_enable_verify_csa=<(v8_enable_verify_csa)', + 'v8_enable_lite_mode=<(v8_enable_lite_mode)', ] }, 'conditions': [ @@ -166,7 +187,7 @@ # The dependency on v8_base should come from a transitive # dependency however the Android toolchain requires libv8_base.a # to appear before libv8_snapshot.a so it's listed explicitly. - 'dependencies': ['v8_base', 'v8_snapshot'], + 'dependencies': ['v8_base', 'v8_init', 'v8_snapshot'], }], ['v8_use_snapshot=="true" and v8_use_external_startup_data==1 and want_separate_host_toolset==0', { 'dependencies': ['v8_base', 'v8_external_snapshot'], @@ -266,6 +287,7 @@ '../src/builtins/builtins-lazy-gen.h', '../src/builtins/builtins-math-gen.cc', '../src/builtins/builtins-math-gen.h', + '../src/builtins/builtins-microtask-queue-gen.cc', '../src/builtins/builtins-number-gen.cc', '../src/builtins/builtins-object-gen.cc', '../src/builtins/builtins-promise-gen.cc', @@ -286,6 +308,8 @@ '../src/builtins/growable-fixed-array-gen.cc', '../src/builtins/growable-fixed-array-gen.h', '../src/builtins/setup-builtins-internal.cc', + '../src/code-stub-assembler.cc', + '../src/code-stub-assembler.h', '../src/heap/setup-heap-internal.cc', '../src/ic/accessor-assembler.cc', '../src/ic/accessor-assembler.h', @@ -434,11 +458,11 @@ 'conditions': [ ['v8_enable_embedded_builtins == "true"', { # In this case we use `embedded_variant "Default"` - # and `suffix = ''` for the template `embedded${suffix}.cc`. - 'outputs': [ '<(INTERMEDIATE_DIR)/embedded.cc' ], + # and `suffix = ''` for the template `embedded${suffix}.S`. + 'outputs': [ '<(INTERMEDIATE_DIR)/embedded.S' ], 'variables': { 'mksnapshot_flags': [ - '--embedded_src', '<(INTERMEDIATE_DIR)/embedded.cc', + '--embedded_src', '<(INTERMEDIATE_DIR)/embedded.S', '--embedded_variant', 'Default', ], }, @@ -560,6 +584,8 @@ '../include//v8-value-serializer-version.h', '../include//v8-version-string.h', '../include//v8-version.h', + '../include//v8-wasm-trap-handler-posix.h', + '../include//v8-wasm-trap-handler-win.h', '../include//v8.h', '../include//v8config.h', '../src/accessors.cc', @@ -590,8 +616,6 @@ '../src/asmjs/asm-scanner.h', '../src/asmjs/asm-types.cc', '../src/asmjs/asm-types.h', - '../src/asmjs/switch-logic.cc', - '../src/asmjs/switch-logic.h', '../src/assembler-arch-inl.h', '../src/assembler-arch.h', '../src/assembler-inl.h', @@ -607,17 +631,12 @@ '../src/ast/ast-value-factory.h', '../src/ast/ast.cc', '../src/ast/ast.h', - '../src/ast/context-slot-cache.cc', - '../src/ast/context-slot-cache.h', '../src/ast/modules.cc', '../src/ast/modules.h', '../src/ast/prettyprinter.cc', '../src/ast/prettyprinter.h', - '../src/ast/scopes-inl.h', '../src/ast/scopes.cc', '../src/ast/scopes.h', - '../src/ast/source-range-ast-visitor.cc', - '../src/ast/source-range-ast-visitor.h', '../src/ast/variables.cc', '../src/ast/variables.h', '../src/bailout-reason.cc', @@ -667,6 +686,7 @@ '../src/builtins/builtins-typed-array.cc', '../src/builtins/builtins-utils-inl.h', '../src/builtins/builtins-utils.h', + '../src/builtins/builtins-weak-refs.cc', '../src/builtins/builtins.cc', '../src/builtins/builtins.h', '../src/builtins/constants-table-builder.cc', @@ -685,8 +705,6 @@ '../src/code-factory.h', '../src/code-reference.cc', '../src/code-reference.h', - '../src/code-stub-assembler.cc', - '../src/code-stub-assembler.h', '../src/code-stubs-utils.h', '../src/code-stubs.cc', '../src/code-stubs.h', @@ -698,16 +716,10 @@ '../src/compilation-cache.h', '../src/compilation-statistics.cc', '../src/compilation-statistics.h', - '../src/compiler-dispatcher/compiler-dispatcher-job.cc', - '../src/compiler-dispatcher/compiler-dispatcher-job.h', - '../src/compiler-dispatcher/compiler-dispatcher-tracer.cc', - '../src/compiler-dispatcher/compiler-dispatcher-tracer.h', '../src/compiler-dispatcher/compiler-dispatcher.cc', '../src/compiler-dispatcher/compiler-dispatcher.h', '../src/compiler-dispatcher/optimizing-compile-dispatcher.cc', '../src/compiler-dispatcher/optimizing-compile-dispatcher.h', - '../src/compiler-dispatcher/unoptimized-compile-job.cc', - '../src/compiler-dispatcher/unoptimized-compile-job.h', '../src/compiler.cc', '../src/compiler.h', '../src/compiler/access-builder.cc', @@ -716,7 +728,34 @@ '../src/compiler/access-info.h', '../src/compiler/all-nodes.cc', '../src/compiler/all-nodes.h', + '../src/compiler/allocation-builder-inl.h', '../src/compiler/allocation-builder.h', + '../src/compiler/backend/code-generator-impl.h', + '../src/compiler/backend/code-generator.cc', + '../src/compiler/backend/code-generator.h', + '../src/compiler/backend/frame-elider.cc', + '../src/compiler/backend/frame-elider.h', + '../src/compiler/backend/gap-resolver.cc', + '../src/compiler/backend/gap-resolver.h', + '../src/compiler/backend/instruction-codes.h', + '../src/compiler/backend/instruction-scheduler.cc', + '../src/compiler/backend/instruction-scheduler.h', + '../src/compiler/backend/instruction-selector-impl.h', + '../src/compiler/backend/instruction-selector.cc', + '../src/compiler/backend/instruction-selector.h', + '../src/compiler/backend/instruction.cc', + '../src/compiler/backend/instruction.h', + '../src/compiler/backend/jump-threading.cc', + '../src/compiler/backend/jump-threading.h', + '../src/compiler/backend/live-range-separator.cc', + '../src/compiler/backend/live-range-separator.h', + '../src/compiler/backend/move-optimizer.cc', + '../src/compiler/backend/move-optimizer.h', + '../src/compiler/backend/register-allocator-verifier.cc', + '../src/compiler/backend/register-allocator-verifier.h', + '../src/compiler/backend/register-allocator.cc', + '../src/compiler/backend/register-allocator.h', + '../src/compiler/backend/unwinding-info-writer.h', '../src/compiler/basic-block-instrumentor.cc', '../src/compiler/basic-block-instrumentor.h', '../src/compiler/branch-elimination.cc', @@ -732,9 +771,6 @@ '../src/compiler/checkpoint-elimination.h', '../src/compiler/code-assembler.cc', '../src/compiler/code-assembler.h', - '../src/compiler/code-generator-impl.h', - '../src/compiler/code-generator.cc', - '../src/compiler/code-generator.h', '../src/compiler/common-node-cache.cc', '../src/compiler/common-node-cache.h', '../src/compiler/common-operator-reducer.cc', @@ -760,15 +796,11 @@ '../src/compiler/escape-analysis-reducer.h', '../src/compiler/escape-analysis.cc', '../src/compiler/escape-analysis.h', - '../src/compiler/frame-elider.cc', - '../src/compiler/frame-elider.h', '../src/compiler/frame-states.cc', '../src/compiler/frame-states.h', '../src/compiler/frame.cc', '../src/compiler/frame.h', '../src/compiler/functional-list.h', - '../src/compiler/gap-resolver.cc', - '../src/compiler/gap-resolver.h', '../src/compiler/graph-assembler.cc', '../src/compiler/graph-assembler.h', '../src/compiler/graph-reducer.cc', @@ -779,14 +811,6 @@ '../src/compiler/graph-visualizer.h', '../src/compiler/graph.cc', '../src/compiler/graph.h', - '../src/compiler/instruction-codes.h', - '../src/compiler/instruction-scheduler.cc', - '../src/compiler/instruction-scheduler.h', - '../src/compiler/instruction-selector-impl.h', - '../src/compiler/instruction-selector.cc', - '../src/compiler/instruction-selector.h', - '../src/compiler/instruction.cc', - '../src/compiler/instruction.h', '../src/compiler/int64-lowering.cc', '../src/compiler/int64-lowering.h', '../src/compiler/js-call-reducer.cc', @@ -817,12 +841,8 @@ '../src/compiler/js-type-hint-lowering.h', '../src/compiler/js-typed-lowering.cc', '../src/compiler/js-typed-lowering.h', - '../src/compiler/jump-threading.cc', - '../src/compiler/jump-threading.h', '../src/compiler/linkage.cc', '../src/compiler/linkage.h', - '../src/compiler/live-range-separator.cc', - '../src/compiler/live-range-separator.h', '../src/compiler/load-elimination.cc', '../src/compiler/load-elimination.h', '../src/compiler/loop-analysis.cc', @@ -841,8 +861,6 @@ '../src/compiler/machine-operator.h', '../src/compiler/memory-optimizer.cc', '../src/compiler/memory-optimizer.h', - '../src/compiler/move-optimizer.cc', - '../src/compiler/move-optimizer.h', '../src/compiler/node-aux-data.h', '../src/compiler/node-cache.cc', '../src/compiler/node-cache.h', @@ -880,10 +898,6 @@ '../src/compiler/redundancy-elimination.h', '../src/compiler/refs-map.cc', '../src/compiler/refs-map.h', - '../src/compiler/register-allocator-verifier.cc', - '../src/compiler/register-allocator-verifier.h', - '../src/compiler/register-allocator.cc', - '../src/compiler/register-allocator.h', '../src/compiler/representation-change.cc', '../src/compiler/representation-change.h', '../src/compiler/schedule.cc', @@ -914,7 +928,6 @@ '../src/compiler/typer.h', '../src/compiler/types.cc', '../src/compiler/types.h', - '../src/compiler/unwinding-info-writer.h', '../src/compiler/value-numbering-reducer.cc', '../src/compiler/value-numbering-reducer.h', '../src/compiler/verifier.cc', @@ -923,6 +936,9 @@ '../src/compiler/wasm-compiler.h', '../src/compiler/zone-stats.cc', '../src/compiler/zone-stats.h', + '../src/constant-pool.cc', + '../src/constant-pool.h', + '../src/constants-arch.h', '../src/contexts-inl.h', '../src/contexts.cc', '../src/contexts.h', @@ -944,6 +960,8 @@ '../src/debug/debug-frames.cc', '../src/debug/debug-frames.h', '../src/debug/debug-interface.h', + '../src/debug/debug-property-iterator.cc', + '../src/debug/debug-property-iterator.h', '../src/debug/debug-scope-iterator.cc', '../src/debug/debug-scope-iterator.h', '../src/debug/debug-scopes.cc', @@ -961,6 +979,7 @@ '../src/deoptimize-reason.h', '../src/deoptimizer.cc', '../src/deoptimizer.h', + '../src/detachable-vector.cc', '../src/detachable-vector.h', '../src/disasm.h', '../src/disassembler.cc', @@ -1082,6 +1101,7 @@ '../src/heap/scavenger-inl.h', '../src/heap/scavenger.cc', '../src/heap/scavenger.h', + '../src/heap/slot-set.cc', '../src/heap/slot-set.h', '../src/heap/spaces-inl.h', '../src/heap/spaces.cc', @@ -1112,8 +1132,6 @@ '../src/icu_util.h', '../src/identity-map.cc', '../src/identity-map.h', - '../src/instruction-stream.cc', - '../src/instruction-stream.h', '../src/interface-descriptors.cc', '../src/interface-descriptors.h', '../src/interpreter/block-coverage-builder.h', @@ -1161,8 +1179,9 @@ '../src/interpreter/interpreter-intrinsics.h', '../src/interpreter/interpreter.cc', '../src/interpreter/interpreter.h', - '../src/intl.cc', - '../src/intl.h', + '../src/isolate-allocator.cc', + '../src/isolate-allocator.h', + '../src/isolate-data.h', '../src/isolate-inl.h', '../src/isolate.cc', '../src/isolate.h', @@ -1200,8 +1219,11 @@ '../src/math-random.h', '../src/maybe-handles-inl.h', '../src/maybe-handles.h', + '../src/message-template.h', '../src/messages.cc', '../src/messages.h', + '../src/microtask-queue.cc', + '../src/microtask-queue.h', '../src/msan.h', '../src/objects-body-descriptors-inl.h', '../src/objects-body-descriptors.h', @@ -1226,13 +1248,21 @@ '../src/objects/debug-objects.h', '../src/objects/descriptor-array.h', '../src/objects/dictionary.h', + '../src/objects/embedder-data-array-inl.h', + '../src/objects/embedder-data-array.cc', + '../src/objects/embedder-data-array.h', + '../src/objects/embedder-data-slot-inl.h', + '../src/objects/embedder-data-slot.h', '../src/objects/fixed-array-inl.h', '../src/objects/fixed-array.h', '../src/objects/frame-array-inl.h', '../src/objects/frame-array.h', '../src/objects/hash-table-inl.h', '../src/objects/hash-table.h', - '../src/objects/intl-objects-inl.h', + '../src/objects/heap-object-inl.h', + '../src/objects/heap-object.h', + '../src/objects/instance-type-inl.h', + '../src/objects/instance-type.h', '../src/objects/intl-objects.cc', '../src/objects/intl-objects.h', '../src/objects/js-array-buffer-inl.h', @@ -1278,9 +1308,14 @@ '../src/objects/js-relative-time-format-inl.h', '../src/objects/js-relative-time-format.cc', '../src/objects/js-relative-time-format.h', + '../src/objects/js-segment-iterator-inl.h', + '../src/objects/js-segment-iterator.cc', + '../src/objects/js-segment-iterator.h', '../src/objects/js-segmenter-inl.h', '../src/objects/js-segmenter.cc', '../src/objects/js-segmenter.h', + '../src/objects/js-weak-refs-inl.h', + '../src/objects/js-weak-refs.h', '../src/objects/literal-objects-inl.h', '../src/objects/literal-objects.cc', '../src/objects/literal-objects.h', @@ -1291,9 +1326,6 @@ '../src/objects/maybe-object-inl.h', '../src/objects/maybe-object.h', '../src/objects/microtask-inl.h', - '../src/objects/microtask-queue-inl.h', - '../src/objects/microtask-queue.cc', - '../src/objects/microtask-queue.h', '../src/objects/microtask.h', '../src/objects/module-inl.h', '../src/objects/module.cc', @@ -1320,6 +1352,9 @@ '../src/objects/script.h', '../src/objects/shared-function-info-inl.h', '../src/objects/shared-function-info.h', + '../src/objects/slots-atomic-inl.h', + '../src/objects/slots-inl.h', + '../src/objects/slots.h', '../src/objects/stack-frame-info-inl.h', '../src/objects/stack-frame-info.h', '../src/objects/string-inl.h', @@ -1333,7 +1368,6 @@ '../src/optimized-compilation-info.h', '../src/ostreams.cc', '../src/ostreams.h', - '../src/parsing/duplicate-finder.h', '../src/parsing/expression-classifier.h', '../src/parsing/expression-scope-reparenter.cc', '../src/parsing/expression-scope-reparenter.h', @@ -1365,6 +1399,7 @@ '../src/pending-compilation-error-handler.h', '../src/perf-jit.cc', '../src/perf-jit.h', + '../src/pointer-with-payload.h', '../src/profiler/allocation-tracker.cc', '../src/profiler/allocation-tracker.h', '../src/profiler/circular-queue-inl.h', @@ -1398,6 +1433,7 @@ '../src/property.cc', '../src/property.h', '../src/prototype.h', + '../src/ptr-compr.h', '../src/regexp/bytecodes-irregexp.h', '../src/regexp/interpreter-irregexp.cc', '../src/regexp/interpreter-irregexp.h', @@ -1461,6 +1497,7 @@ '../src/runtime/runtime-typedarray.cc', '../src/runtime/runtime-utils.h', '../src/runtime/runtime-wasm.cc', + '../src/runtime/runtime-weak-refs.cc', '../src/runtime/runtime.cc', '../src/runtime/runtime.h', '../src/safepoint-table.cc', @@ -1470,23 +1507,14 @@ '../src/simulator-base.cc', '../src/simulator-base.h', '../src/simulator.h', - '../src/snapshot/builtin-deserializer-allocator.cc', - '../src/snapshot/builtin-deserializer-allocator.h', - '../src/snapshot/builtin-deserializer.cc', - '../src/snapshot/builtin-deserializer.h', - '../src/snapshot/builtin-serializer-allocator.cc', - '../src/snapshot/builtin-serializer-allocator.h', - '../src/snapshot/builtin-serializer.cc', - '../src/snapshot/builtin-serializer.h', '../src/snapshot/code-serializer.cc', '../src/snapshot/code-serializer.h', - '../src/snapshot/default-deserializer-allocator.cc', - '../src/snapshot/default-deserializer-allocator.h', - '../src/snapshot/default-serializer-allocator.cc', - '../src/snapshot/default-serializer-allocator.h', + '../src/snapshot/deserializer-allocator.cc', + '../src/snapshot/deserializer-allocator.h', '../src/snapshot/deserializer.cc', '../src/snapshot/deserializer.h', - '../src/snapshot/macros.h', + '../src/snapshot/embedded-data.cc', + '../src/snapshot/embedded-data.h', '../src/snapshot/natives-common.cc', '../src/snapshot/natives.h', '../src/snapshot/object-deserializer.cc', @@ -1495,7 +1523,15 @@ '../src/snapshot/partial-deserializer.h', '../src/snapshot/partial-serializer.cc', '../src/snapshot/partial-serializer.h', + '../src/snapshot/read-only-deserializer.cc', + '../src/snapshot/read-only-deserializer.h', + '../src/snapshot/read-only-serializer.cc', + '../src/snapshot/read-only-serializer.h', '../src/snapshot/references.h', + '../src/snapshot/roots-serializer.cc', + '../src/snapshot/roots-serializer.h', + '../src/snapshot/serializer-allocator.cc', + '../src/snapshot/serializer-allocator.h', '../src/snapshot/serializer-common.cc', '../src/snapshot/serializer-common.h', '../src/snapshot/serializer.cc', @@ -1529,10 +1565,13 @@ '../src/string-stream.h', '../src/strtod.cc', '../src/strtod.h', + '../src/task-utils.cc', + '../src/task-utils.h', '../src/third_party/siphash/halfsiphash.cc', '../src/third_party/siphash/halfsiphash.h', '../src/third_party/utf8-decoder/utf8-decoder.h', - '../src/torque-assembler.h', + '../src/thread-id.cc', + '../src/thread-id.h', '../src/tracing/trace-event.cc', '../src/tracing/trace-event.h', '../src/tracing/traced-value.cc', @@ -1551,7 +1590,6 @@ '../src/turbo-assembler.h', '../src/type-hints.cc', '../src/type-hints.h', - '../src/unicode-cache-inl.h', '../src/unicode-cache.h', '../src/unicode-decoder.cc', '../src/unicode-decoder.h', @@ -1560,6 +1598,7 @@ '../src/unicode.h', '../src/unoptimized-compilation-info.cc', '../src/unoptimized-compilation-info.h', + '../src/unwinder.cc', '../src/uri.cc', '../src/uri.h', '../src/utils-inl.h', @@ -1587,12 +1626,15 @@ '../src/wasm/baseline/liftoff-compiler.cc', '../src/wasm/baseline/liftoff-compiler.h', '../src/wasm/baseline/liftoff-register.h', + '../src/wasm/compilation-environment.h', '../src/wasm/decoder.h', '../src/wasm/function-body-decoder-impl.h', '../src/wasm/function-body-decoder.cc', '../src/wasm/function-body-decoder.h', '../src/wasm/function-compiler.cc', '../src/wasm/function-compiler.h', + '../src/wasm/graph-builder-interface.cc', + '../src/wasm/graph-builder-interface.h', '../src/wasm/jump-table-assembler.cc', '../src/wasm/jump-table-assembler.h', '../src/wasm/leb-helper.h', @@ -1621,6 +1663,7 @@ '../src/wasm/wasm-feature-flags.h', '../src/wasm/wasm-features.cc', '../src/wasm/wasm-features.h', + '../src/wasm/wasm-import-wrapper-cache-inl.h', '../src/wasm/wasm-interpreter.cc', '../src/wasm/wasm-interpreter.h', '../src/wasm/wasm-js.cc', @@ -1668,10 +1711,10 @@ }], ['v8_target_arch=="ia32"', { 'sources': [ - '../src/compiler/ia32/code-generator-ia32.cc', - '../src/compiler/ia32/instruction-codes-ia32.h', - '../src/compiler/ia32/instruction-scheduler-ia32.cc', - '../src/compiler/ia32/instruction-selector-ia32.cc', + '../src/compiler/backend/ia32/code-generator-ia32.cc', + '../src/compiler/backend/ia32/instruction-codes-ia32.h', + '../src/compiler/backend/ia32/instruction-scheduler-ia32.cc', + '../src/compiler/backend/ia32/instruction-selector-ia32.cc', '../src/debug/ia32/debug-ia32.cc', '../src/ia32/assembler-ia32-inl.h', '../src/ia32/assembler-ia32.cc', @@ -1697,12 +1740,12 @@ }], ['v8_target_arch=="x64"', { 'sources': [ - '../src/compiler/x64/code-generator-x64.cc', - '../src/compiler/x64/instruction-codes-x64.h', - '../src/compiler/x64/instruction-scheduler-x64.cc', - '../src/compiler/x64/instruction-selector-x64.cc', - '../src/compiler/x64/unwinding-info-writer-x64.cc', - '../src/compiler/x64/unwinding-info-writer-x64.h', + '../src/compiler/backend/x64/code-generator-x64.cc', + '../src/compiler/backend/x64/instruction-codes-x64.h', + '../src/compiler/backend/x64/instruction-scheduler-x64.cc', + '../src/compiler/backend/x64/instruction-selector-x64.cc', + '../src/compiler/backend/x64/unwinding-info-writer-x64.cc', + '../src/compiler/backend/x64/unwinding-info-writer-x64.h', '../src/debug/x64/debug-x64.cc', '../src/regexp/x64/regexp-macro-assembler-x64.cc', '../src/regexp/x64/regexp-macro-assembler-x64.h', @@ -1728,14 +1771,17 @@ '../src/x64/sse-instr.h', ], }], - ['v8_target_arch=="x64" and OS=="linux"', { + ['v8_target_arch=="x64" and (OS=="linux" or OS=="mac")', { 'sources': [ - '../src/trap-handler/handler-inside-linux.cc', - '../src/trap-handler/handler-outside-linux.cc', + '../src/trap-handler/handler-inside-posix.cc', + '../src/trap-handler/handler-inside-posix.h', + '../src/trap-handler/handler-outside-posix.cc', ], }], ['v8_target_arch=="x64" and OS=="win"', { 'sources': [ + '../src/trap-handler/handler-inside-win.cc', + '../src/trap-handler/handler-inside-win.h', '../src/trap-handler/handler-outside-win.cc', ], }], @@ -1760,12 +1806,12 @@ '../src/arm/macro-assembler-arm.h', '../src/arm/simulator-arm.cc', '../src/arm/simulator-arm.h', - '../src/compiler/arm/code-generator-arm.cc', - '../src/compiler/arm/instruction-codes-arm.h', - '../src/compiler/arm/instruction-scheduler-arm.cc', - '../src/compiler/arm/instruction-selector-arm.cc', - '../src/compiler/arm/unwinding-info-writer-arm.cc', - '../src/compiler/arm/unwinding-info-writer-arm.h', + '../src/compiler/backend/arm/code-generator-arm.cc', + '../src/compiler/backend/arm/instruction-codes-arm.h', + '../src/compiler/backend/arm/instruction-scheduler-arm.cc', + '../src/compiler/backend/arm/instruction-selector-arm.cc', + '../src/compiler/backend/arm/unwinding-info-writer-arm.cc', + '../src/compiler/backend/arm/unwinding-info-writer-arm.h', '../src/debug/arm/debug-arm.cc', '../src/regexp/arm/regexp-macro-assembler-arm.cc', '../src/regexp/arm/regexp-macro-assembler-arm.h', @@ -1805,12 +1851,12 @@ '../src/arm64/simulator-logic-arm64.cc', '../src/arm64/utils-arm64.cc', '../src/arm64/utils-arm64.h', - '../src/compiler/arm64/code-generator-arm64.cc', - '../src/compiler/arm64/instruction-codes-arm64.h', - '../src/compiler/arm64/instruction-scheduler-arm64.cc', - '../src/compiler/arm64/instruction-selector-arm64.cc', - '../src/compiler/arm64/unwinding-info-writer-arm64.cc', - '../src/compiler/arm64/unwinding-info-writer-arm64.h', + '../src/compiler/backend/arm64/code-generator-arm64.cc', + '../src/compiler/backend/arm64/instruction-codes-arm64.h', + '../src/compiler/backend/arm64/instruction-scheduler-arm64.cc', + '../src/compiler/backend/arm64/instruction-selector-arm64.cc', + '../src/compiler/backend/arm64/unwinding-info-writer-arm64.cc', + '../src/compiler/backend/arm64/unwinding-info-writer-arm64.h', '../src/debug/arm64/debug-arm64.cc', '../src/regexp/arm64/regexp-macro-assembler-arm64.cc', '../src/regexp/arm64/regexp-macro-assembler-arm64.h', @@ -1819,10 +1865,10 @@ }], ['v8_target_arch=="mips" or v8_target_arch=="mipsel"', { 'sources': [ - '../src/compiler/mips/code-generator-mips.cc', - '../src/compiler/mips/instruction-codes-mips.h', - '../src/compiler/mips/instruction-scheduler-mips.cc', - '../src/compiler/mips/instruction-selector-mips.cc', + '../src/compiler/backend/mips/code-generator-mips.cc', + '../src/compiler/backend/mips/instruction-codes-mips.h', + '../src/compiler/backend/mips/instruction-scheduler-mips.cc', + '../src/compiler/backend/mips/instruction-selector-mips.cc', '../src/debug/mips/debug-mips.cc', '../src/mips/assembler-mips-inl.h', '../src/mips/assembler-mips.cc', @@ -1849,10 +1895,10 @@ }], ['v8_target_arch=="mips64" or v8_target_arch=="mips64el"', { 'sources': [ - '../src/compiler/mips64/code-generator-mips64.cc', - '../src/compiler/mips64/instruction-codes-mips64.h', - '../src/compiler/mips64/instruction-scheduler-mips64.cc', - '../src/compiler/mips64/instruction-selector-mips64.cc', + '../src/compiler/backend/mips64/code-generator-mips64.cc', + '../src/compiler/backend/mips64/instruction-codes-mips64.h', + '../src/compiler/backend/mips64/instruction-scheduler-mips64.cc', + '../src/compiler/backend/mips64/instruction-selector-mips64.cc', '../src/debug/mips64/debug-mips64.cc', '../src/mips64/assembler-mips64-inl.h', '../src/mips64/assembler-mips64.cc', @@ -1879,10 +1925,10 @@ }], ['v8_target_arch=="ppc" or v8_target_arch=="ppc64"', { 'sources': [ - '../src/compiler/ppc/code-generator-ppc.cc', - '../src/compiler/ppc/instruction-codes-ppc.h', - '../src/compiler/ppc/instruction-scheduler-ppc.cc', - '../src/compiler/ppc/instruction-selector-ppc.cc', + '../src/compiler/backend/ppc/code-generator-ppc.cc', + '../src/compiler/backend/ppc/instruction-codes-ppc.h', + '../src/compiler/backend/ppc/instruction-scheduler-ppc.cc', + '../src/compiler/backend/ppc/instruction-selector-ppc.cc', '../src/debug/ppc/debug-ppc.cc', '../src/ppc/assembler-ppc-inl.h', '../src/ppc/assembler-ppc.cc', @@ -1909,10 +1955,10 @@ }], ['v8_target_arch=="s390" or v8_target_arch=="s390x"', { 'sources': [ - '../src/compiler/s390/code-generator-s390.cc', - '../src/compiler/s390/instruction-codes-s390.h', - '../src/compiler/s390/instruction-scheduler-s390.cc', - '../src/compiler/s390/instruction-selector-s390.cc', + '../src/compiler/backend/s390/code-generator-s390.cc', + '../src/compiler/backend/s390/instruction-codes-s390.h', + '../src/compiler/backend/s390/instruction-scheduler-s390.cc', + '../src/compiler/backend/s390/instruction-selector-s390.cc', '../src/debug/s390/debug-s390.cc', '../src/regexp/s390/regexp-macro-assembler-s390.cc', '../src/regexp/s390/regexp-macro-assembler-s390.h', @@ -1986,9 +2032,6 @@ 'sources!': [ '../src/builtins/builtins-intl.cc', '../src/char-predicates.cc', - '../src/intl.cc', - '../src/intl.h', - '../src/objects/intl-objects-inl.h', '../src/objects/intl-objects.cc', '../src/objects/intl-objects.h', '../src/objects/js-break-iterator-inl.h', @@ -2015,6 +2058,9 @@ '../src/objects/js-relative-time-format-inl.h', '../src/objects/js-relative-time-format.cc', '../src/objects/js-relative-time-format.h', + '../src/objects/js-segment-iterator-inl.h', + '../src/objects/js-segment-iterator.cc', + '../src/objects/js-segment-iterator.h', '../src/objects/js-segmenter-inl.h', '../src/objects/js-segmenter.cc', '../src/objects/js-segmenter.h', @@ -2564,7 +2610,7 @@ 'variables': { 'library_files': [ '../src/js/macros.py', - '../src/messages.h', + '../src/message-template.h', '../src/js/prologue.js', '../src/js/array.js', '../src/js/typedarray.js', @@ -2572,11 +2618,6 @@ 'libraries_bin_file': '<(SHARED_INTERMEDIATE_DIR)/libraries.bin', 'libraries_extras_bin_file': '<(SHARED_INTERMEDIATE_DIR)/libraries-extras.bin', 'libraries_experimental_extras_bin_file': '<(SHARED_INTERMEDIATE_DIR)/libraries-experimental-extras.bin', - 'conditions': [ - ['v8_enable_i18n_support==1', { - 'library_files': ['../src/js/intl.js'], - }], - ], }, 'actions': [ { @@ -2665,8 +2706,6 @@ '../src/torque/implementation-visitor.h', '../src/torque/instructions.cc', '../src/torque/instructions.h', - '../src/torque/scope.cc', - '../src/torque/scope.h', '../src/torque/source-positions.cc', '../src/torque/source-positions.h', '../src/torque/torque-parser.cc', @@ -2715,12 +2754,17 @@ '../src/objects/data-handler-inl.h', '../src/objects/fixed-array-inl.h', '../src/objects/fixed-array.h', + '../src/objects/heap-object-inl.h', + '../src/objects/heap-object.h', + '../src/objects/instance-type.h', '../src/objects/js-array-inl.h', '../src/objects/js-array.h', '../src/objects/js-array-buffer-inl.h', '../src/objects/js-array-buffer.h', '../src/objects/js-objects-inl.h', '../src/objects/js-objects.h', + '../src/objects/js-promise-inl.h', + '../src/objects/js-promise.h', '../src/objects/js-regexp-inl.h', '../src/objects/js-regexp.h', '../src/objects/js-regexp-string-iterator-inl.h', @@ -2772,6 +2816,8 @@ '<(DEPTH)', ], 'sources': [ + '../src/snapshot/embedded-file-writer.cc', + '../src/snapshot/embedded-file-writer.h', '../src/snapshot/mksnapshot.cc', ], 'conditions': [