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