OLD | NEW |
1 # Copyright 2016 the V8 project authors. All rights reserved. | 1 # Copyright 2016 the V8 project 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/sanitizers/sanitizers.gni") | 5 import("//build/config/sanitizers/sanitizers.gni") |
6 | 6 |
7 declare_args() { | 7 declare_args() { |
| 8 # Enable the snapshot feature, for fast context creation. |
| 9 # http://v8project.blogspot.com/2015/09/custom-startup-snapshots.html |
| 10 v8_use_snapshot = true |
| 11 |
| 12 # Use external files for startup data blobs: |
| 13 # the JS builtins sources and the start snapshot. |
| 14 v8_use_external_startup_data = !is_ios |
| 15 |
8 # V8 generates code for this architecture. If v8_target_arch differs from | 16 # V8 generates code for this architecture. If v8_target_arch differs from |
9 # target_cpu, a simulator will be run. | 17 # target_cpu, a simulator will be run. |
10 v8_target_arch = "" | 18 v8_target_arch = "" |
11 } | 19 } |
12 | 20 |
13 if (v8_target_arch == "") { | 21 if (v8_target_arch == "") { |
14 if (is_msan) { | 22 if (is_msan) { |
15 # Running the V8-generated code on an ARM simulator is a powerful hack that | 23 # Running the V8-generated code on an ARM simulator is a powerful hack that |
16 # allows the tool to see the memory accesses from JITted code. Without this | 24 # allows the tool to see the memory accesses from JITted code. Without this |
17 # flag, JS code causes false positive reports from MSan. | 25 # flag, JS code causes false positive reports from MSan. |
18 v8_target_arch = "arm64" | 26 v8_target_arch = "arm64" |
19 } else { | 27 } else { |
20 v8_target_arch = target_cpu | 28 v8_target_arch = target_cpu |
21 } | 29 } |
22 } | 30 } |
OLD | NEW |