Skip to content

Commit 945ba17

Browse files
committed
deps: upgrade v8 to 4.5.92
This commit includes two fix-ups to src/node_contextify.cc and lib/module.js to force-load the debugger when necessary. PR-URL: #2091 Reviewed-By: Trevor Norris <[email protected]>
1 parent ad91952 commit 945ba17

File tree

1,238 files changed

+81931
-41203
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,238 files changed

+81931
-41203
lines changed

deps/v8/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ shell_g
6060
/test/promises-aplus/promises-tests
6161
/test/promises-aplus/promises-tests.tar.gz
6262
/test/promises-aplus/sinon
63+
/test/simdjs/ecmascript_simd*
64+
/test/simdjs/data*
6365
/test/test262/data
6466
/test/test262/data.old
6567
/test/test262/tc39-test262-*

deps/v8/BUILD.gn

+59-14
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ config("internal_config") {
5252

5353
include_dirs = [ "." ]
5454

55-
if (component_mode == "shared_library") {
55+
if (is_component_build) {
5656
defines = [
5757
"V8_SHARED",
5858
"BUILDING_V8_SHARED",
@@ -202,8 +202,9 @@ action("js2c") {
202202

203203
sources = [
204204
"src/macros.py",
205-
"src/messages.h",
205+
"src/messages.h",
206206
"src/runtime.js",
207+
"src/prologue.js",
207208
"src/v8natives.js",
208209
"src/symbol.js",
209210
"src/array.js",
@@ -215,6 +216,7 @@ action("js2c") {
215216
"src/regexp.js",
216217
"src/arraybuffer.js",
217218
"src/typedarray.js",
219+
"src/iterator-prototype.js",
218220
"src/generator.js",
219221
"src/object-observe.js",
220222
"src/collection.js",
@@ -264,17 +266,19 @@ action("js2c_experimental") {
264266

265267
sources = [
266268
"src/macros.py",
267-
"src/messages.h",
269+
"src/messages.h",
268270
"src/proxy.js",
269271
"src/generator.js",
272+
"src/harmony-atomics.js",
270273
"src/harmony-array.js",
271274
"src/harmony-array-includes.js",
272275
"src/harmony-typedarray.js",
273276
"src/harmony-tostring.js",
274277
"src/harmony-regexp.js",
275278
"src/harmony-reflect.js",
276279
"src/harmony-spread.js",
277-
"src/harmony-object.js"
280+
"src/harmony-object.js",
281+
"src/harmony-sharedarraybuffer.js"
278282
]
279283

280284
outputs = [
@@ -474,9 +478,13 @@ source_set("v8_snapshot") {
474478
":js2c",
475479
":js2c_experimental",
476480
":js2c_extras",
477-
":run_mksnapshot",
478481
":v8_base",
479482
]
483+
public_deps = [
484+
# This should be public so downstream targets can declare the snapshot
485+
# output file as their inputs.
486+
":run_mksnapshot",
487+
]
480488

481489
sources = [
482490
"$target_gen_dir/libraries.cc",
@@ -502,9 +510,11 @@ if (v8_use_external_startup_data) {
502510
":js2c",
503511
":js2c_experimental",
504512
":js2c_extras",
505-
":run_mksnapshot",
506513
":v8_base",
514+
]
515+
public_deps = [
507516
":natives_blob",
517+
":run_mksnapshot",
508518
]
509519

510520
sources = [
@@ -526,6 +536,14 @@ source_set("v8_base") {
526536
visibility = [ ":*" ] # Only targets in this file can depend on this.
527537

528538
sources = [
539+
"include/v8-debug.h",
540+
"include/v8-platform.h",
541+
"include/v8-profiler.h",
542+
"include/v8-testing.h",
543+
"include/v8-util.h",
544+
"include/v8-version.h",
545+
"include/v8.h",
546+
"include/v8config.h",
529547
"src/accessors.cc",
530548
"src/accessors.h",
531549
"src/allocation.cc",
@@ -544,6 +562,8 @@ source_set("v8_base") {
544562
"src/assembler.h",
545563
"src/assert-scope.h",
546564
"src/assert-scope.cc",
565+
"src/ast-literal-reindexer.cc",
566+
"src/ast-literal-reindexer.h",
547567
"src/ast-numbering.cc",
548568
"src/ast-numbering.h",
549569
"src/ast-value-factory.cc",
@@ -602,6 +622,8 @@ source_set("v8_base") {
602622
"src/compiler/basic-block-instrumentor.h",
603623
"src/compiler/change-lowering.cc",
604624
"src/compiler/change-lowering.h",
625+
"src/compiler/coalesced-live-ranges.cc",
626+
"src/compiler/coalesced-live-ranges.h",
605627
"src/compiler/code-generator-impl.h",
606628
"src/compiler/code-generator.cc",
607629
"src/compiler/code-generator.h",
@@ -617,8 +639,8 @@ source_set("v8_base") {
617639
"src/compiler/control-equivalence.h",
618640
"src/compiler/control-flow-optimizer.cc",
619641
"src/compiler/control-flow-optimizer.h",
620-
"src/compiler/control-reducer.cc",
621-
"src/compiler/control-reducer.h",
642+
"src/compiler/dead-code-elimination.cc",
643+
"src/compiler/dead-code-elimination.h",
622644
"src/compiler/diamond.h",
623645
"src/compiler/frame.h",
624646
"src/compiler/frame-elider.cc",
@@ -632,10 +654,14 @@ source_set("v8_base") {
632654
"src/compiler/graph-reducer.h",
633655
"src/compiler/graph-replay.cc",
634656
"src/compiler/graph-replay.h",
657+
"src/compiler/graph-trimmer.cc",
658+
"src/compiler/graph-trimmer.h",
635659
"src/compiler/graph-visualizer.cc",
636660
"src/compiler/graph-visualizer.h",
637661
"src/compiler/graph.cc",
638662
"src/compiler/graph.h",
663+
"src/compiler/greedy-allocator.cc",
664+
"src/compiler/greedy-allocator.h",
639665
"src/compiler/instruction-codes.h",
640666
"src/compiler/instruction-selector-impl.h",
641667
"src/compiler/instruction-selector.cc",
@@ -703,8 +729,6 @@ source_set("v8_base") {
703729
"src/compiler/pipeline.h",
704730
"src/compiler/pipeline-statistics.cc",
705731
"src/compiler/pipeline-statistics.h",
706-
"src/compiler/raw-machine-assembler.cc",
707-
"src/compiler/raw-machine-assembler.h",
708732
"src/compiler/register-allocator.cc",
709733
"src/compiler/register-allocator.h",
710734
"src/compiler/register-allocator-verifier.cc",
@@ -774,6 +798,7 @@ source_set("v8_base") {
774798
"src/elements.h",
775799
"src/execution.cc",
776800
"src/execution.h",
801+
"src/expression-classifier.h",
777802
"src/extensions/externalize-string-extension.cc",
778803
"src/extensions/externalize-string-extension.h",
779804
"src/extensions/free-buffer-extension.cc",
@@ -958,12 +983,11 @@ source_set("v8_base") {
958983
"src/optimizing-compile-dispatcher.h",
959984
"src/ostreams.cc",
960985
"src/ostreams.h",
986+
"src/pattern-rewriter.cc",
961987
"src/parser.cc",
962988
"src/parser.h",
963989
"src/pending-compilation-error-handler.cc",
964990
"src/pending-compilation-error-handler.h",
965-
"src/perf-jit.cc",
966-
"src/perf-jit.h",
967991
"src/preparse-data-format.h",
968992
"src/preparse-data.cc",
969993
"src/preparse-data.h",
@@ -992,11 +1016,13 @@ source_set("v8_base") {
9921016
"src/runtime-profiler.cc",
9931017
"src/runtime-profiler.h",
9941018
"src/runtime/runtime-array.cc",
1019+
"src/runtime/runtime-atomics.cc",
9951020
"src/runtime/runtime-classes.cc",
9961021
"src/runtime/runtime-collections.cc",
9971022
"src/runtime/runtime-compiler.cc",
9981023
"src/runtime/runtime-date.cc",
9991024
"src/runtime/runtime-debug.cc",
1025+
"src/runtime/runtime-forin.cc",
10001026
"src/runtime/runtime-function.cc",
10011027
"src/runtime/runtime-generator.cc",
10021028
"src/runtime/runtime-i18n.cc",
@@ -1032,6 +1058,7 @@ source_set("v8_base") {
10321058
"src/scopes.cc",
10331059
"src/scopes.h",
10341060
"src/signature.h",
1061+
"src/simulator.h",
10351062
"src/small-pointer-list.h",
10361063
"src/smart-pointers.h",
10371064
"src/snapshot/natives.h",
@@ -1040,6 +1067,8 @@ source_set("v8_base") {
10401067
"src/snapshot/snapshot-common.cc",
10411068
"src/snapshot/snapshot-source-sink.cc",
10421069
"src/snapshot/snapshot-source-sink.h",
1070+
"src/splay-tree.h",
1071+
"src/splay-tree-inl.h",
10431072
"src/snapshot/snapshot.h",
10441073
"src/string-builder.cc",
10451074
"src/string-builder.h",
@@ -1089,6 +1118,8 @@ source_set("v8_base") {
10891118
"src/vm-state.h",
10901119
"src/zone.cc",
10911120
"src/zone.h",
1121+
"src/zone-allocator.h",
1122+
"src/zone-containers.h",
10921123
"src/third_party/fdlibm/fdlibm.cc",
10931124
"src/third_party/fdlibm/fdlibm.h",
10941125
]
@@ -1201,6 +1232,7 @@ source_set("v8_base") {
12011232
"src/arm/regexp-macro-assembler-arm.cc",
12021233
"src/arm/regexp-macro-assembler-arm.h",
12031234
"src/arm/simulator-arm.cc",
1235+
"src/arm/simulator-arm.h",
12041236
"src/compiler/arm/code-generator-arm.cc",
12051237
"src/compiler/arm/instruction-codes-arm.h",
12061238
"src/compiler/arm/instruction-selector-arm.cc",
@@ -1295,6 +1327,7 @@ source_set("v8_base") {
12951327
"src/mips/regexp-macro-assembler-mips.cc",
12961328
"src/mips/regexp-macro-assembler-mips.h",
12971329
"src/mips/simulator-mips.cc",
1330+
"src/mips/simulator-mips.h",
12981331
"src/compiler/mips/code-generator-mips.cc",
12991332
"src/compiler/mips/instruction-codes-mips.h",
13001333
"src/compiler/mips/instruction-selector-mips.cc",
@@ -1336,6 +1369,7 @@ source_set("v8_base") {
13361369
"src/mips64/regexp-macro-assembler-mips64.cc",
13371370
"src/mips64/regexp-macro-assembler-mips64.h",
13381371
"src/mips64/simulator-mips64.cc",
1372+
"src/mips64/simulator-mips64.h",
13391373
"src/ic/mips64/access-compiler-mips64.cc",
13401374
"src/ic/mips64/handler-compiler-mips64.cc",
13411375
"src/ic/mips64/ic-mips64.cc",
@@ -1399,6 +1433,8 @@ source_set("v8_libbase") {
13991433
"src/base/atomicops_internals_atomicword_compat.h",
14001434
"src/base/atomicops_internals_mac.h",
14011435
"src/base/atomicops_internals_mips_gcc.h",
1436+
"src/base/atomicops_internals_mips64_gcc.h",
1437+
"src/base/atomicops_internals_portable.h",
14021438
"src/base/atomicops_internals_tsan.h",
14031439
"src/base/atomicops_internals_x86_gcc.cc",
14041440
"src/base/atomicops_internals_x86_gcc.h",
@@ -1558,7 +1594,7 @@ if (current_toolchain == snapshot_toolchain) {
15581594
# Public targets
15591595
#
15601596

1561-
if (component_mode == "shared_library") {
1597+
if (is_component_build) {
15621598
component("v8") {
15631599
sources = [
15641600
"src/v8dll-main.cc",
@@ -1567,11 +1603,17 @@ if (component_mode == "shared_library") {
15671603
if (v8_use_snapshot && v8_use_external_startup_data) {
15681604
deps = [
15691605
":v8_base",
1606+
]
1607+
public_deps = [
15701608
":v8_external_snapshot",
15711609
]
15721610
} else if (v8_use_snapshot) {
15731611
deps = [
15741612
":v8_base",
1613+
]
1614+
# v8_snapshot should be public so downstream targets can declare the
1615+
# snapshot file as their input.
1616+
public_deps = [
15751617
":v8_snapshot",
15761618
]
15771619
} else {
@@ -1607,6 +1649,8 @@ if (component_mode == "shared_library") {
16071649
} else if (v8_use_snapshot) {
16081650
deps = [
16091651
":v8_base",
1652+
]
1653+
public_deps = [
16101654
":v8_snapshot",
16111655
]
16121656
} else {
@@ -1657,9 +1701,10 @@ if ((current_toolchain == host_toolchain && v8_toolset_for_d8 == "host") ||
16571701
sources += [ "src/d8-windows.cc" ]
16581702
}
16591703

1660-
if (component_mode != "shared_library") {
1704+
if (!is_component_build) {
16611705
sources += [
16621706
"src/d8-debug.cc",
1707+
"src/d8-debug.h",
16631708
"$target_gen_dir/d8-js.cc",
16641709
]
16651710
}

0 commit comments

Comments
 (0)