A lightweight WebAssembly runtime that is fast, secure, and standards-compliant
Plumb stack-switching config more in fuzzing (#13087)
Alex Crichton1cc2930d4a5e
diff --git a/crates/fuzzing/src/generators/config.rs b/crates/fuzzing/src/generators/config.rsindex d3c1f82b0c..0180136142 100644--- a/crates/fuzzing/src/generators/config.rs+++ b/crates/fuzzing/src/generators/config.rs@@ -317,6 +317,7 @@ impl Config {Some(self.module_config.config.shared_everything_threads_enabled);cfg.wasm.wide_arithmetic = Some(self.module_config.config.wide_arithmetic_enabled);cfg.wasm.exceptions = Some(self.module_config.config.exceptions_enabled);+ cfg.wasm.stack_switching = Some(self.module_config.stack_switching);cfg.wasm.shared_memory = Some(self.module_config.shared_memory);if !self.module_config.config.simd_enabled {cfg.wasm.relaxed_simd = Some(false);@@ -665,6 +666,7 @@ impl WasmtimeConfig {config.config.reference_types_enabled = false;config.config.exceptions_enabled = false;config.function_references_enabled = false;+ config.stack_switching = false;// Winch's SIMD implementations require AVX and AVX2.if selfdiff --git a/crates/fuzzing/src/generators/module.rs b/crates/fuzzing/src/generators/module.rsindex 6d81986494..8fe35051d6 100644--- a/crates/fuzzing/src/generators/module.rs+++ b/crates/fuzzing/src/generators/module.rs@@ -26,6 +26,7 @@ pub struct ModuleConfig {pub component_model_fixed_length_lists: bool,pub legacy_exceptions: bool,pub shared_memory: bool,+ pub stack_switching: bool,}impl<'a> Arbitrary<'a> for ModuleConfig {@@ -85,6 +86,7 @@ impl<'a> Arbitrary<'a> for ModuleConfig {component_model_fixed_length_lists: false,legacy_exceptions: false,shared_memory: false,+ stack_switching: false,function_references_enabled: config.gc_enabled,config,})