Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Side by Side Diff: BUILD.gn

Issue 2725873004: Merged: This is a speculative chain of reverts to improve a Chrome perf regression. See crbug.co ... (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/bootstrapper.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/android/config.gni") 5 import("//build/config/android/config.gni")
6 import("//build/config/arm.gni") 6 import("//build/config/arm.gni")
7 import("//build/config/dcheck_always_on.gni") 7 import("//build/config/dcheck_always_on.gni")
8 import("//build/config/mips.gni") 8 import("//build/config/mips.gni")
9 import("//build/config/sanitizers/sanitizers.gni") 9 import("//build/config/sanitizers/sanitizers.gni")
10 10
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 469
470 if (v8_use_external_startup_data) { 470 if (v8_use_external_startup_data) {
471 outputs += [ "$target_gen_dir/libraries.bin" ] 471 outputs += [ "$target_gen_dir/libraries.bin" ]
472 args += [ 472 args += [
473 "--startup_blob", 473 "--startup_blob",
474 rebase_path("$target_gen_dir/libraries.bin", root_build_dir), 474 rebase_path("$target_gen_dir/libraries.bin", root_build_dir),
475 ] 475 ]
476 } 476 }
477 } 477 }
478 478
479 action("js2c_experimental") {
480 visibility = [ ":*" ] # Only targets in this file can depend on this.
481
482 script = "tools/js2c.py"
483
484 # The script depends on this other script, this rule causes a rebuild if it
485 # changes.
486 inputs = [
487 "tools/jsmin.py",
488 ]
489
490 # NOSORT
491 sources = [
492 "src/js/macros.py",
493 "src/messages.h",
494 "src/js/harmony-atomics.js",
495 ]
496
497 outputs = [
498 "$target_gen_dir/experimental-libraries.cc",
499 ]
500
501 args = [
502 rebase_path("$target_gen_dir/experimental-libraries.cc",
503 root_build_dir),
504 "EXPERIMENTAL",
505 ] + rebase_path(sources, root_build_dir)
506
507 if (v8_use_external_startup_data) {
508 outputs += [ "$target_gen_dir/libraries_experimental.bin" ]
509 args += [
510 "--startup_blob",
511 rebase_path("$target_gen_dir/libraries_experimental.bin", root_build_dir),
512 ]
513 }
514 }
515
479 action("js2c_extras") { 516 action("js2c_extras") {
480 visibility = [ ":*" ] # Only targets in this file can depend on this. 517 visibility = [ ":*" ] # Only targets in this file can depend on this.
481 518
482 script = "tools/js2c.py" 519 script = "tools/js2c.py"
483 520
484 # The script depends on this other script, this rule causes a rebuild if it 521 # The script depends on this other script, this rule causes a rebuild if it
485 # changes. 522 # changes.
486 inputs = [ 523 inputs = [
487 "tools/jsmin.py", 524 "tools/jsmin.py",
488 ] 525 ]
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 } 616 }
580 } 617 }
581 } 618 }
582 619
583 if (v8_use_external_startup_data) { 620 if (v8_use_external_startup_data) {
584 action("natives_blob") { 621 action("natives_blob") {
585 visibility = [ ":*" ] # Only targets in this file can depend on this. 622 visibility = [ ":*" ] # Only targets in this file can depend on this.
586 623
587 deps = [ 624 deps = [
588 ":js2c", 625 ":js2c",
626 ":js2c_experimental",
589 ":js2c_experimental_extras", 627 ":js2c_experimental_extras",
590 ":js2c_extras", 628 ":js2c_extras",
591 ] 629 ]
592 630
593 # NOSORT 631 # NOSORT
594 sources = [ 632 sources = [
595 "$target_gen_dir/libraries.bin", 633 "$target_gen_dir/libraries.bin",
634 "$target_gen_dir/libraries_experimental.bin",
596 "$target_gen_dir/libraries_extras.bin", 635 "$target_gen_dir/libraries_extras.bin",
597 "$target_gen_dir/libraries_experimental_extras.bin", 636 "$target_gen_dir/libraries_experimental_extras.bin",
598 ] 637 ]
599 638
600 outputs = [ 639 outputs = [
601 "$root_out_dir/natives_blob.bin", 640 "$root_out_dir/natives_blob.bin",
602 ] 641 ]
603 642
604 script = "tools/concatenate-files.py" 643 script = "tools/concatenate-files.py"
605 644
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 ":v8_nosnapshot", 787 ":v8_nosnapshot",
749 ] 788 ]
750 } 789 }
751 } 790 }
752 791
753 v8_source_set("v8_nosnapshot") { 792 v8_source_set("v8_nosnapshot") {
754 visibility = [ ":*" ] # Only targets in this file can depend on this. 793 visibility = [ ":*" ] # Only targets in this file can depend on this.
755 794
756 deps = [ 795 deps = [
757 ":js2c", 796 ":js2c",
797 ":js2c_experimental",
758 ":js2c_experimental_extras", 798 ":js2c_experimental_extras",
759 ":js2c_extras", 799 ":js2c_extras",
760 ":v8_base", 800 ":v8_base",
761 ] 801 ]
762 802
763 sources = [ 803 sources = [
764 "$target_gen_dir/experimental-extras-libraries.cc", 804 "$target_gen_dir/experimental-extras-libraries.cc",
805 "$target_gen_dir/experimental-libraries.cc",
765 "$target_gen_dir/extras-libraries.cc", 806 "$target_gen_dir/extras-libraries.cc",
766 "$target_gen_dir/libraries.cc", 807 "$target_gen_dir/libraries.cc",
767 "src/snapshot/snapshot-empty.cc", 808 "src/snapshot/snapshot-empty.cc",
768 ] 809 ]
769 810
770 configs = [ ":internal_config" ] 811 configs = [ ":internal_config" ]
771 } 812 }
772 813
773 v8_source_set("v8_snapshot") { 814 v8_source_set("v8_snapshot") {
774 # Only targets in this file and the top-level visibility target can 815 # Only targets in this file and the top-level visibility target can
775 # depend on this. 816 # depend on this.
776 visibility = [ 817 visibility = [
777 ":*", 818 ":*",
778 "//:gn_visibility", 819 "//:gn_visibility",
779 ] 820 ]
780 821
781 deps = [ 822 deps = [
782 ":js2c", 823 ":js2c",
824 ":js2c_experimental",
783 ":js2c_experimental_extras", 825 ":js2c_experimental_extras",
784 ":js2c_extras", 826 ":js2c_extras",
785 ":v8_base", 827 ":v8_base",
786 ] 828 ]
787 public_deps = [ 829 public_deps = [
788 # This should be public so downstream targets can declare the snapshot 830 # This should be public so downstream targets can declare the snapshot
789 # output file as their inputs. 831 # output file as their inputs.
790 ":run_mksnapshot", 832 ":run_mksnapshot",
791 ] 833 ]
792 834
793 sources = [ 835 sources = [
794 "$target_gen_dir/experimental-extras-libraries.cc", 836 "$target_gen_dir/experimental-extras-libraries.cc",
837 "$target_gen_dir/experimental-libraries.cc",
795 "$target_gen_dir/extras-libraries.cc", 838 "$target_gen_dir/extras-libraries.cc",
796 "$target_gen_dir/libraries.cc", 839 "$target_gen_dir/libraries.cc",
797 "$target_gen_dir/snapshot.cc", 840 "$target_gen_dir/snapshot.cc",
798 ] 841 ]
799 842
800 configs = [ ":internal_config" ] 843 configs = [ ":internal_config" ]
801 } 844 }
802 845
803 if (v8_use_external_startup_data) { 846 if (v8_use_external_startup_data) {
804 v8_source_set("v8_external_snapshot") { 847 v8_source_set("v8_external_snapshot") {
805 visibility = [ ":*" ] # Only targets in this file can depend on this. 848 visibility = [ ":*" ] # Only targets in this file can depend on this.
806 849
807 deps = [ 850 deps = [
808 ":js2c", 851 ":js2c",
852 ":js2c_experimental",
809 ":js2c_experimental_extras", 853 ":js2c_experimental_extras",
810 ":js2c_extras", 854 ":js2c_extras",
811 ":v8_base", 855 ":v8_base",
812 ] 856 ]
813 public_deps = [ 857 public_deps = [
814 ":natives_blob", 858 ":natives_blob",
815 ":run_mksnapshot", 859 ":run_mksnapshot",
816 ] 860 ]
817 861
818 sources = [ 862 sources = [
(...skipping 2252 matching lines...) Expand 10 before | Expand all | Expand 10 after
3071 ] 3115 ]
3072 3116
3073 configs = [ 3117 configs = [
3074 ":external_config", 3118 ":external_config",
3075 ":internal_config_base", 3119 ":internal_config_base",
3076 ] 3120 ]
3077 } 3121 }
3078 3122
3079 v8_fuzzer("wasm_compile_fuzzer") { 3123 v8_fuzzer("wasm_compile_fuzzer") {
3080 } 3124 }
OLDNEW
« no previous file with comments | « no previous file | src/bootstrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698