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

Side by Side Diff: BUILD.gn

Issue 2887783002: [gn] Allow building a snapshot with unwinding information. (Closed)
Patch Set: Fix assertion in stub-cache.cc Created 3 years, 7 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/ic/stub-cache.cc » ('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/host_byteorder.gni") 8 import("//build/config/host_byteorder.gni")
9 import("//build/config/mips.gni") 9 import("//build/config/mips.gni")
10 import("//build/config/sanitizers/sanitizers.gni") 10 import("//build/config/sanitizers/sanitizers.gni")
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 # Sets -dV8_ENABLE_CHECKS. 73 # Sets -dV8_ENABLE_CHECKS.
74 v8_enable_v8_checks = "" 74 v8_enable_v8_checks = ""
75 75
76 # Sets -dV8_TRACE_IGNITION. 76 # Sets -dV8_TRACE_IGNITION.
77 v8_enable_trace_ignition = false 77 v8_enable_trace_ignition = false
78 78
79 # Sets -dV8_CONCURRENT_MARKING 79 # Sets -dV8_CONCURRENT_MARKING
80 v8_enable_concurrent_marking = false 80 v8_enable_concurrent_marking = false
81 81
82 # Build the snapshot with unwinding information for perf.
83 # Sets -dV8_USE_SNAPSHOT_WITH_UNWINDING_INFO.
84 v8_perf_prof_unwinding_info = false
85
82 # With post mortem support enabled, metadata is embedded into libv8 that 86 # With post mortem support enabled, metadata is embedded into libv8 that
83 # describes various parameters of the VM for use by debuggers. See 87 # describes various parameters of the VM for use by debuggers. See
84 # tools/gen-postmortem-metadata.py for details. 88 # tools/gen-postmortem-metadata.py for details.
85 v8_postmortem_support = false 89 v8_postmortem_support = false
86 90
87 # Switches off inlining in V8. 91 # Switches off inlining in V8.
88 v8_no_inline = false 92 v8_no_inline = false
89 93
90 # Override OS page size when generating snapshot 94 # Override OS page size when generating snapshot
91 v8_os_page_size = "0" 95 v8_os_page_size = "0"
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 defines += [ "V8_IMMINENT_DEPRECATION_WARNINGS" ] 253 defines += [ "V8_IMMINENT_DEPRECATION_WARNINGS" ]
250 } 254 }
251 if (v8_enable_i18n_support) { 255 if (v8_enable_i18n_support) {
252 defines += [ "V8_INTL_SUPPORT" ] 256 defines += [ "V8_INTL_SUPPORT" ]
253 } 257 }
254 if (v8_enable_handle_zapping) { 258 if (v8_enable_handle_zapping) {
255 defines += [ "ENABLE_HANDLE_ZAPPING" ] 259 defines += [ "ENABLE_HANDLE_ZAPPING" ]
256 } 260 }
257 if (v8_use_snapshot) { 261 if (v8_use_snapshot) {
258 defines += [ "V8_USE_SNAPSHOT" ] 262 defines += [ "V8_USE_SNAPSHOT" ]
263 if (v8_perf_prof_unwinding_info) {
264 defines += [ "V8_USE_SNAPSHOT_WITH_UNWINDING_INFO" ]
265 }
259 } 266 }
260 if (v8_use_external_startup_data) { 267 if (v8_use_external_startup_data) {
261 defines += [ "V8_USE_EXTERNAL_STARTUP_DATA" ] 268 defines += [ "V8_USE_EXTERNAL_STARTUP_DATA" ]
262 } 269 }
263 if (v8_enable_concurrent_marking) { 270 if (v8_enable_concurrent_marking) {
264 defines += [ "V8_CONCURRENT_MARKING" ] 271 defines += [ "V8_CONCURRENT_MARKING" ]
265 } 272 }
266 } 273 }
267 274
268 config("toolchain") { 275 config("toolchain") {
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
736 ] 743 ]
737 } 744 }
738 745
739 if (v8_os_page_size != "0") { 746 if (v8_os_page_size != "0") {
740 args += [ 747 args += [
741 "--v8_os_page_size", 748 "--v8_os_page_size",
742 v8_os_page_size, 749 v8_os_page_size,
743 ] 750 ]
744 } 751 }
745 752
753 if (v8_perf_prof_unwinding_info) {
754 args += [ "--perf-prof-unwinding-info" ]
755 }
756
746 if (v8_use_external_startup_data) { 757 if (v8_use_external_startup_data) {
747 outputs += [ "$root_out_dir/snapshot_blob.bin" ] 758 outputs += [ "$root_out_dir/snapshot_blob.bin" ]
748 args += [ 759 args += [
749 "--startup_blob", 760 "--startup_blob",
750 rebase_path("$root_out_dir/snapshot_blob.bin", root_build_dir), 761 rebase_path("$root_out_dir/snapshot_blob.bin", root_build_dir),
751 ] 762 ]
752 } 763 }
753 764
754 if (v8_embed_script != "") { 765 if (v8_embed_script != "") {
755 sources += [ v8_embed_script ] 766 sources += [ v8_embed_script ]
(...skipping 2524 matching lines...) Expand 10 before | Expand all | Expand 10 after
3280 ] 3291 ]
3281 3292
3282 configs = [ 3293 configs = [
3283 ":external_config", 3294 ":external_config",
3284 ":internal_config_base", 3295 ":internal_config_base",
3285 ] 3296 ]
3286 } 3297 }
3287 3298
3288 v8_fuzzer("wasm_compile_fuzzer") { 3299 v8_fuzzer("wasm_compile_fuzzer") {
3289 } 3300 }
OLDNEW
« no previous file with comments | « no previous file | src/ic/stub-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698