@@ -52,7 +52,7 @@ config("internal_config") {
52
52
53
53
include_dirs = [ " ." ]
54
54
55
- if (component_mode == " shared_library " ) {
55
+ if (is_component_build ) {
56
56
defines = [
57
57
" V8_SHARED" ,
58
58
" BUILDING_V8_SHARED" ,
@@ -202,8 +202,9 @@ action("js2c") {
202
202
203
203
sources = [
204
204
" src/macros.py" ,
205
- " src/messages.h" ,
205
+ " src/messages.h" ,
206
206
" src/runtime.js" ,
207
+ " src/prologue.js" ,
207
208
" src/v8natives.js" ,
208
209
" src/symbol.js" ,
209
210
" src/array.js" ,
@@ -215,6 +216,7 @@ action("js2c") {
215
216
" src/regexp.js" ,
216
217
" src/arraybuffer.js" ,
217
218
" src/typedarray.js" ,
219
+ " src/iterator-prototype.js" ,
218
220
" src/generator.js" ,
219
221
" src/object-observe.js" ,
220
222
" src/collection.js" ,
@@ -264,17 +266,19 @@ action("js2c_experimental") {
264
266
265
267
sources = [
266
268
" src/macros.py" ,
267
- " src/messages.h" ,
269
+ " src/messages.h" ,
268
270
" src/proxy.js" ,
269
271
" src/generator.js" ,
272
+ " src/harmony-atomics.js" ,
270
273
" src/harmony-array.js" ,
271
274
" src/harmony-array-includes.js" ,
272
275
" src/harmony-typedarray.js" ,
273
276
" src/harmony-tostring.js" ,
274
277
" src/harmony-regexp.js" ,
275
278
" src/harmony-reflect.js" ,
276
279
" src/harmony-spread.js" ,
277
- " src/harmony-object.js"
280
+ " src/harmony-object.js" ,
281
+ " src/harmony-sharedarraybuffer.js"
278
282
]
279
283
280
284
outputs = [
@@ -474,9 +478,13 @@ source_set("v8_snapshot") {
474
478
" :js2c" ,
475
479
" :js2c_experimental" ,
476
480
" :js2c_extras" ,
477
- " :run_mksnapshot" ,
478
481
" :v8_base" ,
479
482
]
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
+ ]
480
488
481
489
sources = [
482
490
" $target_gen_dir /libraries.cc" ,
@@ -502,9 +510,11 @@ if (v8_use_external_startup_data) {
502
510
" :js2c" ,
503
511
" :js2c_experimental" ,
504
512
" :js2c_extras" ,
505
- " :run_mksnapshot" ,
506
513
" :v8_base" ,
514
+ ]
515
+ public_deps = [
507
516
" :natives_blob" ,
517
+ " :run_mksnapshot" ,
508
518
]
509
519
510
520
sources = [
@@ -526,6 +536,14 @@ source_set("v8_base") {
526
536
visibility = [ " :*" ] # Only targets in this file can depend on this.
527
537
528
538
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" ,
529
547
" src/accessors.cc" ,
530
548
" src/accessors.h" ,
531
549
" src/allocation.cc" ,
@@ -544,6 +562,8 @@ source_set("v8_base") {
544
562
" src/assembler.h" ,
545
563
" src/assert-scope.h" ,
546
564
" src/assert-scope.cc" ,
565
+ " src/ast-literal-reindexer.cc" ,
566
+ " src/ast-literal-reindexer.h" ,
547
567
" src/ast-numbering.cc" ,
548
568
" src/ast-numbering.h" ,
549
569
" src/ast-value-factory.cc" ,
@@ -602,6 +622,8 @@ source_set("v8_base") {
602
622
" src/compiler/basic-block-instrumentor.h" ,
603
623
" src/compiler/change-lowering.cc" ,
604
624
" src/compiler/change-lowering.h" ,
625
+ " src/compiler/coalesced-live-ranges.cc" ,
626
+ " src/compiler/coalesced-live-ranges.h" ,
605
627
" src/compiler/code-generator-impl.h" ,
606
628
" src/compiler/code-generator.cc" ,
607
629
" src/compiler/code-generator.h" ,
@@ -617,8 +639,8 @@ source_set("v8_base") {
617
639
" src/compiler/control-equivalence.h" ,
618
640
" src/compiler/control-flow-optimizer.cc" ,
619
641
" 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" ,
622
644
" src/compiler/diamond.h" ,
623
645
" src/compiler/frame.h" ,
624
646
" src/compiler/frame-elider.cc" ,
@@ -632,10 +654,14 @@ source_set("v8_base") {
632
654
" src/compiler/graph-reducer.h" ,
633
655
" src/compiler/graph-replay.cc" ,
634
656
" src/compiler/graph-replay.h" ,
657
+ " src/compiler/graph-trimmer.cc" ,
658
+ " src/compiler/graph-trimmer.h" ,
635
659
" src/compiler/graph-visualizer.cc" ,
636
660
" src/compiler/graph-visualizer.h" ,
637
661
" src/compiler/graph.cc" ,
638
662
" src/compiler/graph.h" ,
663
+ " src/compiler/greedy-allocator.cc" ,
664
+ " src/compiler/greedy-allocator.h" ,
639
665
" src/compiler/instruction-codes.h" ,
640
666
" src/compiler/instruction-selector-impl.h" ,
641
667
" src/compiler/instruction-selector.cc" ,
@@ -703,8 +729,6 @@ source_set("v8_base") {
703
729
" src/compiler/pipeline.h" ,
704
730
" src/compiler/pipeline-statistics.cc" ,
705
731
" src/compiler/pipeline-statistics.h" ,
706
- " src/compiler/raw-machine-assembler.cc" ,
707
- " src/compiler/raw-machine-assembler.h" ,
708
732
" src/compiler/register-allocator.cc" ,
709
733
" src/compiler/register-allocator.h" ,
710
734
" src/compiler/register-allocator-verifier.cc" ,
@@ -774,6 +798,7 @@ source_set("v8_base") {
774
798
" src/elements.h" ,
775
799
" src/execution.cc" ,
776
800
" src/execution.h" ,
801
+ " src/expression-classifier.h" ,
777
802
" src/extensions/externalize-string-extension.cc" ,
778
803
" src/extensions/externalize-string-extension.h" ,
779
804
" src/extensions/free-buffer-extension.cc" ,
@@ -958,12 +983,11 @@ source_set("v8_base") {
958
983
" src/optimizing-compile-dispatcher.h" ,
959
984
" src/ostreams.cc" ,
960
985
" src/ostreams.h" ,
986
+ " src/pattern-rewriter.cc" ,
961
987
" src/parser.cc" ,
962
988
" src/parser.h" ,
963
989
" src/pending-compilation-error-handler.cc" ,
964
990
" src/pending-compilation-error-handler.h" ,
965
- " src/perf-jit.cc" ,
966
- " src/perf-jit.h" ,
967
991
" src/preparse-data-format.h" ,
968
992
" src/preparse-data.cc" ,
969
993
" src/preparse-data.h" ,
@@ -992,11 +1016,13 @@ source_set("v8_base") {
992
1016
" src/runtime-profiler.cc" ,
993
1017
" src/runtime-profiler.h" ,
994
1018
" src/runtime/runtime-array.cc" ,
1019
+ " src/runtime/runtime-atomics.cc" ,
995
1020
" src/runtime/runtime-classes.cc" ,
996
1021
" src/runtime/runtime-collections.cc" ,
997
1022
" src/runtime/runtime-compiler.cc" ,
998
1023
" src/runtime/runtime-date.cc" ,
999
1024
" src/runtime/runtime-debug.cc" ,
1025
+ " src/runtime/runtime-forin.cc" ,
1000
1026
" src/runtime/runtime-function.cc" ,
1001
1027
" src/runtime/runtime-generator.cc" ,
1002
1028
" src/runtime/runtime-i18n.cc" ,
@@ -1032,6 +1058,7 @@ source_set("v8_base") {
1032
1058
" src/scopes.cc" ,
1033
1059
" src/scopes.h" ,
1034
1060
" src/signature.h" ,
1061
+ " src/simulator.h" ,
1035
1062
" src/small-pointer-list.h" ,
1036
1063
" src/smart-pointers.h" ,
1037
1064
" src/snapshot/natives.h" ,
@@ -1040,6 +1067,8 @@ source_set("v8_base") {
1040
1067
" src/snapshot/snapshot-common.cc" ,
1041
1068
" src/snapshot/snapshot-source-sink.cc" ,
1042
1069
" src/snapshot/snapshot-source-sink.h" ,
1070
+ " src/splay-tree.h" ,
1071
+ " src/splay-tree-inl.h" ,
1043
1072
" src/snapshot/snapshot.h" ,
1044
1073
" src/string-builder.cc" ,
1045
1074
" src/string-builder.h" ,
@@ -1089,6 +1118,8 @@ source_set("v8_base") {
1089
1118
" src/vm-state.h" ,
1090
1119
" src/zone.cc" ,
1091
1120
" src/zone.h" ,
1121
+ " src/zone-allocator.h" ,
1122
+ " src/zone-containers.h" ,
1092
1123
" src/third_party/fdlibm/fdlibm.cc" ,
1093
1124
" src/third_party/fdlibm/fdlibm.h" ,
1094
1125
]
@@ -1201,6 +1232,7 @@ source_set("v8_base") {
1201
1232
" src/arm/regexp-macro-assembler-arm.cc" ,
1202
1233
" src/arm/regexp-macro-assembler-arm.h" ,
1203
1234
" src/arm/simulator-arm.cc" ,
1235
+ " src/arm/simulator-arm.h" ,
1204
1236
" src/compiler/arm/code-generator-arm.cc" ,
1205
1237
" src/compiler/arm/instruction-codes-arm.h" ,
1206
1238
" src/compiler/arm/instruction-selector-arm.cc" ,
@@ -1295,6 +1327,7 @@ source_set("v8_base") {
1295
1327
" src/mips/regexp-macro-assembler-mips.cc" ,
1296
1328
" src/mips/regexp-macro-assembler-mips.h" ,
1297
1329
" src/mips/simulator-mips.cc" ,
1330
+ " src/mips/simulator-mips.h" ,
1298
1331
" src/compiler/mips/code-generator-mips.cc" ,
1299
1332
" src/compiler/mips/instruction-codes-mips.h" ,
1300
1333
" src/compiler/mips/instruction-selector-mips.cc" ,
@@ -1336,6 +1369,7 @@ source_set("v8_base") {
1336
1369
" src/mips64/regexp-macro-assembler-mips64.cc" ,
1337
1370
" src/mips64/regexp-macro-assembler-mips64.h" ,
1338
1371
" src/mips64/simulator-mips64.cc" ,
1372
+ " src/mips64/simulator-mips64.h" ,
1339
1373
" src/ic/mips64/access-compiler-mips64.cc" ,
1340
1374
" src/ic/mips64/handler-compiler-mips64.cc" ,
1341
1375
" src/ic/mips64/ic-mips64.cc" ,
@@ -1399,6 +1433,8 @@ source_set("v8_libbase") {
1399
1433
" src/base/atomicops_internals_atomicword_compat.h" ,
1400
1434
" src/base/atomicops_internals_mac.h" ,
1401
1435
" src/base/atomicops_internals_mips_gcc.h" ,
1436
+ " src/base/atomicops_internals_mips64_gcc.h" ,
1437
+ " src/base/atomicops_internals_portable.h" ,
1402
1438
" src/base/atomicops_internals_tsan.h" ,
1403
1439
" src/base/atomicops_internals_x86_gcc.cc" ,
1404
1440
" src/base/atomicops_internals_x86_gcc.h" ,
@@ -1558,7 +1594,7 @@ if (current_toolchain == snapshot_toolchain) {
1558
1594
# Public targets
1559
1595
#
1560
1596
1561
- if (component_mode == " shared_library " ) {
1597
+ if (is_component_build ) {
1562
1598
component (" v8" ) {
1563
1599
sources = [
1564
1600
" src/v8dll-main.cc" ,
@@ -1567,11 +1603,17 @@ if (component_mode == "shared_library") {
1567
1603
if (v8_use_snapshot && v8_use_external_startup_data ) {
1568
1604
deps = [
1569
1605
" :v8_base" ,
1606
+ ]
1607
+ public_deps = [
1570
1608
" :v8_external_snapshot" ,
1571
1609
]
1572
1610
} else if (v8_use_snapshot ) {
1573
1611
deps = [
1574
1612
" :v8_base" ,
1613
+ ]
1614
+ # v8_snapshot should be public so downstream targets can declare the
1615
+ # snapshot file as their input.
1616
+ public_deps = [
1575
1617
" :v8_snapshot" ,
1576
1618
]
1577
1619
} else {
@@ -1607,6 +1649,8 @@ if (component_mode == "shared_library") {
1607
1649
} else if (v8_use_snapshot ) {
1608
1650
deps = [
1609
1651
" :v8_base" ,
1652
+ ]
1653
+ public_deps = [
1610
1654
" :v8_snapshot" ,
1611
1655
]
1612
1656
} else {
@@ -1657,9 +1701,10 @@ if ((current_toolchain == host_toolchain && v8_toolset_for_d8 == "host") ||
1657
1701
sources += [ " src/d8-windows.cc" ]
1658
1702
}
1659
1703
1660
- if (component_mode != " shared_library " ) {
1704
+ if (! is_component_build ) {
1661
1705
sources += [
1662
1706
" src/d8-debug.cc" ,
1707
+ " src/d8-debug.h" ,
1663
1708
" $target_gen_dir /d8-js.cc" ,
1664
1709
]
1665
1710
}
0 commit comments