make v8_use_snapshot configurable in gn

Changing this value is not guaranteed to work yet, but it needs to be
an arg in order to experiment with it.

Review URL: https://codereview.chromium.org/1427343003

Cr-Commit-Position: refs/heads/master@{#31932}
This commit is contained in:
mostynb 2015-11-10 17:09:06 -08:00 committed by Commit bot
parent d151feeb37
commit d62efc1284
2 changed files with 8 additions and 1 deletions

View File

@ -17,6 +17,12 @@ import("//build_overrides/v8.gni")
import("snapshot_toolchain.gni")
declare_args() {
# Enable the snapshot feature, for fast context creation.
# http://v8project.blogspot.com/2015/09/custom-startup-snapshots.html
v8_use_snapshot = true
}
# TODO(jochen): These will need to be user-settable to support standalone V8
# builds.
v8_deprecation_warnings = false
@ -28,7 +34,6 @@ v8_enable_verify_heap = false
v8_interpreted_regexp = false
v8_object_print = false
v8_postmortem_support = false
v8_use_snapshot = true
v8_random_seed = "314159265"
v8_toolset_for_d8 = "host"

View File

@ -39,6 +39,8 @@
'v8_trace_maps%': 0,
# Enable the snapshot feature, for fast context creation.
# http://v8project.blogspot.com/2015/09/custom-startup-snapshots.html
'v8_use_snapshot%': 'true',
'v8_enable_verify_predictable%': 0,