Commit 614171c2 authored by Andreas Haas's avatar Andreas Haas Committed by Commit Bot

[wasm] Introduce a wasm-staging flag

R=mstarzinger@chromium.org

Change-Id: Ic7a3538bbdf3ec2e68c83c397818ab0ca838ddbe
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1738855Reviewed-by: 's avatarMichael Starzinger <mstarzinger@chromium.org>
Commit-Queue: Andreas Haas <ahaas@chromium.org>
Cr-Commit-Position: refs/heads/master@{#63340}
parent 0ab6d4a5
......@@ -713,6 +713,13 @@ DEFINE_STRING(dump_wasm_module_path, nullptr,
FOREACH_WASM_FEATURE_FLAG(DECL_WASM_FLAG)
#undef DECL_WASM_FLAG
DEFINE_BOOL(wasm_staging, false, "enable staged wasm features")
#define WASM_STAGING_IMPLICATION(feat, desc, val) \
DEFINE_IMPLICATION(wasm_staging, experimental_wasm_##feat)
FOREACH_WASM_STAGING_FEATURE_FLAG(WASM_STAGING_IMPLICATION)
#undef WASM_STAGING_IMPLICATION
DEFINE_BOOL(wasm_opt, false, "enable wasm optimization")
DEFINE_BOOL(wasm_no_bounds_checks, false,
"disable bounds checks (performance testing only)")
......
......@@ -5,17 +5,26 @@
#ifndef V8_WASM_WASM_FEATURE_FLAGS_H_
#define V8_WASM_WASM_FEATURE_FLAGS_H_
#define FOREACH_WASM_FEATURE_FLAG(V) \
V(mv, "multi-value support", false) \
V(eh, "exception handling opcodes", false) \
V(se, "sign extension opcodes", true) \
V(sat_f2i_conversions, "saturating float conversion opcodes", true) \
V(threads, "thread opcodes", false) \
V(simd, "SIMD opcodes", false) \
V(anyref, "anyref opcodes", false) \
V(bigint, "JS BigInt support", false) \
V(bulk_memory, "bulk memory opcodes", true) \
V(return_call, "return call opcodes", false) \
V(type_reflection, "wasm type reflection in JS", false) \
#define FOREACH_WASM_EXPERIMENTAL_FEATURE_FLAG(V) \
V(mv, "multi-value support", false) \
V(eh, "exception handling opcodes", false) \
V(threads, "thread opcodes", false) \
V(simd, "SIMD opcodes", false) \
V(bigint, "JS BigInt support", false) \
V(return_call, "return call opcodes", false) \
V(type_reflection, "wasm type reflection in JS", false) \
V(compilation_hints, "compilation hints section", false)
#define FOREACH_WASM_STAGING_FEATURE_FLAG(V) V(anyref, "anyref opcodes", false)
#define FOREACH_WASM_SHIPPED_FEATURE_FLAG(V) \
V(bulk_memory, "bulk memory opcodes", true) \
V(sat_f2i_conversions, "saturating float conversion opcodes", true) \
V(se, "sign extension opcodes", true)
#define FOREACH_WASM_FEATURE_FLAG(V) \
FOREACH_WASM_EXPERIMENTAL_FEATURE_FLAG(V) \
FOREACH_WASM_STAGING_FEATURE_FLAG(V) \
FOREACH_WASM_SHIPPED_FEATURE_FLAG(V)
#endif // V8_WASM_WASM_FEATURE_FLAGS_H_
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment