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

Side by Side Diff: BUILD.gn

Issue 2118183002: [interpeter] Move to table based peephole optimizer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Attempt gn build. Created 4 years, 5 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
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 614 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 rebase_path("$root_out_dir/snapshot_blob.bin", root_build_dir), 625 rebase_path("$root_out_dir/snapshot_blob.bin", root_build_dir),
626 ] 626 ]
627 } 627 }
628 628
629 if (v8_embed_script != "") { 629 if (v8_embed_script != "") {
630 sources += [ v8_embed_script ] 630 sources += [ v8_embed_script ]
631 args += [ rebase_path(v8_embed_script, root_build_dir) ] 631 args += [ rebase_path(v8_embed_script, root_build_dir) ]
632 } 632 }
633 } 633 }
634 634
635 action("run_mkpeephole") {
636 visibility = [ ":*" ] # Only targets in this file can depend on this.
637
638 deps = [
639 ":mkpeephole($v8_snapshot_toolchain)",
640 ]
641
642 outputs = [
643 "$target_gen_dir/bytecode-peephole-table.h"
644 ]
645
646 sources = []
647
648 script = "tools/run.py"
649
650 args = [
651 "./" + rebase_path(get_label_info(":mkpeephole($v8_snapshot_toolchain)",
652 "root_out_dir") + "/mkpeephole",
653 root_build_dir),
654 rebase_path("$target_gen_dir/bytecode-peephole-table.h", root_build_dir),
655 ]
656 }
657
635 action("v8_dump_build_config") { 658 action("v8_dump_build_config") {
636 script = "tools/testrunner/utils/dump_build_config.py" 659 script = "tools/testrunner/utils/dump_build_config.py"
637 outputs = [ 660 outputs = [
638 "$root_out_dir/v8_build_config.json", 661 "$root_out_dir/v8_build_config.json",
639 ] 662 ]
640 args = [ 663 args = [
641 rebase_path("$root_out_dir/v8_build_config.json", root_build_dir), 664 rebase_path("$root_out_dir/v8_build_config.json", root_build_dir),
642 "dcheck_always_on=$dcheck_always_on", 665 "dcheck_always_on=$dcheck_always_on",
643 "is_asan=$is_asan", 666 "is_asan=$is_asan",
644 "is_cfi=$is_cfi", 667 "is_cfi=$is_cfi",
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after
1279 "src/interpreter/bytecode-array-iterator.h", 1302 "src/interpreter/bytecode-array-iterator.h",
1280 "src/interpreter/bytecode-array-writer.cc", 1303 "src/interpreter/bytecode-array-writer.cc",
1281 "src/interpreter/bytecode-array-writer.h", 1304 "src/interpreter/bytecode-array-writer.h",
1282 "src/interpreter/bytecode-dead-code-optimizer.cc", 1305 "src/interpreter/bytecode-dead-code-optimizer.cc",
1283 "src/interpreter/bytecode-dead-code-optimizer.h", 1306 "src/interpreter/bytecode-dead-code-optimizer.h",
1284 "src/interpreter/bytecode-generator.cc", 1307 "src/interpreter/bytecode-generator.cc",
1285 "src/interpreter/bytecode-generator.h", 1308 "src/interpreter/bytecode-generator.h",
1286 "src/interpreter/bytecode-label.h", 1309 "src/interpreter/bytecode-label.h",
1287 "src/interpreter/bytecode-peephole-optimizer.cc", 1310 "src/interpreter/bytecode-peephole-optimizer.cc",
1288 "src/interpreter/bytecode-peephole-optimizer.h", 1311 "src/interpreter/bytecode-peephole-optimizer.h",
1312 "$target_gen_dir/bytecode-peephole-table.h",
rmcilroy 2016/07/08 13:18:25 I think this should be a separate target which nee
oth 2016/07/08 15:12:33 I'm not a GN expert, but it definitely detects if
1289 "src/interpreter/bytecode-pipeline.cc", 1313 "src/interpreter/bytecode-pipeline.cc",
1290 "src/interpreter/bytecode-pipeline.h", 1314 "src/interpreter/bytecode-pipeline.h",
1291 "src/interpreter/bytecode-register-allocator.cc", 1315 "src/interpreter/bytecode-register-allocator.cc",
1292 "src/interpreter/bytecode-register-allocator.h", 1316 "src/interpreter/bytecode-register-allocator.h",
1293 "src/interpreter/bytecode-register-optimizer.cc", 1317 "src/interpreter/bytecode-register-optimizer.cc",
1294 "src/interpreter/bytecode-register-optimizer.h", 1318 "src/interpreter/bytecode-register-optimizer.h",
1295 "src/interpreter/bytecode-traits.h", 1319 "src/interpreter/bytecode-traits.h",
1296 "src/interpreter/bytecodes.cc", 1320 "src/interpreter/bytecodes.cc",
1297 "src/interpreter/bytecodes.h", 1321 "src/interpreter/bytecodes.h",
1298 "src/interpreter/constant-array-builder.cc", 1322 "src/interpreter/constant-array-builder.cc",
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
1864 "src/s390/simulator-s390.h", 1888 "src/s390/simulator-s390.h",
1865 ] 1889 ]
1866 } 1890 }
1867 1891
1868 configs = [ ":internal_config" ] 1892 configs = [ ":internal_config" ]
1869 1893
1870 defines = [] 1894 defines = []
1871 deps = [ 1895 deps = [
1872 ":v8_libbase", 1896 ":v8_libbase",
1873 ":v8_libsampler", 1897 ":v8_libsampler",
1898 "//:run_mkpeephole"
1874 ] 1899 ]
1875 1900
1876 if (is_win) { 1901 if (is_win) {
1877 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 1902 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1878 cflags = [ "/wd4267" ] 1903 cflags = [ "/wd4267" ]
1879 } 1904 }
1880 1905
1881 if (v8_enable_i18n_support) { 1906 if (v8_enable_i18n_support) {
1882 deps += [ "//third_party/icu" ] 1907 deps += [ "//third_party/icu" ]
1883 if (is_win) { 1908 if (is_win) {
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
2087 configs = [ ":internal_config" ] 2112 configs = [ ":internal_config" ]
2088 2113
2089 deps = [ 2114 deps = [
2090 ":v8_base", 2115 ":v8_base",
2091 ":v8_libplatform", 2116 ":v8_libplatform",
2092 ":v8_nosnapshot", 2117 ":v8_nosnapshot",
2093 "//build/config/sanitizers:deps", 2118 "//build/config/sanitizers:deps",
2094 "//build/win:default_exe_manifest", 2119 "//build/win:default_exe_manifest",
2095 ] 2120 ]
2096 } 2121 }
2122
2123 v8_executable("mkpeephole") {
2124 # mkpeephole needs to be built for the build host so the peephole lookup
2125 # table can built during build. The table depends on the properties of
2126 # bytecodes that are described in bytecodes.{cc,h}.
2127 visibility = [ ":*" ] # Only targets in this file can depend on this.
2128
2129 sources = [
2130 "src/interpreter/bytecode-peephole-optimizer.h",
2131 "src/interpreter/bytecodes.cc",
2132 "src/interpreter/bytecodes.h",
2133 "src/interpreter/mkpeephole.cc"
2134 ]
2135
2136 configs = [ ":internal_config" ]
2137
2138 deps = [ ":v8_libbase" ]
2139 }
2097 } 2140 }
2098 2141
2099 ############################################################################### 2142 ###############################################################################
2100 # Public targets 2143 # Public targets
2101 # 2144 #
2102 2145
2103 want_v8_shell = 2146 want_v8_shell =
2104 (current_toolchain == host_toolchain && v8_toolset_for_shell == "host") || 2147 (current_toolchain == host_toolchain && v8_toolset_for_shell == "host") ||
2105 (current_toolchain == v8_snapshot_toolchain && 2148 (current_toolchain == v8_snapshot_toolchain &&
2106 v8_toolset_for_shell == "host") || 2149 v8_toolset_for_shell == "host") ||
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
2395 2438
2396 deps = [ 2439 deps = [
2397 ":fuzzer_support", 2440 ":fuzzer_support",
2398 ] 2441 ]
2399 2442
2400 configs = [ ":internal_config" ] 2443 configs = [ ":internal_config" ]
2401 } 2444 }
2402 2445
2403 v8_fuzzer("wasm_asmjs_fuzzer") { 2446 v8_fuzzer("wasm_asmjs_fuzzer") {
2404 } 2447 }
OLDNEW
« no previous file with comments | « no previous file | src/interpreter/bytecode-peephole-optimizer.h » ('j') | src/interpreter/mkpeephole.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698