[v8][wasm] Allow enabling experimental wasm features in about:flags
In Chrome there exists the umbrella flag
chrome://flags/#enable-javascript-harmony to enable all new JavaScript
feature which have been implemented already in V8 and which are staged
for shipping. This flag allows web developers to experiment with new
JavaScript language features to find issues both in their website or
in our implementation.
With this CL we introduce a similar flag for new WebAssembly language
features.
Bug: chromium:851428
Change-Id: I2aa23979ca4fb4b893b7153237b480c27853ea5d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1772161
Reviewed-by: Avi Drissman <[email protected]>
Commit-Queue: Andreas Haas <[email protected]>
Cr-Commit-Position: refs/heads/master@{#691267}
diff --git a/chrome/browser/flag_descriptions.cc b/chrome/browser/flag_descriptions.cc
index 976b72d..d70d203 100644
--- a/chrome/browser/flag_descriptions.cc
+++ b/chrome/browser/flag_descriptions.cc
@@ -922,6 +922,10 @@
"Enable the cloud-assisted pairingless BLE protocol for use with "
"the Web Authentication API.";
+const char kExperimentalWebAssemblyFeaturesName[] = "Experimental WebAssembly";
+const char kExperimentalWebAssemblyFeaturesDescription[] =
+ "Enable web pages to use experimental WebAssembly features.";
+
const char kEnableWasmBaselineName[] = "WebAssembly baseline compiler";
const char kEnableWasmBaselineDescription[] =
"Enables WebAssembly baseline compilation and tier up.";
@@ -938,7 +942,7 @@
const char kEnableWasmSimdDescription[] =
"Enables support for the WebAssembly SIMD proposal.";
-const char kEnableWasmThreadsName[] = "WebAssembly threads support.";
+const char kEnableWasmThreadsName[] = "WebAssembly threads support";
const char kEnableWasmThreadsDescription[] =
"Enables support for the WebAssembly Threads proposal. Implies "
"#shared-array-buffer and #enable-webassembly.";