OLD | NEW |
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 } | 79 } |
80 } | 80 } |
81 if (v8_enable_gdbjit == "") { | 81 if (v8_enable_gdbjit == "") { |
82 if (defined(v8_enable_gdbjit_default)) { | 82 if (defined(v8_enable_gdbjit_default)) { |
83 v8_enable_gdbjit = v8_enable_gdbjit_default | 83 v8_enable_gdbjit = v8_enable_gdbjit_default |
84 } else { | 84 } else { |
85 v8_enable_gdbjit = false | 85 v8_enable_gdbjit = false |
86 } | 86 } |
87 } | 87 } |
88 | 88 |
89 v8_generated_peephole_source = "$target_gen_dir/bytecode-peephole-table.cc" | |
90 v8_random_seed = "314159265" | 89 v8_random_seed = "314159265" |
91 v8_toolset_for_shell = "host" | 90 v8_toolset_for_shell = "host" |
92 | 91 |
93 ############################################################################### | 92 ############################################################################### |
94 # Configurations | 93 # Configurations |
95 # | 94 # |
96 config("internal_config") { | 95 config("internal_config") { |
97 visibility = [ ":*" ] # Only targets in this file can depend on this. | 96 visibility = [ ":*" ] # Only targets in this file can depend on this. |
98 | 97 |
99 include_dirs = [ "." ] | 98 include_dirs = [ "." ] |
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
643 rebase_path("$root_out_dir/snapshot_blob.bin", root_build_dir), | 642 rebase_path("$root_out_dir/snapshot_blob.bin", root_build_dir), |
644 ] | 643 ] |
645 } | 644 } |
646 | 645 |
647 if (v8_embed_script != "") { | 646 if (v8_embed_script != "") { |
648 sources += [ v8_embed_script ] | 647 sources += [ v8_embed_script ] |
649 args += [ rebase_path(v8_embed_script, root_build_dir) ] | 648 args += [ rebase_path(v8_embed_script, root_build_dir) ] |
650 } | 649 } |
651 } | 650 } |
652 | 651 |
653 action("run_mkpeephole") { | |
654 visibility = [ ":*" ] # Only targets in this file can depend on this. | |
655 | |
656 deps = [ ":mkpeephole($v8_snapshot_toolchain)" ] | |
657 | |
658 outputs = [ v8_generated_peephole_source ] | |
659 | |
660 sources = [] | |
661 | |
662 script = "tools/run.py" | |
663 | |
664 args = [ | |
665 "./" + rebase_path(get_label_info(":mkpeephole($v8_snapshot_toolchain)", | |
666 "root_out_dir") + "/mkpeephole", | |
667 root_build_dir), | |
668 rebase_path(v8_generated_peephole_source, root_build_dir), | |
669 ] | |
670 } | |
671 | |
672 action("v8_dump_build_config") { | 652 action("v8_dump_build_config") { |
673 script = "tools/testrunner/utils/dump_build_config.py" | 653 script = "tools/testrunner/utils/dump_build_config.py" |
674 outputs = [ | 654 outputs = [ |
675 "$root_out_dir/v8_build_config.json", | 655 "$root_out_dir/v8_build_config.json", |
676 ] | 656 ] |
677 args = [ | 657 args = [ |
678 rebase_path("$root_out_dir/v8_build_config.json", root_build_dir), | 658 rebase_path("$root_out_dir/v8_build_config.json", root_build_dir), |
679 "dcheck_always_on=$dcheck_always_on", | 659 "dcheck_always_on=$dcheck_always_on", |
680 "is_asan=$is_asan", | 660 "is_asan=$is_asan", |
681 "is_cfi=$is_cfi", | 661 "is_cfi=$is_cfi", |
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1324 "src/interpreter/bytecode-dead-code-optimizer.h", | 1304 "src/interpreter/bytecode-dead-code-optimizer.h", |
1325 "src/interpreter/bytecode-decoder.cc", | 1305 "src/interpreter/bytecode-decoder.cc", |
1326 "src/interpreter/bytecode-decoder.h", | 1306 "src/interpreter/bytecode-decoder.h", |
1327 "src/interpreter/bytecode-flags.cc", | 1307 "src/interpreter/bytecode-flags.cc", |
1328 "src/interpreter/bytecode-flags.h", | 1308 "src/interpreter/bytecode-flags.h", |
1329 "src/interpreter/bytecode-generator.cc", | 1309 "src/interpreter/bytecode-generator.cc", |
1330 "src/interpreter/bytecode-generator.h", | 1310 "src/interpreter/bytecode-generator.h", |
1331 "src/interpreter/bytecode-label.h", | 1311 "src/interpreter/bytecode-label.h", |
1332 "src/interpreter/bytecode-peephole-optimizer.cc", | 1312 "src/interpreter/bytecode-peephole-optimizer.cc", |
1333 "src/interpreter/bytecode-peephole-optimizer.h", | 1313 "src/interpreter/bytecode-peephole-optimizer.h", |
1334 "src/interpreter/bytecode-peephole-table.h", | |
1335 "src/interpreter/bytecode-pipeline.cc", | 1314 "src/interpreter/bytecode-pipeline.cc", |
1336 "src/interpreter/bytecode-pipeline.h", | 1315 "src/interpreter/bytecode-pipeline.h", |
1337 "src/interpreter/bytecode-register-allocator.cc", | 1316 "src/interpreter/bytecode-register-allocator.cc", |
1338 "src/interpreter/bytecode-register-allocator.h", | 1317 "src/interpreter/bytecode-register-allocator.h", |
1339 "src/interpreter/bytecode-register-optimizer.cc", | 1318 "src/interpreter/bytecode-register-optimizer.cc", |
1340 "src/interpreter/bytecode-register-optimizer.h", | 1319 "src/interpreter/bytecode-register-optimizer.h", |
1341 "src/interpreter/bytecode-register.cc", | 1320 "src/interpreter/bytecode-register.cc", |
1342 "src/interpreter/bytecode-register.h", | 1321 "src/interpreter/bytecode-register.h", |
1343 "src/interpreter/bytecode-traits.h", | 1322 "src/interpreter/bytecode-traits.h", |
1344 "src/interpreter/bytecodes.cc", | 1323 "src/interpreter/bytecodes.cc", |
(...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1923 } | 1902 } |
1924 | 1903 |
1925 configs = [ ":internal_config" ] | 1904 configs = [ ":internal_config" ] |
1926 | 1905 |
1927 defines = [] | 1906 defines = [] |
1928 deps = [ | 1907 deps = [ |
1929 ":v8_libbase", | 1908 ":v8_libbase", |
1930 ":v8_libsampler", | 1909 ":v8_libsampler", |
1931 ] | 1910 ] |
1932 | 1911 |
1933 sources += [ v8_generated_peephole_source ] | |
1934 deps += [ ":run_mkpeephole" ] | |
1935 | |
1936 if (is_win) { | 1912 if (is_win) { |
1937 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 1913 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
1938 cflags = [ "/wd4267" ] | 1914 cflags = [ "/wd4267" ] |
1939 } | 1915 } |
1940 | 1916 |
1941 if (v8_enable_i18n_support) { | 1917 if (v8_enable_i18n_support) { |
1942 deps += [ "//third_party/icu" ] | 1918 deps += [ "//third_party/icu" ] |
1943 if (is_win) { | 1919 if (is_win) { |
1944 deps += [ "//third_party/icu:icudata" ] | 1920 deps += [ "//third_party/icu:icudata" ] |
1945 } | 1921 } |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2149 deps = [ | 2125 deps = [ |
2150 ":v8_base", | 2126 ":v8_base", |
2151 ":v8_libplatform", | 2127 ":v8_libplatform", |
2152 ":v8_nosnapshot", | 2128 ":v8_nosnapshot", |
2153 "//build/config/sanitizers:deps", | 2129 "//build/config/sanitizers:deps", |
2154 "//build/win:default_exe_manifest", | 2130 "//build/win:default_exe_manifest", |
2155 ] | 2131 ] |
2156 } | 2132 } |
2157 } | 2133 } |
2158 | 2134 |
2159 v8_executable("mkpeephole") { | |
2160 # mkpeephole needs to be built for the build host so the peephole lookup | |
2161 # table can built during build. The table depends on the properties of | |
2162 # bytecodes that are described in bytecodes.{cc,h}. | |
2163 visibility = [ ":*" ] # Only targets in this file can depend on this. | |
2164 | |
2165 sources = [ | |
2166 "src/interpreter/bytecode-peephole-optimizer.h", | |
2167 "src/interpreter/bytecodes.cc", | |
2168 "src/interpreter/bytecodes.h", | |
2169 "src/interpreter/mkpeephole.cc", | |
2170 ] | |
2171 | |
2172 configs = [ | |
2173 ":external_config", | |
2174 ":internal_config", | |
2175 ] | |
2176 | |
2177 deps = [ | |
2178 ":v8_libbase", | |
2179 "//build/config/sanitizers:deps", | |
2180 "//build/win:default_exe_manifest", | |
2181 ] | |
2182 } | |
2183 | |
2184 ############################################################################### | 2135 ############################################################################### |
2185 # Public targets | 2136 # Public targets |
2186 # | 2137 # |
2187 | 2138 |
2188 want_v8_shell = | 2139 want_v8_shell = |
2189 (current_toolchain == host_toolchain && v8_toolset_for_shell == "host") || | 2140 (current_toolchain == host_toolchain && v8_toolset_for_shell == "host") || |
2190 (current_toolchain == v8_snapshot_toolchain && | 2141 (current_toolchain == v8_snapshot_toolchain && |
2191 v8_toolset_for_shell == "host") || | 2142 v8_toolset_for_shell == "host") || |
2192 (current_toolchain != host_toolchain && v8_toolset_for_shell == "target") | 2143 (current_toolchain != host_toolchain && v8_toolset_for_shell == "target") |
2193 | 2144 |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2480 | 2431 |
2481 deps = [ | 2432 deps = [ |
2482 ":fuzzer_support", | 2433 ":fuzzer_support", |
2483 ] | 2434 ] |
2484 | 2435 |
2485 configs = [ ":internal_config" ] | 2436 configs = [ ":internal_config" ] |
2486 } | 2437 } |
2487 | 2438 |
2488 v8_fuzzer("wasm_asmjs_fuzzer") { | 2439 v8_fuzzer("wasm_asmjs_fuzzer") { |
2489 } | 2440 } |
OLD | NEW |