1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 import("//build/config/android/config.gni")
6 import("//build/config/arm.gni")
7 import("//build/config/mips.gni")
9 # Because standalone V8 builds are not supported, assume this is part of a
11 import("//build/module_args/v8.gni")
13 # TODO(jochen): These will need to be user-settable to support standalone V8
15 v8_deprecation_warnings = false
16 v8_enable_disassembler = false
17 v8_enable_gdbjit = false
18 v8_enable_handle_zapping = true
19 v8_enable_i18n_support = true
20 v8_enable_verify_heap = false
21 v8_interpreted_regexp = false
22 v8_object_print = false
23 v8_postmortem_support = false
24 v8_use_snapshot = true
25 v8_target_arch = target_cpu
26 v8_random_seed = "314159265"
27 v8_toolset_for_d8 = "host"
29 # The snapshot needs to be compiled for the host, but compiled with
30 # a toolchain that matches the bit-width of the target.
32 # TODO(GYP): For now we only support 32-bit little-endian target builds from an
33 # x64 Linux host. Eventually we need to support all of the host/target
34 # configurations v8 runs on.
35 if (host_cpu == "x64" && host_os == "linux") {
36 if (target_cpu == "arm" || target_cpu == "mipsel" || target_cpu == "x86") {
37 snapshot_toolchain = "//build/toolchain/linux:clang_x86"
38 } else if (target_cpu == "x64") {
39 snapshot_toolchain = "//build/toolchain/linux:clang_x64"
41 assert(false, "Need environment for this arch")
44 snapshot_toolchain = default_toolchain
47 ###############################################################################
50 config("internal_config") {
51 visibility = [ ":*" ] # Only targets in this file can depend on this.
53 include_dirs = [ "." ]
55 if (component_mode == "shared_library") {
63 config("internal_config_base") {
64 visibility = [ ":*" ] # Only targets in this file can depend on this.
66 include_dirs = [ "." ]
69 # This config should only be applied to code using V8 and not any V8 code
71 config("external_config") {
72 if (is_component_build) {
78 include_dirs = [ "include" ]
82 visibility = [ ":*" ] # Only targets in this file can depend on this.
86 if (v8_enable_disassembler == true) {
87 defines += [ "ENABLE_DISASSEMBLER" ]
89 if (v8_enable_gdbjit == true) {
90 defines += [ "ENABLE_GDB_JIT_INTERFACE" ]
92 if (v8_object_print == true) {
93 defines += [ "OBJECT_PRINT" ]
95 if (v8_enable_verify_heap == true) {
96 defines += [ "VERIFY_HEAP" ]
98 if (v8_interpreted_regexp == true) {
99 defines += [ "V8_INTERPRETED_REGEXP" ]
101 if (v8_deprecation_warnings == true) {
102 defines += [ "V8_DEPRECATION_WARNINGS" ]
104 if (v8_enable_i18n_support == true) {
105 defines += [ "V8_I18N_SUPPORT" ]
107 if (v8_enable_handle_zapping == true) {
108 defines += [ "ENABLE_HANDLE_ZAPPING" ]
110 if (v8_use_external_startup_data == true) {
111 defines += [ "V8_USE_EXTERNAL_STARTUP_DATA" ]
115 config("toolchain") {
116 visibility = [ ":*" ] # Only targets in this file can depend on this.
121 # TODO(jochen): Add support for arm subarchs, mips, mipsel, mips64el.
123 if (v8_target_arch == "arm") {
124 defines += [ "V8_TARGET_ARCH_ARM" ]
125 if (current_cpu == "arm") {
126 if (arm_version == 7) {
127 defines += [ "CAN_USE_ARMV7_INSTRUCTIONS" ]
129 if (arm_fpu == "vfpv3-d16") {
130 defines += [ "CAN_USE_VFP3_INSTRUCTIONS" ]
131 } else if (arm_fpu == "vfpv3") {
133 "CAN_USE_VFP3_INSTRUCTIONS",
134 "CAN_USE_VFP32DREGS",
136 } else if (arm_fpu == "neon") {
138 "CAN_USE_VFP3_INSTRUCTIONS",
139 "CAN_USE_VFP32DREGS",
144 # These defines ares used for the ARM simulator.
146 "CAN_USE_ARMV7_INSTRUCTIONS",
147 "CAN_USE_VFP3_INSTRUCTIONS",
148 "CAN_USE_VFP32DREGS",
149 "USE_EABI_HARDFLOAT=0",
153 # TODO(jochen): Add support for arm_test_noprobe.
155 if (v8_target_arch == "arm64") {
156 defines += [ "V8_TARGET_ARCH_ARM64" ]
158 if (v8_target_arch == "mipsel") {
159 defines += [ "V8_TARGET_ARCH_MIPS" ]
161 if (v8_target_arch == "mips64el") {
162 defines += [ "V8_TARGET_ARCH_MIPS64" ]
164 if (v8_target_arch == "x86") {
165 defines += [ "V8_TARGET_ARCH_IA32" ]
167 if (v8_target_arch == "x64") {
168 defines += [ "V8_TARGET_ARCH_X64" ]
171 defines += [ "WIN32" ]
172 # TODO(jochen): Support v8_enable_prof.
175 # TODO(jochen): Add support for compiling with simulators.
178 # TODO(jochen): Add support for different debug optimization levels.
180 "ENABLE_DISASSEMBLER",
190 ###############################################################################
195 visibility = [ ":*" ] # Only targets in this file can depend on this.
197 script = "tools/js2c.py"
199 # The script depends on this other script, this rule causes a rebuild if it
201 inputs = [ "tools/jsmin.py" ]
214 "src/third_party/fdlibm/fdlibm.js",
217 "src/arraybuffer.js",
219 "src/iterator-prototype.js",
221 "src/object-observe.js",
223 "src/weak-collection.js",
224 "src/collection-iterator.js",
228 "src/array-iterator.js",
229 "src/string-iterator.js",
230 "src/debug-debugger.js",
231 "src/mirror-debugger.js",
232 "src/liveedit-debugger.js",
237 "$target_gen_dir/libraries.cc",
240 if (v8_enable_i18n_support) {
241 sources += [ "src/i18n.js" ]
245 rebase_path("$target_gen_dir/libraries.cc", root_build_dir),
247 ] + rebase_path(sources, root_build_dir)
249 if (v8_use_external_startup_data) {
250 outputs += [ "$target_gen_dir/libraries.bin" ]
253 rebase_path("$target_gen_dir/libraries.bin", root_build_dir),
258 action("js2c_experimental") {
259 visibility = [ ":*" ] # Only targets in this file can depend on this.
261 script = "tools/js2c.py"
263 # The script depends on this other script, this rule causes a rebuild if it
265 inputs = [ "tools/jsmin.py" ]
272 "src/harmony-array.js",
273 "src/harmony-array-includes.js",
274 "src/harmony-typedarray.js",
275 "src/harmony-tostring.js",
276 "src/harmony-regexp.js",
277 "src/harmony-reflect.js",
278 "src/harmony-spread.js",
279 "src/harmony-object.js",
280 "src/harmony-sharedarraybuffer.js"
284 "$target_gen_dir/experimental-libraries.cc",
288 rebase_path("$target_gen_dir/experimental-libraries.cc",
291 ] + rebase_path(sources, root_build_dir)
293 if (v8_use_external_startup_data) {
294 outputs += [ "$target_gen_dir/libraries_experimental.bin" ]
297 rebase_path("$target_gen_dir/libraries_experimental.bin", root_build_dir),
302 action("js2c_extras") {
303 visibility = [ ":*" ] # Only targets in this file can depend on this.
305 script = "tools/js2c.py"
307 # The script depends on this other script, this rule causes a rebuild if it
309 inputs = [ "tools/jsmin.py" ]
311 sources = v8_extra_library_files
314 "$target_gen_dir/extras-libraries.cc",
318 rebase_path("$target_gen_dir/extras-libraries.cc",
321 ] + rebase_path(sources, root_build_dir)
323 if (v8_use_external_startup_data) {
324 outputs += [ "$target_gen_dir/libraries_extras.bin" ]
327 rebase_path("$target_gen_dir/libraries_extras.bin", root_build_dir),
333 visibility = [ ":*" ] # Only targets in this file can depend on this.
335 script = "tools/js2c.py"
343 "$target_gen_dir/d8-js.cc",
346 args = rebase_path(outputs, root_build_dir) + [ "D8" ] +
347 rebase_path(inputs, root_build_dir)
350 if (v8_use_external_startup_data) {
351 action("natives_blob") {
352 visibility = [ ":*" ] # Only targets in this file can depend on this.
356 ":js2c_experimental",
361 "$target_gen_dir/libraries.bin",
362 "$target_gen_dir/libraries_experimental.bin",
363 "$target_gen_dir/libraries_extras.bin",
367 "$root_out_dir/natives_blob.bin",
370 script = "tools/concatenate-files.py"
372 args = rebase_path(sources + outputs, root_build_dir)
376 action("postmortem-metadata") {
377 # Only targets in this file and the top-level visibility target can
384 script = "tools/gen-postmortem-metadata.py"
392 "$target_gen_dir/debug-support.cc",
395 args = rebase_path(outputs, root_build_dir) +
396 rebase_path(sources, root_build_dir)
399 action("run_mksnapshot") {
400 visibility = [ ":*" ] # Only targets in this file can depend on this.
403 ":mksnapshot($snapshot_toolchain)",
406 script = "tools/run.py"
409 "$target_gen_dir/snapshot.cc",
413 "./" + rebase_path(get_label_info(":mksnapshot($snapshot_toolchain)",
414 "root_out_dir") + "/mksnapshot",
416 "--log-snapshot-positions",
418 rebase_path("$target_gen_dir/snapshot.log", root_build_dir),
419 rebase_path("$target_gen_dir/snapshot.cc", root_build_dir),
422 if (v8_random_seed != "0") {
429 if (v8_use_external_startup_data) {
430 outputs += [ "$root_out_dir/snapshot_blob.bin" ]
433 rebase_path("$root_out_dir/snapshot_blob.bin", root_build_dir),
438 ###############################################################################
439 # Source Sets (aka static libraries)
442 source_set("v8_nosnapshot") {
443 visibility = [ ":*" ] # Only targets in this file can depend on this.
447 ":js2c_experimental",
453 "$target_gen_dir/libraries.cc",
454 "$target_gen_dir/experimental-libraries.cc",
455 "$target_gen_dir/extras-libraries.cc",
456 "src/snapshot/snapshot-empty.cc",
459 configs -= [ "//build/config/compiler:chromium_code" ]
460 configs += [ "//build/config/compiler:no_chromium_code" ]
468 source_set("v8_snapshot") {
469 # Only targets in this file and the top-level visibility target can
478 ":js2c_experimental",
483 # This should be public so downstream targets can declare the snapshot
484 # output file as their inputs.
489 "$target_gen_dir/libraries.cc",
490 "$target_gen_dir/experimental-libraries.cc",
491 "$target_gen_dir/extras-libraries.cc",
492 "$target_gen_dir/snapshot.cc",
495 configs -= [ "//build/config/compiler:chromium_code" ]
496 configs += [ "//build/config/compiler:no_chromium_code" ]
504 if (v8_use_external_startup_data) {
505 source_set("v8_external_snapshot") {
506 visibility = [ ":*" ] # Only targets in this file can depend on this.
510 ":js2c_experimental",
520 "src/snapshot/natives-external.cc",
521 "src/snapshot/snapshot-external.cc",
524 configs -= [ "//build/config/compiler:chromium_code" ]
525 configs += [ "//build/config/compiler:no_chromium_code" ]
534 source_set("v8_base") {
535 visibility = [ ":*" ] # Only targets in this file can depend on this.
542 "src/allocation-site-scopes.cc",
543 "src/allocation-site-scopes.h",
544 "src/allocation-tracker.cc",
545 "src/allocation-tracker.h",
548 "src/api-natives.cc",
554 "src/assert-scope.h",
555 "src/assert-scope.cc",
556 "src/ast-numbering.cc",
557 "src/ast-numbering.h",
558 "src/ast-value-factory.cc",
559 "src/ast-value-factory.h",
562 "src/background-parsing-task.cc",
563 "src/background-parsing-task.h",
564 "src/bailout-reason.cc",
565 "src/bailout-reason.h",
566 "src/basic-block-profiler.cc",
567 "src/basic-block-profiler.h",
568 "src/bignum-dtoa.cc",
574 "src/bootstrapper.cc",
575 "src/bootstrapper.h",
578 "src/bytecodes-irregexp.h",
579 "src/cached-powers.cc",
580 "src/cached-powers.h",
581 "src/char-predicates.cc",
582 "src/char-predicates-inl.h",
583 "src/char-predicates.h",
586 "src/circular-queue-inl.h",
587 "src/circular-queue.h",
588 "src/code-factory.cc",
589 "src/code-factory.h",
592 "src/code-stubs-hydrogen.cc",
596 "src/compilation-cache.cc",
597 "src/compilation-cache.h",
598 "src/compilation-dependencies.cc",
599 "src/compilation-dependencies.h",
600 "src/compilation-statistics.cc",
601 "src/compilation-statistics.h",
602 "src/compiler/access-builder.cc",
603 "src/compiler/access-builder.h",
604 "src/compiler/all-nodes.cc",
605 "src/compiler/all-nodes.h",
606 "src/compiler/ast-graph-builder.cc",
607 "src/compiler/ast-graph-builder.h",
608 "src/compiler/ast-loop-assignment-analyzer.cc",
609 "src/compiler/ast-loop-assignment-analyzer.h",
610 "src/compiler/basic-block-instrumentor.cc",
611 "src/compiler/basic-block-instrumentor.h",
612 "src/compiler/change-lowering.cc",
613 "src/compiler/change-lowering.h",
614 "src/compiler/code-generator-impl.h",
615 "src/compiler/code-generator.cc",
616 "src/compiler/code-generator.h",
617 "src/compiler/common-node-cache.cc",
618 "src/compiler/common-node-cache.h",
619 "src/compiler/common-operator-reducer.cc",
620 "src/compiler/common-operator-reducer.h",
621 "src/compiler/common-operator.cc",
622 "src/compiler/common-operator.h",
623 "src/compiler/control-builders.cc",
624 "src/compiler/control-builders.h",
625 "src/compiler/control-equivalence.cc",
626 "src/compiler/control-equivalence.h",
627 "src/compiler/control-flow-optimizer.cc",
628 "src/compiler/control-flow-optimizer.h",
629 "src/compiler/control-reducer.cc",
630 "src/compiler/control-reducer.h",
631 "src/compiler/diamond.h",
632 "src/compiler/frame.h",
633 "src/compiler/frame-elider.cc",
634 "src/compiler/frame-elider.h",
635 "src/compiler/frame-states.cc",
636 "src/compiler/frame-states.h",
637 "src/compiler/gap-resolver.cc",
638 "src/compiler/gap-resolver.h",
639 "src/compiler/graph-builder.h",
640 "src/compiler/graph-reducer.cc",
641 "src/compiler/graph-reducer.h",
642 "src/compiler/graph-replay.cc",
643 "src/compiler/graph-replay.h",
644 "src/compiler/graph-visualizer.cc",
645 "src/compiler/graph-visualizer.h",
646 "src/compiler/graph.cc",
647 "src/compiler/graph.h",
648 "src/compiler/instruction-codes.h",
649 "src/compiler/instruction-selector-impl.h",
650 "src/compiler/instruction-selector.cc",
651 "src/compiler/instruction-selector.h",
652 "src/compiler/instruction.cc",
653 "src/compiler/instruction.h",
654 "src/compiler/js-builtin-reducer.cc",
655 "src/compiler/js-builtin-reducer.h",
656 "src/compiler/js-context-specialization.cc",
657 "src/compiler/js-context-specialization.h",
658 "src/compiler/js-generic-lowering.cc",
659 "src/compiler/js-generic-lowering.h",
660 "src/compiler/js-graph.cc",
661 "src/compiler/js-graph.h",
662 "src/compiler/js-inlining.cc",
663 "src/compiler/js-inlining.h",
664 "src/compiler/js-intrinsic-lowering.cc",
665 "src/compiler/js-intrinsic-lowering.h",
666 "src/compiler/js-operator.cc",
667 "src/compiler/js-operator.h",
668 "src/compiler/js-type-feedback.cc",
669 "src/compiler/js-type-feedback.h",
670 "src/compiler/js-typed-lowering.cc",
671 "src/compiler/js-typed-lowering.h",
672 "src/compiler/jump-threading.cc",
673 "src/compiler/jump-threading.h",
674 "src/compiler/linkage-impl.h",
675 "src/compiler/linkage.cc",
676 "src/compiler/linkage.h",
677 "src/compiler/liveness-analyzer.cc",
678 "src/compiler/liveness-analyzer.h",
679 "src/compiler/load-elimination.cc",
680 "src/compiler/load-elimination.h",
681 "src/compiler/loop-peeling.cc",
682 "src/compiler/loop-analysis.cc",
683 "src/compiler/loop-analysis.h",
684 "src/compiler/machine-operator-reducer.cc",
685 "src/compiler/machine-operator-reducer.h",
686 "src/compiler/machine-operator.cc",
687 "src/compiler/machine-operator.h",
688 "src/compiler/machine-type.cc",
689 "src/compiler/machine-type.h",
690 "src/compiler/move-optimizer.cc",
691 "src/compiler/move-optimizer.h",
692 "src/compiler/node-aux-data.h",
693 "src/compiler/node-cache.cc",
694 "src/compiler/node-cache.h",
695 "src/compiler/node-marker.cc",
696 "src/compiler/node-marker.h",
697 "src/compiler/node-matchers.cc",
698 "src/compiler/node-matchers.h",
699 "src/compiler/node-properties.cc",
700 "src/compiler/node-properties.h",
701 "src/compiler/node.cc",
702 "src/compiler/node.h",
703 "src/compiler/opcodes.cc",
704 "src/compiler/opcodes.h",
705 "src/compiler/operator-properties.cc",
706 "src/compiler/operator-properties.h",
707 "src/compiler/operator.cc",
708 "src/compiler/operator.h",
709 "src/compiler/osr.cc",
710 "src/compiler/osr.h",
711 "src/compiler/pipeline.cc",
712 "src/compiler/pipeline.h",
713 "src/compiler/pipeline-statistics.cc",
714 "src/compiler/pipeline-statistics.h",
715 "src/compiler/raw-machine-assembler.cc",
716 "src/compiler/raw-machine-assembler.h",
717 "src/compiler/register-allocator.cc",
718 "src/compiler/register-allocator.h",
719 "src/compiler/register-allocator-verifier.cc",
720 "src/compiler/register-allocator-verifier.h",
721 "src/compiler/register-configuration.cc",
722 "src/compiler/register-configuration.h",
723 "src/compiler/representation-change.h",
724 "src/compiler/schedule.cc",
725 "src/compiler/schedule.h",
726 "src/compiler/scheduler.cc",
727 "src/compiler/scheduler.h",
728 "src/compiler/select-lowering.cc",
729 "src/compiler/select-lowering.h",
730 "src/compiler/simplified-lowering.cc",
731 "src/compiler/simplified-lowering.h",
732 "src/compiler/simplified-operator.cc",
733 "src/compiler/simplified-operator.h",
734 "src/compiler/source-position.cc",
735 "src/compiler/source-position.h",
736 "src/compiler/state-values-utils.cc",
737 "src/compiler/state-values-utils.h",
738 "src/compiler/tail-call-optimization.cc",
739 "src/compiler/tail-call-optimization.h",
740 "src/compiler/typer.cc",
741 "src/compiler/typer.h",
742 "src/compiler/value-numbering-reducer.cc",
743 "src/compiler/value-numbering-reducer.h",
744 "src/compiler/verifier.cc",
745 "src/compiler/verifier.h",
746 "src/compiler/zone-pool.cc",
747 "src/compiler/zone-pool.h",
752 "src/conversions-inl.h",
753 "src/conversions.cc",
757 "src/cpu-profiler-inl.h",
758 "src/cpu-profiler.cc",
759 "src/cpu-profiler.h",
762 "src/dateparser-inl.h",
767 "src/deoptimizer.cc",
770 "src/disassembler.cc",
771 "src/disassembler.h",
778 "src/elements-kind.cc",
779 "src/elements-kind.h",
784 "src/extensions/externalize-string-extension.cc",
785 "src/extensions/externalize-string-extension.h",
786 "src/extensions/free-buffer-extension.cc",
787 "src/extensions/free-buffer-extension.h",
788 "src/extensions/gc-extension.cc",
789 "src/extensions/gc-extension.h",
790 "src/extensions/statistics-extension.cc",
791 "src/extensions/statistics-extension.h",
792 "src/extensions/trigger-failure-extension.cc",
793 "src/extensions/trigger-failure-extension.h",
799 "src/field-index-inl.h",
802 "src/flag-definitions.h",
808 "src/full-codegen.cc",
809 "src/full-codegen.h",
810 "src/func-name-inferrer.cc",
811 "src/func-name-inferrer.h",
814 "src/global-handles.cc",
815 "src/global-handles.h",
821 "src/heap-profiler.cc",
822 "src/heap-profiler.h",
823 "src/heap-snapshot-generator-inl.h",
824 "src/heap-snapshot-generator.cc",
825 "src/heap-snapshot-generator.h",
826 "src/heap/gc-idle-time-handler.cc",
827 "src/heap/gc-idle-time-handler.h",
828 "src/heap/gc-tracer.cc",
829 "src/heap/gc-tracer.h",
830 "src/heap/heap-inl.h",
833 "src/heap/identity-map.cc",
834 "src/heap/identity-map.h",
835 "src/heap/incremental-marking.cc",
836 "src/heap/incremental-marking.h",
837 "src/heap/mark-compact-inl.h",
838 "src/heap/mark-compact.cc",
839 "src/heap/mark-compact.h",
840 "src/heap/objects-visiting-inl.h",
841 "src/heap/objects-visiting.cc",
842 "src/heap/objects-visiting.h",
843 "src/heap/spaces-inl.h",
844 "src/heap/spaces.cc",
846 "src/heap/store-buffer-inl.h",
847 "src/heap/store-buffer.cc",
848 "src/heap/store-buffer.h",
849 "src/hydrogen-alias-analysis.h",
850 "src/hydrogen-bce.cc",
851 "src/hydrogen-bce.h",
852 "src/hydrogen-bch.cc",
853 "src/hydrogen-bch.h",
854 "src/hydrogen-canonicalize.cc",
855 "src/hydrogen-canonicalize.h",
856 "src/hydrogen-check-elimination.cc",
857 "src/hydrogen-check-elimination.h",
858 "src/hydrogen-dce.cc",
859 "src/hydrogen-dce.h",
860 "src/hydrogen-dehoist.cc",
861 "src/hydrogen-dehoist.h",
862 "src/hydrogen-environment-liveness.cc",
863 "src/hydrogen-environment-liveness.h",
864 "src/hydrogen-escape-analysis.cc",
865 "src/hydrogen-escape-analysis.h",
866 "src/hydrogen-flow-engine.h",
867 "src/hydrogen-instructions.cc",
868 "src/hydrogen-instructions.h",
871 "src/hydrogen-gvn.cc",
872 "src/hydrogen-gvn.h",
873 "src/hydrogen-infer-representation.cc",
874 "src/hydrogen-infer-representation.h",
875 "src/hydrogen-infer-types.cc",
876 "src/hydrogen-infer-types.h",
877 "src/hydrogen-load-elimination.cc",
878 "src/hydrogen-load-elimination.h",
879 "src/hydrogen-mark-deoptimize.cc",
880 "src/hydrogen-mark-deoptimize.h",
881 "src/hydrogen-mark-unreachable.cc",
882 "src/hydrogen-mark-unreachable.h",
883 "src/hydrogen-osr.cc",
884 "src/hydrogen-osr.h",
885 "src/hydrogen-range-analysis.cc",
886 "src/hydrogen-range-analysis.h",
887 "src/hydrogen-redundant-phi.cc",
888 "src/hydrogen-redundant-phi.h",
889 "src/hydrogen-removable-simulates.cc",
890 "src/hydrogen-removable-simulates.h",
891 "src/hydrogen-representation-changes.cc",
892 "src/hydrogen-representation-changes.h",
893 "src/hydrogen-sce.cc",
894 "src/hydrogen-sce.h",
895 "src/hydrogen-store-elimination.cc",
896 "src/hydrogen-store-elimination.h",
897 "src/hydrogen-types.cc",
898 "src/hydrogen-types.h",
899 "src/hydrogen-uint32-analysis.cc",
900 "src/hydrogen-uint32-analysis.h",
905 "src/ic/access-compiler.cc",
906 "src/ic/access-compiler.h",
907 "src/ic/call-optimization.cc",
908 "src/ic/call-optimization.h",
909 "src/ic/handler-compiler.cc",
910 "src/ic/handler-compiler.h",
912 "src/ic/ic-state.cc",
916 "src/ic/ic-compiler.cc",
917 "src/ic/ic-compiler.h",
918 "src/ic/stub-cache.cc",
919 "src/ic/stub-cache.h",
920 "src/interface-descriptors.cc",
921 "src/interface-descriptors.h",
922 "src/interpreter-irregexp.cc",
923 "src/interpreter-irregexp.h",
927 "src/json-stringifier.h",
928 "src/jsregexp-inl.h",
931 "src/layout-descriptor-inl.h",
932 "src/layout-descriptor.cc",
933 "src/layout-descriptor.h",
936 "src/lithium-allocator-inl.h",
937 "src/lithium-allocator.cc",
938 "src/lithium-allocator.h",
939 "src/lithium-codegen.cc",
940 "src/lithium-codegen.h",
953 "src/macro-assembler.h",
959 "src/objects-debug.cc",
961 "src/objects-printer.cc",
964 "src/optimizing-compile-dispatcher.cc",
965 "src/optimizing-compile-dispatcher.h",
968 "src/pattern-rewriter.cc",
971 "src/pending-compilation-error-handler.cc",
972 "src/pending-compilation-error-handler.h",
973 "src/preparse-data-format.h",
974 "src/preparse-data.cc",
975 "src/preparse-data.h",
978 "src/prettyprinter.cc",
979 "src/prettyprinter.h",
980 "src/profile-generator-inl.h",
981 "src/profile-generator.cc",
982 "src/profile-generator.h",
983 "src/property-details.h",
987 "src/regexp-macro-assembler-irregexp-inl.h",
988 "src/regexp-macro-assembler-irregexp.cc",
989 "src/regexp-macro-assembler-irregexp.h",
990 "src/regexp-macro-assembler-tracer.cc",
991 "src/regexp-macro-assembler-tracer.h",
992 "src/regexp-macro-assembler.cc",
993 "src/regexp-macro-assembler.h",
994 "src/regexp-stack.cc",
995 "src/regexp-stack.h",
998 "src/runtime-profiler.cc",
999 "src/runtime-profiler.h",
1000 "src/runtime/runtime-array.cc",
1001 "src/runtime/runtime-classes.cc",
1002 "src/runtime/runtime-collections.cc",
1003 "src/runtime/runtime-compiler.cc",
1004 "src/runtime/runtime-date.cc",
1005 "src/runtime/runtime-debug.cc",
1006 "src/runtime/runtime-forin.cc",
1007 "src/runtime/runtime-function.cc",
1008 "src/runtime/runtime-generator.cc",
1009 "src/runtime/runtime-i18n.cc",
1010 "src/runtime/runtime-internal.cc",
1011 "src/runtime/runtime-json.cc",
1012 "src/runtime/runtime-literals.cc",
1013 "src/runtime/runtime-liveedit.cc",
1014 "src/runtime/runtime-maths.cc",
1015 "src/runtime/runtime-numbers.cc",
1016 "src/runtime/runtime-object.cc",
1017 "src/runtime/runtime-observe.cc",
1018 "src/runtime/runtime-proxy.cc",
1019 "src/runtime/runtime-regexp.cc",
1020 "src/runtime/runtime-scopes.cc",
1021 "src/runtime/runtime-strings.cc",
1022 "src/runtime/runtime-symbol.cc",
1023 "src/runtime/runtime-test.cc",
1024 "src/runtime/runtime-typedarray.cc",
1025 "src/runtime/runtime-uri.cc",
1026 "src/runtime/runtime-utils.h",
1027 "src/runtime/runtime.cc",
1028 "src/runtime/runtime.h",
1029 "src/safepoint-table.cc",
1030 "src/safepoint-table.h",
1033 "src/scanner-character-streams.cc",
1034 "src/scanner-character-streams.h",
1042 "src/small-pointer-list.h",
1043 "src/smart-pointers.h",
1044 "src/snapshot/natives.h",
1045 "src/snapshot/serialize.cc",
1046 "src/snapshot/serialize.h",
1047 "src/snapshot/snapshot-common.cc",
1048 "src/snapshot/snapshot-source-sink.cc",
1049 "src/snapshot/snapshot-source-sink.h",
1050 "src/snapshot/snapshot.h",
1051 "src/string-builder.cc",
1052 "src/string-builder.h",
1053 "src/string-search.cc",
1054 "src/string-search.h",
1055 "src/string-stream.cc",
1056 "src/string-stream.h",
1057 "src/strings-storage.cc",
1058 "src/strings-storage.h",
1063 "src/transitions-inl.h",
1064 "src/transitions.cc",
1065 "src/transitions.h",
1066 "src/type-feedback-vector-inl.h",
1067 "src/type-feedback-vector.cc",
1068 "src/type-feedback-vector.h",
1076 "src/unbound-queue-inl.h",
1077 "src/unbound-queue.h",
1078 "src/unicode-inl.h",
1081 "src/unicode-decoder.cc",
1082 "src/unicode-decoder.h",
1095 "src/vm-state-inl.h",
1099 "src/third_party/fdlibm/fdlibm.cc",
1100 "src/third_party/fdlibm/fdlibm.h",
1103 if (v8_target_arch == "x86") {
1105 "src/ia32/assembler-ia32-inl.h",
1106 "src/ia32/assembler-ia32.cc",
1107 "src/ia32/assembler-ia32.h",
1108 "src/ia32/builtins-ia32.cc",
1109 "src/ia32/code-stubs-ia32.cc",
1110 "src/ia32/code-stubs-ia32.h",
1111 "src/ia32/codegen-ia32.cc",
1112 "src/ia32/codegen-ia32.h",
1113 "src/ia32/cpu-ia32.cc",
1114 "src/ia32/debug-ia32.cc",
1115 "src/ia32/deoptimizer-ia32.cc",
1116 "src/ia32/disasm-ia32.cc",
1117 "src/ia32/frames-ia32.cc",
1118 "src/ia32/frames-ia32.h",
1119 "src/ia32/full-codegen-ia32.cc",
1120 "src/ia32/interface-descriptors-ia32.cc",
1121 "src/ia32/lithium-codegen-ia32.cc",
1122 "src/ia32/lithium-codegen-ia32.h",
1123 "src/ia32/lithium-gap-resolver-ia32.cc",
1124 "src/ia32/lithium-gap-resolver-ia32.h",
1125 "src/ia32/lithium-ia32.cc",
1126 "src/ia32/lithium-ia32.h",
1127 "src/ia32/macro-assembler-ia32.cc",
1128 "src/ia32/macro-assembler-ia32.h",
1129 "src/ia32/regexp-macro-assembler-ia32.cc",
1130 "src/ia32/regexp-macro-assembler-ia32.h",
1131 "src/compiler/ia32/code-generator-ia32.cc",
1132 "src/compiler/ia32/instruction-codes-ia32.h",
1133 "src/compiler/ia32/instruction-selector-ia32.cc",
1134 "src/compiler/ia32/linkage-ia32.cc",
1135 "src/ic/ia32/access-compiler-ia32.cc",
1136 "src/ic/ia32/handler-compiler-ia32.cc",
1137 "src/ic/ia32/ic-ia32.cc",
1138 "src/ic/ia32/ic-compiler-ia32.cc",
1139 "src/ic/ia32/stub-cache-ia32.cc",
1141 } else if (v8_target_arch == "x64") {
1143 "src/x64/assembler-x64-inl.h",
1144 "src/x64/assembler-x64.cc",
1145 "src/x64/assembler-x64.h",
1146 "src/x64/builtins-x64.cc",
1147 "src/x64/code-stubs-x64.cc",
1148 "src/x64/code-stubs-x64.h",
1149 "src/x64/codegen-x64.cc",
1150 "src/x64/codegen-x64.h",
1151 "src/x64/cpu-x64.cc",
1152 "src/x64/debug-x64.cc",
1153 "src/x64/deoptimizer-x64.cc",
1154 "src/x64/disasm-x64.cc",
1155 "src/x64/frames-x64.cc",
1156 "src/x64/frames-x64.h",
1157 "src/x64/full-codegen-x64.cc",
1158 "src/x64/interface-descriptors-x64.cc",
1159 "src/x64/lithium-codegen-x64.cc",
1160 "src/x64/lithium-codegen-x64.h",
1161 "src/x64/lithium-gap-resolver-x64.cc",
1162 "src/x64/lithium-gap-resolver-x64.h",
1163 "src/x64/lithium-x64.cc",
1164 "src/x64/lithium-x64.h",
1165 "src/x64/macro-assembler-x64.cc",
1166 "src/x64/macro-assembler-x64.h",
1167 "src/x64/regexp-macro-assembler-x64.cc",
1168 "src/x64/regexp-macro-assembler-x64.h",
1169 "src/compiler/x64/code-generator-x64.cc",
1170 "src/compiler/x64/instruction-codes-x64.h",
1171 "src/compiler/x64/instruction-selector-x64.cc",
1172 "src/compiler/x64/linkage-x64.cc",
1173 "src/ic/x64/access-compiler-x64.cc",
1174 "src/ic/x64/handler-compiler-x64.cc",
1175 "src/ic/x64/ic-x64.cc",
1176 "src/ic/x64/ic-compiler-x64.cc",
1177 "src/ic/x64/stub-cache-x64.cc",
1179 } else if (v8_target_arch == "arm") {
1181 "src/arm/assembler-arm-inl.h",
1182 "src/arm/assembler-arm.cc",
1183 "src/arm/assembler-arm.h",
1184 "src/arm/builtins-arm.cc",
1185 "src/arm/code-stubs-arm.cc",
1186 "src/arm/code-stubs-arm.h",
1187 "src/arm/codegen-arm.cc",
1188 "src/arm/codegen-arm.h",
1189 "src/arm/constants-arm.h",
1190 "src/arm/constants-arm.cc",
1191 "src/arm/cpu-arm.cc",
1192 "src/arm/debug-arm.cc",
1193 "src/arm/deoptimizer-arm.cc",
1194 "src/arm/disasm-arm.cc",
1195 "src/arm/frames-arm.cc",
1196 "src/arm/frames-arm.h",
1197 "src/arm/full-codegen-arm.cc",
1198 "src/arm/interface-descriptors-arm.cc",
1199 "src/arm/interface-descriptors-arm.h",
1200 "src/arm/lithium-arm.cc",
1201 "src/arm/lithium-arm.h",
1202 "src/arm/lithium-codegen-arm.cc",
1203 "src/arm/lithium-codegen-arm.h",
1204 "src/arm/lithium-gap-resolver-arm.cc",
1205 "src/arm/lithium-gap-resolver-arm.h",
1206 "src/arm/macro-assembler-arm.cc",
1207 "src/arm/macro-assembler-arm.h",
1208 "src/arm/regexp-macro-assembler-arm.cc",
1209 "src/arm/regexp-macro-assembler-arm.h",
1210 "src/arm/simulator-arm.cc",
1211 "src/compiler/arm/code-generator-arm.cc",
1212 "src/compiler/arm/instruction-codes-arm.h",
1213 "src/compiler/arm/instruction-selector-arm.cc",
1214 "src/compiler/arm/linkage-arm.cc",
1215 "src/ic/arm/access-compiler-arm.cc",
1216 "src/ic/arm/handler-compiler-arm.cc",
1217 "src/ic/arm/ic-arm.cc",
1218 "src/ic/arm/ic-compiler-arm.cc",
1219 "src/ic/arm/stub-cache-arm.cc",
1221 } else if (v8_target_arch == "arm64") {
1223 "src/arm64/assembler-arm64.cc",
1224 "src/arm64/assembler-arm64.h",
1225 "src/arm64/assembler-arm64-inl.h",
1226 "src/arm64/builtins-arm64.cc",
1227 "src/arm64/codegen-arm64.cc",
1228 "src/arm64/codegen-arm64.h",
1229 "src/arm64/code-stubs-arm64.cc",
1230 "src/arm64/code-stubs-arm64.h",
1231 "src/arm64/constants-arm64.h",
1232 "src/arm64/cpu-arm64.cc",
1233 "src/arm64/debug-arm64.cc",
1234 "src/arm64/decoder-arm64.cc",
1235 "src/arm64/decoder-arm64.h",
1236 "src/arm64/decoder-arm64-inl.h",
1237 "src/arm64/deoptimizer-arm64.cc",
1238 "src/arm64/disasm-arm64.cc",
1239 "src/arm64/disasm-arm64.h",
1240 "src/arm64/frames-arm64.cc",
1241 "src/arm64/frames-arm64.h",
1242 "src/arm64/full-codegen-arm64.cc",
1243 "src/arm64/instructions-arm64.cc",
1244 "src/arm64/instructions-arm64.h",
1245 "src/arm64/instrument-arm64.cc",
1246 "src/arm64/instrument-arm64.h",
1247 "src/arm64/interface-descriptors-arm64.cc",
1248 "src/arm64/interface-descriptors-arm64.h",
1249 "src/arm64/lithium-arm64.cc",
1250 "src/arm64/lithium-arm64.h",
1251 "src/arm64/lithium-codegen-arm64.cc",
1252 "src/arm64/lithium-codegen-arm64.h",
1253 "src/arm64/lithium-gap-resolver-arm64.cc",
1254 "src/arm64/lithium-gap-resolver-arm64.h",
1255 "src/arm64/macro-assembler-arm64.cc",
1256 "src/arm64/macro-assembler-arm64.h",
1257 "src/arm64/macro-assembler-arm64-inl.h",
1258 "src/arm64/regexp-macro-assembler-arm64.cc",
1259 "src/arm64/regexp-macro-assembler-arm64.h",
1260 "src/arm64/simulator-arm64.cc",
1261 "src/arm64/simulator-arm64.h",
1262 "src/arm64/utils-arm64.cc",
1263 "src/arm64/utils-arm64.h",
1264 "src/compiler/arm64/code-generator-arm64.cc",
1265 "src/compiler/arm64/instruction-codes-arm64.h",
1266 "src/compiler/arm64/instruction-selector-arm64.cc",
1267 "src/compiler/arm64/linkage-arm64.cc",
1268 "src/ic/arm64/access-compiler-arm64.cc",
1269 "src/ic/arm64/handler-compiler-arm64.cc",
1270 "src/ic/arm64/ic-arm64.cc",
1271 "src/ic/arm64/ic-compiler-arm64.cc",
1272 "src/ic/arm64/stub-cache-arm64.cc",
1274 } else if (v8_target_arch == "mipsel") {
1276 "src/mips/assembler-mips.cc",
1277 "src/mips/assembler-mips.h",
1278 "src/mips/assembler-mips-inl.h",
1279 "src/mips/builtins-mips.cc",
1280 "src/mips/codegen-mips.cc",
1281 "src/mips/codegen-mips.h",
1282 "src/mips/code-stubs-mips.cc",
1283 "src/mips/code-stubs-mips.h",
1284 "src/mips/constants-mips.cc",
1285 "src/mips/constants-mips.h",
1286 "src/mips/cpu-mips.cc",
1287 "src/mips/debug-mips.cc",
1288 "src/mips/deoptimizer-mips.cc",
1289 "src/mips/disasm-mips.cc",
1290 "src/mips/frames-mips.cc",
1291 "src/mips/frames-mips.h",
1292 "src/mips/full-codegen-mips.cc",
1293 "src/mips/interface-descriptors-mips.cc",
1294 "src/mips/lithium-codegen-mips.cc",
1295 "src/mips/lithium-codegen-mips.h",
1296 "src/mips/lithium-gap-resolver-mips.cc",
1297 "src/mips/lithium-gap-resolver-mips.h",
1298 "src/mips/lithium-mips.cc",
1299 "src/mips/lithium-mips.h",
1300 "src/mips/macro-assembler-mips.cc",
1301 "src/mips/macro-assembler-mips.h",
1302 "src/mips/regexp-macro-assembler-mips.cc",
1303 "src/mips/regexp-macro-assembler-mips.h",
1304 "src/mips/simulator-mips.cc",
1305 "src/compiler/mips/code-generator-mips.cc",
1306 "src/compiler/mips/instruction-codes-mips.h",
1307 "src/compiler/mips/instruction-selector-mips.cc",
1308 "src/compiler/mips/linkage-mips.cc",
1309 "src/ic/mips/access-compiler-mips.cc",
1310 "src/ic/mips/handler-compiler-mips.cc",
1311 "src/ic/mips/ic-mips.cc",
1312 "src/ic/mips/ic-compiler-mips.cc",
1313 "src/ic/mips/stub-cache-mips.cc",
1315 } else if (v8_target_arch == "mips64el") {
1317 "src/mips64/assembler-mips64.cc",
1318 "src/mips64/assembler-mips64.h",
1319 "src/mips64/assembler-mips64-inl.h",
1320 "src/mips64/builtins-mips64.cc",
1321 "src/mips64/codegen-mips64.cc",
1322 "src/mips64/codegen-mips64.h",
1323 "src/mips64/code-stubs-mips64.cc",
1324 "src/mips64/code-stubs-mips64.h",
1325 "src/mips64/constants-mips64.cc",
1326 "src/mips64/constants-mips64.h",
1327 "src/mips64/cpu-mips64.cc",
1328 "src/mips64/debug-mips64.cc",
1329 "src/mips64/deoptimizer-mips64.cc",
1330 "src/mips64/disasm-mips64.cc",
1331 "src/mips64/frames-mips64.cc",
1332 "src/mips64/frames-mips64.h",
1333 "src/mips64/full-codegen-mips64.cc",
1334 "src/mips64/interface-descriptors-mips64.cc",
1335 "src/mips64/lithium-codegen-mips64.cc",
1336 "src/mips64/lithium-codegen-mips64.h",
1337 "src/mips64/lithium-gap-resolver-mips64.cc",
1338 "src/mips64/lithium-gap-resolver-mips64.h",
1339 "src/mips64/lithium-mips64.cc",
1340 "src/mips64/lithium-mips64.h",
1341 "src/mips64/macro-assembler-mips64.cc",
1342 "src/mips64/macro-assembler-mips64.h",
1343 "src/mips64/regexp-macro-assembler-mips64.cc",
1344 "src/mips64/regexp-macro-assembler-mips64.h",
1345 "src/mips64/simulator-mips64.cc",
1346 "src/ic/mips64/access-compiler-mips64.cc",
1347 "src/ic/mips64/handler-compiler-mips64.cc",
1348 "src/ic/mips64/ic-mips64.cc",
1349 "src/ic/mips64/ic-compiler-mips64.cc",
1350 "src/ic/mips64/stub-cache-mips64.cc",
1354 configs -= [ "//build/config/compiler:chromium_code" ]
1355 configs += [ "//build/config/compiler:no_chromium_code" ]
1363 configs -= [ "//build/config/compiler:optimize" ]
1364 configs += [ "//build/config/compiler:optimize_max" ]
1373 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1374 cflags = [ "/wd4267" ]
1377 if (v8_enable_i18n_support) {
1378 deps += [ "//third_party/icu" ]
1380 deps += [ "//third_party/icu:icudata" ]
1383 # TODO(jochen): Add support for icu_use_data_file_flag
1384 defines += [ "ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE" ]
1392 if (v8_postmortem_support) {
1393 sources += [ "$target_gen_dir/debug-support.cc" ]
1394 deps += [ ":postmortem-metadata" ]
1398 source_set("v8_libbase") {
1399 visibility = [ ":*" ] # Only targets in this file can depend on this.
1402 "src/base/adapters.h",
1403 "src/base/atomicops.h",
1404 "src/base/atomicops_internals_arm64_gcc.h",
1405 "src/base/atomicops_internals_arm_gcc.h",
1406 "src/base/atomicops_internals_atomicword_compat.h",
1407 "src/base/atomicops_internals_mac.h",
1408 "src/base/atomicops_internals_mips_gcc.h",
1409 "src/base/atomicops_internals_tsan.h",
1410 "src/base/atomicops_internals_x86_gcc.cc",
1411 "src/base/atomicops_internals_x86_gcc.h",
1412 "src/base/atomicops_internals_x86_msvc.h",
1415 "src/base/build_config.h",
1418 "src/base/division-by-constant.cc",
1419 "src/base/division-by-constant.h",
1421 "src/base/functional.cc",
1422 "src/base/functional.h",
1423 "src/base/iterator.h",
1424 "src/base/lazy-instance.h",
1425 "src/base/logging.cc",
1426 "src/base/logging.h",
1427 "src/base/macros.h",
1430 "src/base/platform/elapsed-timer.h",
1431 "src/base/platform/time.cc",
1432 "src/base/platform/time.h",
1433 "src/base/platform/condition-variable.cc",
1434 "src/base/platform/condition-variable.h",
1435 "src/base/platform/mutex.cc",
1436 "src/base/platform/mutex.h",
1437 "src/base/platform/platform.h",
1438 "src/base/platform/semaphore.cc",
1439 "src/base/platform/semaphore.h",
1440 "src/base/safe_conversions.h",
1441 "src/base/safe_conversions_impl.h",
1442 "src/base/safe_math.h",
1443 "src/base/safe_math_impl.h",
1444 "src/base/sys-info.cc",
1445 "src/base/sys-info.h",
1446 "src/base/utils/random-number-generator.cc",
1447 "src/base/utils/random-number-generator.h",
1450 configs -= [ "//build/config/compiler:chromium_code" ]
1451 configs += [ "//build/config/compiler:no_chromium_code" ]
1453 ":internal_config_base",
1459 configs -= [ "//build/config/compiler:optimize" ]
1460 configs += [ "//build/config/compiler:optimize_max" ]
1466 sources += [ "src/base/platform/platform-posix.cc" ]
1470 sources += [ "src/base/platform/platform-linux.cc" ]
1472 libs = [ "dl", "rt" ]
1473 } else if (is_android) {
1474 defines += [ "CAN_USE_VFP_INSTRUCTIONS" ]
1476 if (current_toolchain == host_toolchain) {
1477 libs = [ "dl", "rt" ]
1478 if (host_os == "mac") {
1479 sources += [ "src/base/platform/platform-macos.cc" ]
1481 sources += [ "src/base/platform/platform-linux.cc" ]
1484 sources += [ "src/base/platform/platform-linux.cc" ]
1486 } else if (is_mac) {
1487 sources += [ "src/base/platform/platform-macos.cc" ]
1488 } else if (is_win) {
1489 # TODO(jochen): Add support for cygwin.
1491 "src/base/platform/platform-win32.cc",
1492 "src/base/win32-headers.h",
1495 defines += [ "_CRT_RAND_S" ] # for rand_s()
1503 # TODO(jochen): Add support for qnx, freebsd, openbsd, netbsd, and solaris.
1506 source_set("v8_libplatform") {
1508 "include/libplatform/libplatform.h",
1509 "src/libplatform/default-platform.cc",
1510 "src/libplatform/default-platform.h",
1511 "src/libplatform/task-queue.cc",
1512 "src/libplatform/task-queue.h",
1513 "src/libplatform/worker-thread.cc",
1514 "src/libplatform/worker-thread.h",
1517 configs -= [ "//build/config/compiler:chromium_code" ]
1518 configs += [ "//build/config/compiler:no_chromium_code" ]
1520 ":internal_config_base",
1526 configs -= [ "//build/config/compiler:optimize" ]
1527 configs += [ "//build/config/compiler:optimize_max" ]
1535 ###############################################################################
1539 if (current_toolchain == snapshot_toolchain) {
1540 executable("mksnapshot") {
1541 visibility = [ ":*" ] # Only targets in this file can depend on this.
1544 "src/snapshot/mksnapshot.cc",
1547 configs -= [ "//build/config/compiler:chromium_code" ]
1548 configs += [ "//build/config/compiler:no_chromium_code" ]
1559 "//build/config/sanitizers:deps",
1564 ###############################################################################
1568 if (component_mode == "shared_library") {
1571 "src/v8dll-main.cc",
1574 if (v8_use_snapshot && v8_use_external_startup_data) {
1577 ":v8_external_snapshot",
1579 } else if (v8_use_snapshot) {
1583 # v8_snapshot should be public so downstream targets can declare the
1584 # snapshot file as their input.
1589 assert(!v8_use_external_startup_data)
1596 configs -= [ "//build/config/compiler:chromium_code" ]
1597 configs += [ "//build/config/compiler:no_chromium_code" ]
1604 public_configs = [ ":external_config" ]
1607 if (is_android && current_toolchain != host_toolchain) {
1613 if (v8_use_snapshot && v8_use_external_startup_data) {
1616 ":v8_external_snapshot",
1618 } else if (v8_use_snapshot) {
1626 assert(!v8_use_external_startup_data)
1633 public_configs = [ ":external_config" ]
1637 if ((current_toolchain == host_toolchain && v8_toolset_for_d8 == "host") ||
1638 (current_toolchain != host_toolchain && v8_toolset_for_d8 == "target")) {
1643 "src/startup-data-util.h",
1644 "src/startup-data-util.cc",
1647 configs -= [ "//build/config/compiler:chromium_code" ]
1648 configs += [ "//build/config/compiler:no_chromium_code" ]
1650 # Note: don't use :internal_config here because this target will get
1651 # the :external_config applied to it by virtue of depending on :v8, and
1652 # you can't have both applied to the same target.
1653 ":internal_config_base",
1662 "//build/config/sanitizers:deps",
1665 # TODO(jochen): Add support for readline and vtunejit.
1668 sources += [ "src/d8-posix.cc" ]
1669 } else if (is_win) {
1670 sources += [ "src/d8-windows.cc" ]
1673 if (component_mode != "shared_library") {
1676 "$target_gen_dir/d8-js.cc",
1679 if (v8_enable_i18n_support) {
1680 deps += [ "//third_party/icu" ]