@@ -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",
@@ -229,6 +231,8 @@ action("js2c") {
229231 "src/mirror-debugger.js",
230232 "src/liveedit-debugger.js",
231233 "src/templates.js",
234+ "src/harmony-array.js",
235+ "src/harmony-typedarray.js",
232236 ]
233237
234238 outputs = [
@@ -264,17 +268,18 @@ action("js2c_experimental") {
264268
265269 sources = [
266270 "src/macros.py",
267- "src/messages.h",
271+ "src/messages.h",
268272 "src/proxy.js",
269273 "src/generator.js",
270- "src/harmony-array .js",
274+ "src/harmony-atomics .js",
271275 "src/harmony-array-includes.js",
272- "src/harmony-typedarray .js",
276+ "src/harmony-concat-spreadable .js",
273277 "src/harmony-tostring.js",
274278 "src/harmony-regexp.js",
275279 "src/harmony-reflect.js",
276280 "src/harmony-spread.js",
277- "src/harmony-object.js"
281+ "src/harmony-object.js",
282+ "src/harmony-sharedarraybuffer.js"
278283 ]
279284
280285 outputs = [
@@ -474,9 +479,13 @@ source_set("v8_snapshot") {
474479 ":js2c",
475480 ":js2c_experimental",
476481 ":js2c_extras",
477- ":run_mksnapshot",
478482 ":v8_base",
479483 ]
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+ ]
480489
481490 sources = [
482491 "$target_gen_dir/libraries.cc",
@@ -502,9 +511,11 @@ if (v8_use_external_startup_data) {
502511 ":js2c",
503512 ":js2c_experimental",
504513 ":js2c_extras",
505- ":run_mksnapshot",
506514 ":v8_base",
515+ ]
516+ public_deps = [
507517 ":natives_blob",
518+ ":run_mksnapshot",
508519 ]
509520
510521 sources = [
@@ -526,6 +537,14 @@ source_set("v8_base") {
526537 visibility = [ ":*" ] # Only targets in this file can depend on this.
527538
528539 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",
529548 "src/accessors.cc",
530549 "src/accessors.h",
531550 "src/allocation.cc",
@@ -544,6 +563,8 @@ source_set("v8_base") {
544563 "src/assembler.h",
545564 "src/assert-scope.h",
546565 "src/assert-scope.cc",
566+ "src/ast-literal-reindexer.cc",
567+ "src/ast-literal-reindexer.h",
547568 "src/ast-numbering.cc",
548569 "src/ast-numbering.h",
549570 "src/ast-value-factory.cc",
@@ -602,6 +623,8 @@ source_set("v8_base") {
602623 "src/compiler/basic-block-instrumentor.h",
603624 "src/compiler/change-lowering.cc",
604625 "src/compiler/change-lowering.h",
626+ "src/compiler/coalesced-live-ranges.cc",
627+ "src/compiler/coalesced-live-ranges.h",
605628 "src/compiler/code-generator-impl.h",
606629 "src/compiler/code-generator.cc",
607630 "src/compiler/code-generator.h",
@@ -617,8 +640,8 @@ source_set("v8_base") {
617640 "src/compiler/control-equivalence.h",
618641 "src/compiler/control-flow-optimizer.cc",
619642 "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",
622645 "src/compiler/diamond.h",
623646 "src/compiler/frame.h",
624647 "src/compiler/frame-elider.cc",
@@ -632,10 +655,14 @@ source_set("v8_base") {
632655 "src/compiler/graph-reducer.h",
633656 "src/compiler/graph-replay.cc",
634657 "src/compiler/graph-replay.h",
658+ "src/compiler/graph-trimmer.cc",
659+ "src/compiler/graph-trimmer.h",
635660 "src/compiler/graph-visualizer.cc",
636661 "src/compiler/graph-visualizer.h",
637662 "src/compiler/graph.cc",
638663 "src/compiler/graph.h",
664+ "src/compiler/greedy-allocator.cc",
665+ "src/compiler/greedy-allocator.h",
639666 "src/compiler/instruction-codes.h",
640667 "src/compiler/instruction-selector-impl.h",
641668 "src/compiler/instruction-selector.cc",
@@ -646,6 +673,8 @@ source_set("v8_base") {
646673 "src/compiler/js-builtin-reducer.h",
647674 "src/compiler/js-context-specialization.cc",
648675 "src/compiler/js-context-specialization.h",
676+ "src/compiler/js-frame-specialization.cc",
677+ "src/compiler/js-frame-specialization.h",
649678 "src/compiler/js-generic-lowering.cc",
650679 "src/compiler/js-generic-lowering.h",
651680 "src/compiler/js-graph.cc",
@@ -774,6 +803,7 @@ source_set("v8_base") {
774803 "src/elements.h",
775804 "src/execution.cc",
776805 "src/execution.h",
806+ "src/expression-classifier.h",
777807 "src/extensions/externalize-string-extension.cc",
778808 "src/extensions/externalize-string-extension.h",
779809 "src/extensions/free-buffer-extension.cc",
@@ -830,6 +860,8 @@ source_set("v8_base") {
830860 "src/heap/mark-compact-inl.h",
831861 "src/heap/mark-compact.cc",
832862 "src/heap/mark-compact.h",
863+ "src/heap/memory-reducer.cc",
864+ "src/heap/memory-reducer.h",
833865 "src/heap/objects-visiting-inl.h",
834866 "src/heap/objects-visiting.cc",
835867 "src/heap/objects-visiting.h",
@@ -958,12 +990,11 @@ source_set("v8_base") {
958990 "src/optimizing-compile-dispatcher.h",
959991 "src/ostreams.cc",
960992 "src/ostreams.h",
993+ "src/pattern-rewriter.cc",
961994 "src/parser.cc",
962995 "src/parser.h",
963996 "src/pending-compilation-error-handler.cc",
964997 "src/pending-compilation-error-handler.h",
965- "src/perf-jit.cc",
966- "src/perf-jit.h",
967998 "src/preparse-data-format.h",
968999 "src/preparse-data.cc",
9691000 "src/preparse-data.h",
@@ -992,11 +1023,13 @@ source_set("v8_base") {
9921023 "src/runtime-profiler.cc",
9931024 "src/runtime-profiler.h",
9941025 "src/runtime/runtime-array.cc",
1026+ "src/runtime/runtime-atomics.cc",
9951027 "src/runtime/runtime-classes.cc",
9961028 "src/runtime/runtime-collections.cc",
9971029 "src/runtime/runtime-compiler.cc",
9981030 "src/runtime/runtime-date.cc",
9991031 "src/runtime/runtime-debug.cc",
1032+ "src/runtime/runtime-forin.cc",
10001033 "src/runtime/runtime-function.cc",
10011034 "src/runtime/runtime-generator.cc",
10021035 "src/runtime/runtime-i18n.cc",
@@ -1032,6 +1065,7 @@ source_set("v8_base") {
10321065 "src/scopes.cc",
10331066 "src/scopes.h",
10341067 "src/signature.h",
1068+ "src/simulator.h",
10351069 "src/small-pointer-list.h",
10361070 "src/smart-pointers.h",
10371071 "src/snapshot/natives.h",
@@ -1040,6 +1074,8 @@ source_set("v8_base") {
10401074 "src/snapshot/snapshot-common.cc",
10411075 "src/snapshot/snapshot-source-sink.cc",
10421076 "src/snapshot/snapshot-source-sink.h",
1077+ "src/splay-tree.h",
1078+ "src/splay-tree-inl.h",
10431079 "src/snapshot/snapshot.h",
10441080 "src/string-builder.cc",
10451081 "src/string-builder.h",
@@ -1089,6 +1125,8 @@ source_set("v8_base") {
10891125 "src/vm-state.h",
10901126 "src/zone.cc",
10911127 "src/zone.h",
1128+ "src/zone-allocator.h",
1129+ "src/zone-containers.h",
10921130 "src/third_party/fdlibm/fdlibm.cc",
10931131 "src/third_party/fdlibm/fdlibm.h",
10941132 ]
@@ -1201,6 +1239,7 @@ source_set("v8_base") {
12011239 "src/arm/regexp-macro-assembler-arm.cc",
12021240 "src/arm/regexp-macro-assembler-arm.h",
12031241 "src/arm/simulator-arm.cc",
1242+ "src/arm/simulator-arm.h",
12041243 "src/compiler/arm/code-generator-arm.cc",
12051244 "src/compiler/arm/instruction-codes-arm.h",
12061245 "src/compiler/arm/instruction-selector-arm.cc",
@@ -1295,6 +1334,7 @@ source_set("v8_base") {
12951334 "src/mips/regexp-macro-assembler-mips.cc",
12961335 "src/mips/regexp-macro-assembler-mips.h",
12971336 "src/mips/simulator-mips.cc",
1337+ "src/mips/simulator-mips.h",
12981338 "src/compiler/mips/code-generator-mips.cc",
12991339 "src/compiler/mips/instruction-codes-mips.h",
13001340 "src/compiler/mips/instruction-selector-mips.cc",
@@ -1336,6 +1376,7 @@ source_set("v8_base") {
13361376 "src/mips64/regexp-macro-assembler-mips64.cc",
13371377 "src/mips64/regexp-macro-assembler-mips64.h",
13381378 "src/mips64/simulator-mips64.cc",
1379+ "src/mips64/simulator-mips64.h",
13391380 "src/ic/mips64/access-compiler-mips64.cc",
13401381 "src/ic/mips64/handler-compiler-mips64.cc",
13411382 "src/ic/mips64/ic-mips64.cc",
@@ -1399,6 +1440,8 @@ source_set("v8_libbase") {
13991440 "src/base/atomicops_internals_atomicword_compat.h",
14001441 "src/base/atomicops_internals_mac.h",
14011442 "src/base/atomicops_internals_mips_gcc.h",
1443+ "src/base/atomicops_internals_mips64_gcc.h",
1444+ "src/base/atomicops_internals_portable.h",
14021445 "src/base/atomicops_internals_tsan.h",
14031446 "src/base/atomicops_internals_x86_gcc.cc",
14041447 "src/base/atomicops_internals_x86_gcc.h",
@@ -1558,7 +1601,7 @@ if (current_toolchain == snapshot_toolchain) {
15581601# Public targets
15591602#
15601603
1561- if (component_mode == "shared_library" ) {
1604+ if (is_component_build ) {
15621605 component("v8") {
15631606 sources = [
15641607 "src/v8dll-main.cc",
@@ -1567,11 +1610,17 @@ if (component_mode == "shared_library") {
15671610 if (v8_use_snapshot && v8_use_external_startup_data) {
15681611 deps = [
15691612 ":v8_base",
1613+ ]
1614+ public_deps = [
15701615 ":v8_external_snapshot",
15711616 ]
15721617 } else if (v8_use_snapshot) {
15731618 deps = [
15741619 ":v8_base",
1620+ ]
1621+ # v8_snapshot should be public so downstream targets can declare the
1622+ # snapshot file as their input.
1623+ public_deps = [
15751624 ":v8_snapshot",
15761625 ]
15771626 } else {
@@ -1607,6 +1656,8 @@ if (component_mode == "shared_library") {
16071656 } else if (v8_use_snapshot) {
16081657 deps = [
16091658 ":v8_base",
1659+ ]
1660+ public_deps = [
16101661 ":v8_snapshot",
16111662 ]
16121663 } else {
@@ -1657,9 +1708,10 @@ if ((current_toolchain == host_toolchain && v8_toolset_for_d8 == "host") ||
16571708 sources += [ "src/d8-windows.cc" ]
16581709 }
16591710
1660- if (component_mode != "shared_library" ) {
1711+ if (!is_component_build ) {
16611712 sources += [
16621713 "src/d8-debug.cc",
1714+ "src/d8-debug.h",
16631715 "$target_gen_dir/d8-js.cc",
16641716 ]
16651717 }
0 commit comments