MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / check_isa_flags

Method check_isa_flags

crates/wasmtime/src/engine/serialization.rs:245–253  ·  view source on GitHub ↗
(&mut self, engine: &Engine)

Source from the content-addressed store, hash-verified

243 }
244
245 fn check_isa_flags(&mut self, engine: &Engine) -> Result<()> {
246 for (name, val) in self.isa_flags.iter() {
247 engine
248 .check_compatible_with_isa_flag(name, val)
249 .map_err(|s| crate::Error::msg(s))
250 .context("compilation settings of module incompatible with native host")?;
251 }
252 Ok(())
253 }
254
255 fn check_int<T: Eq + fmt::Display>(found: T, expected: T, feature: &str) -> Result<()> {
256 if found == expected {

Callers 1

check_compatibleMethod · 0.80

Calls 5

msgFunction · 0.85
OkFunction · 0.85
iterMethod · 0.45
contextMethod · 0.45

Tested by

no test coverage detected