Index: gni/v8.gni |
diff --git a/gni/v8.gni b/gni/v8.gni |
index 6a24219c34ea5d8bd449308840ee5af9d40ad421..91c8d642870d2f0966827a256949caea197ffc8b 100644 |
--- a/gni/v8.gni |
+++ b/gni/v8.gni |
@@ -5,6 +5,14 @@ |
import("//build/config/sanitizers/sanitizers.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 |
+ |
+ # Use external files for startup data blobs: |
+ # the JS builtins sources and the start snapshot. |
+ v8_use_external_startup_data = !is_ios |
+ |
# V8 generates code for this architecture. If v8_target_arch differs from |
# target_cpu, a simulator will be run. |
v8_target_arch = "" |