[v8][wasm] Add blink flag for the generic wasm-to-js wrapper
Change-Id: Idc3f10fb0ca07b3ee021a38908130bb4f97bfd6e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4905195 Reviewed-by: Adam Klein <adamk@chromium.org> Commit-Queue: Andreas Haas <ahaas@chromium.org> Cr-Commit-Position: refs/heads/main@{#1205099}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
6abe62108f
commit
79abc46983
@ -256,4 +256,8 @@ BASE_FEATURE(kWebAssemblyInlining,
|
|||||||
"WebAssemblyInlining",
|
"WebAssemblyInlining",
|
||||||
base::FEATURE_DISABLED_BY_DEFAULT);
|
base::FEATURE_DISABLED_BY_DEFAULT);
|
||||||
|
|
||||||
|
// Enable the generic wasm-to-js wrapper.
|
||||||
|
BASE_FEATURE(kWebAssemblyGenericWrapper,
|
||||||
|
"WebAssemblyGenericWrapper",
|
||||||
|
base::FEATURE_DISABLED_BY_DEFAULT);
|
||||||
} // namespace features
|
} // namespace features
|
||||||
|
@ -69,6 +69,7 @@ GIN_EXPORT BASE_DECLARE_FEATURE(kJavaScriptIteratorHelpers);
|
|||||||
GIN_EXPORT BASE_DECLARE_FEATURE(kJavaScriptPromiseWithResolvers);
|
GIN_EXPORT BASE_DECLARE_FEATURE(kJavaScriptPromiseWithResolvers);
|
||||||
GIN_EXPORT BASE_DECLARE_FEATURE(kWebAssemblyTailCall);
|
GIN_EXPORT BASE_DECLARE_FEATURE(kWebAssemblyTailCall);
|
||||||
GIN_EXPORT BASE_DECLARE_FEATURE(kWebAssemblyInlining);
|
GIN_EXPORT BASE_DECLARE_FEATURE(kWebAssemblyInlining);
|
||||||
|
GIN_EXPORT BASE_DECLARE_FEATURE(kWebAssemblyGenericWrapper);
|
||||||
|
|
||||||
} // namespace features
|
} // namespace features
|
||||||
|
|
||||||
|
@ -411,7 +411,9 @@ void SetFlags(IsolateHolder::ScriptMode mode,
|
|||||||
SetV8FlagsIfOverridden(features::kWebAssemblyInlining,
|
SetV8FlagsIfOverridden(features::kWebAssemblyInlining,
|
||||||
"--experimental-wasm-inlining",
|
"--experimental-wasm-inlining",
|
||||||
"--no-experimental-wasm-inlining");
|
"--no-experimental-wasm-inlining");
|
||||||
|
SetV8FlagsIfOverridden(features::kWebAssemblyGenericWrapper,
|
||||||
|
"--wasm-to-js-generic-wrapper",
|
||||||
|
"--no-wasm-to-js-generic-wrapper");
|
||||||
if (js_command_line_flags.empty())
|
if (js_command_line_flags.empty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user