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 # Enable the snapshot feature, for fast context creation. |
| 18 # http://v8project.blogspot.com/2015/09/custom-startup-snapshots.html |
| 19 v8_use_snapshot = true |
| 20 } |
| 21 |
16 # TODO(jochen): These will need to be user-settable to support standalone V8 | 22 # TODO(jochen): These will need to be user-settable to support standalone V8 |
17 # builds. | 23 # builds. |
18 v8_deprecation_warnings = false | 24 v8_deprecation_warnings = false |
19 v8_enable_disassembler = false | 25 v8_enable_disassembler = false |
20 v8_enable_gdbjit = false | 26 v8_enable_gdbjit = false |
21 v8_enable_handle_zapping = true | 27 v8_enable_handle_zapping = true |
22 v8_enable_i18n_support = true | 28 v8_enable_i18n_support = true |
23 v8_enable_verify_heap = false | 29 v8_enable_verify_heap = false |
24 v8_interpreted_regexp = false | 30 v8_interpreted_regexp = false |
25 v8_object_print = false | 31 v8_object_print = false |
26 v8_postmortem_support = false | 32 v8_postmortem_support = false |
27 v8_use_snapshot = true | |
28 v8_random_seed = "314159265" | 33 v8_random_seed = "314159265" |
29 v8_toolset_for_d8 = "host" | 34 v8_toolset_for_d8 = "host" |
30 | 35 |
31 if (is_msan) { | 36 if (is_msan) { |
32 # Running the V8-generated code on an ARM simulator is a powerful hack that | 37 # 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 | 38 # allows the tool to see the memory accesses from JITted code. Without this |
34 # flag, JS code causes false positive reports from MSan. | 39 # flag, JS code causes false positive reports from MSan. |
35 v8_target_arch = "arm64" | 40 v8_target_arch = "arm64" |
36 } else { | 41 } else { |
37 v8_target_arch = target_cpu | 42 v8_target_arch = target_cpu |
(...skipping 1802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1840 if (!is_component_build) { | 1845 if (!is_component_build) { |
1841 sources += [ | 1846 sources += [ |
1842 "$target_gen_dir/d8-js.cc", | 1847 "$target_gen_dir/d8-js.cc", |
1843 ] | 1848 ] |
1844 } | 1849 } |
1845 if (v8_enable_i18n_support) { | 1850 if (v8_enable_i18n_support) { |
1846 deps += [ "//third_party/icu" ] | 1851 deps += [ "//third_party/icu" ] |
1847 } | 1852 } |
1848 } | 1853 } |
1849 } | 1854 } |
OLD | NEW |