@@ -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" ,
@@ -229,6 +231,8 @@ action("js2c") {
229
231
" src/mirror-debugger.js" ,
230
232
" src/liveedit-debugger.js" ,
231
233
" src/templates.js" ,
234
+ " src/harmony-array.js" ,
235
+ " src/harmony-typedarray.js" ,
232
236
]
233
237
234
238
outputs = [
@@ -264,17 +268,18 @@ action("js2c_experimental") {
264
268
265
269
sources = [
266
270
" src/macros.py" ,
267
- " src/messages.h" ,
271
+ " src/messages.h" ,
268
272
" src/proxy.js" ,
269
273
" src/generator.js" ,
270
- " src/harmony-array .js" ,
274
+ " src/harmony-atomics .js" ,
271
275
" src/harmony-array-includes.js" ,
272
- " src/harmony-typedarray .js" ,
276
+ " src/harmony-concat-spreadable .js" ,
273
277
" src/harmony-tostring.js" ,
274
278
" src/harmony-regexp.js" ,
275
279
" src/harmony-reflect.js" ,
276
280
" src/harmony-spread.js" ,
277
- " src/harmony-object.js"
281
+ " src/harmony-object.js" ,
282
+ " src/harmony-sharedarraybuffer.js"
278
283
]
279
284
280
285
outputs = [
@@ -474,9 +479,13 @@ source_set("v8_snapshot") {
474
479
" :js2c" ,
475
480
" :js2c_experimental" ,
476
481
" :js2c_extras" ,
477
- " :run_mksnapshot" ,
478
482
" :v8_base" ,
479
483
]
484
+ public_deps = [
485
+ # This should be public so downstream targets can declare the snapshot
486
+ # output file as their inputs.
487
+ " :run_mksnapshot" ,
488
+ ]
480
489
481
490
sources = [
482
491
" $target_gen_dir /libraries.cc" ,
@@ -502,9 +511,11 @@ if (v8_use_external_startup_data) {
502
511
" :js2c" ,
503
512
" :js2c_experimental" ,
504
513
" :js2c_extras" ,
505
- " :run_mksnapshot" ,
506
514
" :v8_base" ,
515
+ ]
516
+ public_deps = [
507
517
" :natives_blob" ,
518
+ " :run_mksnapshot" ,
508
519
]
509
520
510
521
sources = [
@@ -526,6 +537,14 @@ source_set("v8_base") {
526
537
visibility = [ " :*" ] # Only targets in this file can depend on this.
527
538
528
539
sources = [
540
+ " include/v8-debug.h" ,
541
+ " include/v8-platform.h" ,
542
+ " include/v8-profiler.h" ,
543
+ " include/v8-testing.h" ,
544
+ " include/v8-util.h" ,
545
+ " include/v8-version.h" ,
546
+ " include/v8.h" ,
547
+ " include/v8config.h" ,
529
548
" src/accessors.cc" ,
530
549
" src/accessors.h" ,
531
550
" src/allocation.cc" ,
@@ -544,6 +563,8 @@ source_set("v8_base") {
544
563
" src/assembler.h" ,
545
564
" src/assert-scope.h" ,
546
565
" src/assert-scope.cc" ,
566
+ " src/ast-literal-reindexer.cc" ,
567
+ " src/ast-literal-reindexer.h" ,
547
568
" src/ast-numbering.cc" ,
548
569
" src/ast-numbering.h" ,
549
570
" src/ast-value-factory.cc" ,
@@ -602,6 +623,8 @@ source_set("v8_base") {
602
623
" src/compiler/basic-block-instrumentor.h" ,
603
624
" src/compiler/change-lowering.cc" ,
604
625
" src/compiler/change-lowering.h" ,
626
+ " src/compiler/coalesced-live-ranges.cc" ,
627
+ " src/compiler/coalesced-live-ranges.h" ,
605
628
" src/compiler/code-generator-impl.h" ,
606
629
" src/compiler/code-generator.cc" ,
607
630
" src/compiler/code-generator.h" ,
@@ -617,8 +640,8 @@ source_set("v8_base") {
617
640
" src/compiler/control-equivalence.h" ,
618
641
" src/compiler/control-flow-optimizer.cc" ,
619
642
" src/compiler/control-flow-optimizer.h" ,
620
- " src/compiler/control-reducer .cc" ,
621
- " src/compiler/control-reducer .h" ,
643
+ " src/compiler/dead-code-elimination .cc" ,
644
+ " src/compiler/dead-code-elimination .h" ,
622
645
" src/compiler/diamond.h" ,
623
646
" src/compiler/frame.h" ,
624
647
" src/compiler/frame-elider.cc" ,
@@ -632,10 +655,14 @@ source_set("v8_base") {
632
655
" src/compiler/graph-reducer.h" ,
633
656
" src/compiler/graph-replay.cc" ,
634
657
" src/compiler/graph-replay.h" ,
658
+ " src/compiler/graph-trimmer.cc" ,
659
+ " src/compiler/graph-trimmer.h" ,
635
660
" src/compiler/graph-visualizer.cc" ,
636
661
" src/compiler/graph-visualizer.h" ,
637
662
" src/compiler/graph.cc" ,
638
663
" src/compiler/graph.h" ,
664
+ " src/compiler/greedy-allocator.cc" ,
665
+ " src/compiler/greedy-allocator.h" ,
639
666
" src/compiler/instruction-codes.h" ,
640
667
" src/compiler/instruction-selector-impl.h" ,
641
668
" src/compiler/instruction-selector.cc" ,
@@ -646,6 +673,8 @@ source_set("v8_base") {
646
673
" src/compiler/js-builtin-reducer.h" ,
647
674
" src/compiler/js-context-specialization.cc" ,
648
675
" src/compiler/js-context-specialization.h" ,
676
+ " src/compiler/js-frame-specialization.cc" ,
677
+ " src/compiler/js-frame-specialization.h" ,
649
678
" src/compiler/js-generic-lowering.cc" ,
650
679
" src/compiler/js-generic-lowering.h" ,
651
680
" src/compiler/js-graph.cc" ,
@@ -774,6 +803,7 @@ source_set("v8_base") {
774
803
" src/elements.h" ,
775
804
" src/execution.cc" ,
776
805
" src/execution.h" ,
806
+ " src/expression-classifier.h" ,
777
807
" src/extensions/externalize-string-extension.cc" ,
778
808
" src/extensions/externalize-string-extension.h" ,
779
809
" src/extensions/free-buffer-extension.cc" ,
@@ -830,6 +860,8 @@ source_set("v8_base") {
830
860
" src/heap/mark-compact-inl.h" ,
831
861
" src/heap/mark-compact.cc" ,
832
862
" src/heap/mark-compact.h" ,
863
+ " src/heap/memory-reducer.cc" ,
864
+ " src/heap/memory-reducer.h" ,
833
865
" src/heap/objects-visiting-inl.h" ,
834
866
" src/heap/objects-visiting.cc" ,
835
867
" src/heap/objects-visiting.h" ,
@@ -958,12 +990,11 @@ source_set("v8_base") {
958
990
" src/optimizing-compile-dispatcher.h" ,
959
991
" src/ostreams.cc" ,
960
992
" src/ostreams.h" ,
993
+ " src/pattern-rewriter.cc" ,
961
994
" src/parser.cc" ,
962
995
" src/parser.h" ,
963
996
" src/pending-compilation-error-handler.cc" ,
964
997
" src/pending-compilation-error-handler.h" ,
965
- " src/perf-jit.cc" ,
966
- " src/perf-jit.h" ,
967
998
" src/preparse-data-format.h" ,
968
999
" src/preparse-data.cc" ,
969
1000
" src/preparse-data.h" ,
@@ -992,11 +1023,13 @@ source_set("v8_base") {
992
1023
" src/runtime-profiler.cc" ,
993
1024
" src/runtime-profiler.h" ,
994
1025
" src/runtime/runtime-array.cc" ,
1026
+ " src/runtime/runtime-atomics.cc" ,
995
1027
" src/runtime/runtime-classes.cc" ,
996
1028
" src/runtime/runtime-collections.cc" ,
997
1029
" src/runtime/runtime-compiler.cc" ,
998
1030
" src/runtime/runtime-date.cc" ,
999
1031
" src/runtime/runtime-debug.cc" ,
1032
+ " src/runtime/runtime-forin.cc" ,
1000
1033
" src/runtime/runtime-function.cc" ,
1001
1034
" src/runtime/runtime-generator.cc" ,
1002
1035
" src/runtime/runtime-i18n.cc" ,
@@ -1032,6 +1065,7 @@ source_set("v8_base") {
1032
1065
" src/scopes.cc" ,
1033
1066
" src/scopes.h" ,
1034
1067
" src/signature.h" ,
1068
+ " src/simulator.h" ,
1035
1069
" src/small-pointer-list.h" ,
1036
1070
" src/smart-pointers.h" ,
1037
1071
" src/snapshot/natives.h" ,
@@ -1040,6 +1074,8 @@ source_set("v8_base") {
1040
1074
" src/snapshot/snapshot-common.cc" ,
1041
1075
" src/snapshot/snapshot-source-sink.cc" ,
1042
1076
" src/snapshot/snapshot-source-sink.h" ,
1077
+ " src/splay-tree.h" ,
1078
+ " src/splay-tree-inl.h" ,
1043
1079
" src/snapshot/snapshot.h" ,
1044
1080
" src/string-builder.cc" ,
1045
1081
" src/string-builder.h" ,
@@ -1089,6 +1125,8 @@ source_set("v8_base") {
1089
1125
" src/vm-state.h" ,
1090
1126
" src/zone.cc" ,
1091
1127
" src/zone.h" ,
1128
+ " src/zone-allocator.h" ,
1129
+ " src/zone-containers.h" ,
1092
1130
" src/third_party/fdlibm/fdlibm.cc" ,
1093
1131
" src/third_party/fdlibm/fdlibm.h" ,
1094
1132
]
@@ -1201,6 +1239,7 @@ source_set("v8_base") {
1201
1239
" src/arm/regexp-macro-assembler-arm.cc" ,
1202
1240
" src/arm/regexp-macro-assembler-arm.h" ,
1203
1241
" src/arm/simulator-arm.cc" ,
1242
+ " src/arm/simulator-arm.h" ,
1204
1243
" src/compiler/arm/code-generator-arm.cc" ,
1205
1244
" src/compiler/arm/instruction-codes-arm.h" ,
1206
1245
" src/compiler/arm/instruction-selector-arm.cc" ,
@@ -1295,6 +1334,7 @@ source_set("v8_base") {
1295
1334
" src/mips/regexp-macro-assembler-mips.cc" ,
1296
1335
" src/mips/regexp-macro-assembler-mips.h" ,
1297
1336
" src/mips/simulator-mips.cc" ,
1337
+ " src/mips/simulator-mips.h" ,
1298
1338
" src/compiler/mips/code-generator-mips.cc" ,
1299
1339
" src/compiler/mips/instruction-codes-mips.h" ,
1300
1340
" src/compiler/mips/instruction-selector-mips.cc" ,
@@ -1336,6 +1376,7 @@ source_set("v8_base") {
1336
1376
" src/mips64/regexp-macro-assembler-mips64.cc" ,
1337
1377
" src/mips64/regexp-macro-assembler-mips64.h" ,
1338
1378
" src/mips64/simulator-mips64.cc" ,
1379
+ " src/mips64/simulator-mips64.h" ,
1339
1380
" src/ic/mips64/access-compiler-mips64.cc" ,
1340
1381
" src/ic/mips64/handler-compiler-mips64.cc" ,
1341
1382
" src/ic/mips64/ic-mips64.cc" ,
@@ -1399,6 +1440,8 @@ source_set("v8_libbase") {
1399
1440
" src/base/atomicops_internals_atomicword_compat.h" ,
1400
1441
" src/base/atomicops_internals_mac.h" ,
1401
1442
" src/base/atomicops_internals_mips_gcc.h" ,
1443
+ " src/base/atomicops_internals_mips64_gcc.h" ,
1444
+ " src/base/atomicops_internals_portable.h" ,
1402
1445
" src/base/atomicops_internals_tsan.h" ,
1403
1446
" src/base/atomicops_internals_x86_gcc.cc" ,
1404
1447
" src/base/atomicops_internals_x86_gcc.h" ,
@@ -1558,7 +1601,7 @@ if (current_toolchain == snapshot_toolchain) {
1558
1601
# Public targets
1559
1602
#
1560
1603
1561
- if (component_mode == " shared_library " ) {
1604
+ if (is_component_build ) {
1562
1605
component (" v8" ) {
1563
1606
sources = [
1564
1607
" src/v8dll-main.cc" ,
@@ -1567,11 +1610,17 @@ if (component_mode == "shared_library") {
1567
1610
if (v8_use_snapshot && v8_use_external_startup_data ) {
1568
1611
deps = [
1569
1612
" :v8_base" ,
1613
+ ]
1614
+ public_deps = [
1570
1615
" :v8_external_snapshot" ,
1571
1616
]
1572
1617
} else if (v8_use_snapshot ) {
1573
1618
deps = [
1574
1619
" :v8_base" ,
1620
+ ]
1621
+ # v8_snapshot should be public so downstream targets can declare the
1622
+ # snapshot file as their input.
1623
+ public_deps = [
1575
1624
" :v8_snapshot" ,
1576
1625
]
1577
1626
} else {
@@ -1607,6 +1656,8 @@ if (component_mode == "shared_library") {
1607
1656
} else if (v8_use_snapshot ) {
1608
1657
deps = [
1609
1658
" :v8_base" ,
1659
+ ]
1660
+ public_deps = [
1610
1661
" :v8_snapshot" ,
1611
1662
]
1612
1663
} else {
@@ -1657,9 +1708,10 @@ if ((current_toolchain == host_toolchain && v8_toolset_for_d8 == "host") ||
1657
1708
sources += [ " src/d8-windows.cc" ]
1658
1709
}
1659
1710
1660
- if (component_mode != " shared_library " ) {
1711
+ if (! is_component_build ) {
1661
1712
sources += [
1662
1713
" src/d8-debug.cc" ,
1714
+ " src/d8-debug.h" ,
1663
1715
" $target_gen_dir /d8-js.cc" ,
1664
1716
]
1665
1717
}
0 commit comments