bindings: Prepare V8ContextSnapshot on Android
This CL makes it possible to create and use V8 context snapshot
files on Android, if a developer puts "use_v8_context_snapshot=true"
The V8 context snapshot feature is currently supported and enabled on
Windows, MacOSX, and Linux (not ChromeOS), and its Finch experiment
showed 20% reduction of time to create V8 contexts.
On local Android machine, this feature shows 50% time recution.
Beside it, in order to enable the feature on cross-build platforms
like Android, we have to build Blink twice.
So this CL does not flip the flag |use_v8_context_snapshot|.
FYI, some numbers with the feature are written in the next CL;
https://chromium-review.googlesource.com/c/chromium/src/+/923623
TBR=rockot
Bug: 764576
Change-Id: I7ee8a26d350b65b196854fc9209a52fb607b580d
Reviewed-on: https://chromium-review.googlesource.com/923683
Reviewed-by: Cait Phillips <[email protected]>
Reviewed-by: Xiaohan Wang <[email protected]>
Reviewed-by: Mike West <[email protected]>
Reviewed-by: Tommy Nyquist <[email protected]>
Reviewed-by: Kinuko Yasuda <[email protected]>
Reviewed-by: Tao Bai <[email protected]>
Reviewed-by: Ross McIlroy <[email protected]>
Reviewed-by: Kentaro Hara <[email protected]>
Cr-Commit-Position: refs/heads/master@{#539558}
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 321101a..3a4e4cf 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -3504,7 +3504,7 @@
{"enable-v8-context-snapshot", flag_descriptions::kV8ContextSnapshotName,
flag_descriptions::kV8ContextSnapshotDescription,
- kOsDesktop, // TODO(peria): Add Android support.
+ kOsMac | kOsWin | kOsLinux | kOsAndroid,
FEATURE_VALUE_TYPE(features::kV8ContextSnapshot)},
#if defined(OS_CHROMEOS)