 Chromium Code Reviews
 Chromium Code Reviews Issue 1427343003:
  make v8_use_snapshot configurable in gn  (Closed) 
  Base URL: https://chromium.googlesource.com/v8/v8.git@master
    
  
    Issue 1427343003:
  make v8_use_snapshot configurable in gn  (Closed) 
  Base URL: https://chromium.googlesource.com/v8/v8.git@master| 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/mips.gni") | 7 import("//build/config/mips.gni") | 
| 8 import("//build/config/sanitizers/sanitizers.gni") | 8 import("//build/config/sanitizers/sanitizers.gni") | 
| 9 | 9 | 
| 10 # Because standalone V8 builds are not supported, assume this is part of a | 10 # Because standalone V8 builds are not supported, assume this is part of a | 
| 11 # Chromium build. | 11 # Chromium build. | 
| 12 import("//build_overrides/v8.gni") | 12 import("//build_overrides/v8.gni") | 
| 13 | 13 | 
| 14 import("snapshot_toolchain.gni") | 14 import("snapshot_toolchain.gni") | 
| 15 | 15 | 
| 16 declare_args() { | |
| 17 v8_use_snapshot = true | |
| 
brettw
2015/11/10 20:48:42
This should have some documentation about what a s
 
Mostyn Bramley-Moore
2015/11/10 22:59:51
Done.  Added the same documentation in build/featu
 | |
| 18 } | |
| 19 | |
| 16 # TODO(jochen): These will need to be user-settable to support standalone V8 | 20 # TODO(jochen): These will need to be user-settable to support standalone V8 | 
| 17 # builds. | 21 # builds. | 
| 18 v8_deprecation_warnings = false | 22 v8_deprecation_warnings = false | 
| 19 v8_enable_disassembler = false | 23 v8_enable_disassembler = false | 
| 20 v8_enable_gdbjit = false | 24 v8_enable_gdbjit = false | 
| 21 v8_enable_handle_zapping = true | 25 v8_enable_handle_zapping = true | 
| 22 v8_enable_i18n_support = true | 26 v8_enable_i18n_support = true | 
| 23 v8_enable_verify_heap = false | 27 v8_enable_verify_heap = false | 
| 24 v8_interpreted_regexp = false | 28 v8_interpreted_regexp = false | 
| 25 v8_object_print = false | 29 v8_object_print = false | 
| 26 v8_postmortem_support = false | 30 v8_postmortem_support = false | 
| 27 v8_use_snapshot = true | |
| 28 v8_random_seed = "314159265" | 31 v8_random_seed = "314159265" | 
| 29 v8_toolset_for_d8 = "host" | 32 v8_toolset_for_d8 = "host" | 
| 30 | 33 | 
| 31 if (is_msan) { | 34 if (is_msan) { | 
| 32 # Running the V8-generated code on an ARM simulator is a powerful hack that | 35 # Running the V8-generated code on an ARM simulator is a powerful hack that | 
| 33 # allows the tool to see the memory accesses from JITted code. Without this | 36 # allows the tool to see the memory accesses from JITted code. Without this | 
| 34 # flag, JS code causes false positive reports from MSan. | 37 # flag, JS code causes false positive reports from MSan. | 
| 35 v8_target_arch = "arm64" | 38 v8_target_arch = "arm64" | 
| 36 } else { | 39 } else { | 
| 37 v8_target_arch = target_cpu | 40 v8_target_arch = target_cpu | 
| (...skipping 1802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1840 if (!is_component_build) { | 1843 if (!is_component_build) { | 
| 1841 sources += [ | 1844 sources += [ | 
| 1842 "$target_gen_dir/d8-js.cc", | 1845 "$target_gen_dir/d8-js.cc", | 
| 1843 ] | 1846 ] | 
| 1844 } | 1847 } | 
| 1845 if (v8_enable_i18n_support) { | 1848 if (v8_enable_i18n_support) { | 
| 1846 deps += [ "//third_party/icu" ] | 1849 deps += [ "//third_party/icu" ] | 
| 1847 } | 1850 } | 
| 1848 } | 1851 } | 
| 1849 } | 1852 } | 
| OLD | NEW |