/src/wasm-tools/crates/wit-component/src/gc.rs
Line | Count | Source |
1 | | use self::bitvec::BitVec; |
2 | | use crate::validation::IndexType; |
3 | | use anyhow::{Result, bail}; |
4 | | use indexmap::{IndexMap, IndexSet}; |
5 | | use std::{ |
6 | | borrow::Cow, |
7 | | collections::{HashMap, HashSet}, |
8 | | convert::Infallible, |
9 | | mem, |
10 | | ops::Deref, |
11 | | }; |
12 | | use wasm_encoder::{ |
13 | | Encode, EntityType, InstructionSink, MemArg, RawCustomSection, reencode::Reencode, |
14 | | }; |
15 | | use wasmparser::*; |
16 | | |
17 | | const PAGE_SIZE: i32 = 64 * 1024; |
18 | | |
19 | | /// This function will reduce the input core `wasm` module to only the set of |
20 | | /// exports `required`. |
21 | | /// |
22 | | /// This internally performs a "gc" pass after removing exports to ensure that |
23 | | /// the resulting module imports the minimal set of functions necessary. |
24 | 0 | pub fn run( |
25 | 0 | wasm: &[u8], |
26 | 0 | required: &IndexSet<String>, |
27 | 0 | main_module_realloc: Option<&str>, |
28 | 0 | page_size_log2: u32, |
29 | 0 | index_type: IndexType, |
30 | 0 | ) -> Result<Vec<u8>> { |
31 | 0 | assert!(!required.is_empty()); |
32 | | |
33 | 0 | let mut module = Module::default(); |
34 | 0 | module.parse(wasm)?; |
35 | | |
36 | | // Make sure that all required names are present in the module, and then |
37 | | // remove all names that are not required. |
38 | 0 | for name in required { |
39 | 0 | if !module.exports.contains_key(name.as_str()) { |
40 | 0 | bail!("adapter module does not have export `{name}`") |
41 | 0 | } |
42 | | } |
43 | 0 | let mut not_required = IndexSet::new(); |
44 | 0 | for name in module.exports.keys().copied() { |
45 | 0 | if !required.contains(name) { |
46 | 0 | not_required.insert(name); |
47 | 0 | } |
48 | | } |
49 | 0 | for name in not_required { |
50 | 0 | module.exports.swap_remove(name); |
51 | 0 | } |
52 | 0 | assert!(!module.exports.is_empty()); |
53 | 0 | module.liveness()?; |
54 | 0 | module.encode(main_module_realloc, page_size_log2, index_type) |
55 | 0 | } |
56 | | |
57 | | /// Extension trait for emitting pointer-sized instructions, where the size of |
58 | | /// a pointer is determined by the `IndexType` of linear memory. |
59 | | pub(crate) trait PtrInstructions { |
60 | | fn ptr_iconst(&mut self, index_type: IndexType, value: i32) -> &mut Self; |
61 | | fn ptr_uconst(&mut self, index_type: IndexType, value: u32) -> &mut Self; |
62 | | fn ptr_eqz(&mut self, index_type: IndexType) -> &mut Self; |
63 | | fn ptr_load(&mut self, index_type: IndexType, memarg: MemArg) -> &mut Self; |
64 | | fn ptr_store(&mut self, index_type: IndexType, memarg: MemArg) -> &mut Self; |
65 | | fn ptr_ne(&mut self, index_type: IndexType) -> &mut Self; |
66 | | fn ptr_eq(&mut self, index_type: IndexType) -> &mut Self; |
67 | | fn ptr_add(&mut self, index_type: IndexType) -> &mut Self; |
68 | | fn ptr_shl(&mut self, index_type: IndexType) -> &mut Self; |
69 | | } |
70 | | |
71 | | impl PtrInstructions for InstructionSink<'_> { |
72 | 0 | fn ptr_iconst(&mut self, index_type: IndexType, value: i32) -> &mut Self { |
73 | 0 | match index_type { |
74 | 0 | IndexType::I32 => self.i32_const(value), |
75 | 0 | IndexType::I64 => self.i64_const(value.into()), |
76 | | } |
77 | 0 | } |
78 | | |
79 | 0 | fn ptr_uconst(&mut self, index_type: IndexType, value: u32) -> &mut Self { |
80 | 0 | match index_type { |
81 | 0 | IndexType::I32 => self.i32_const(value as i32), |
82 | 0 | IndexType::I64 => self.i64_const(value.into()), |
83 | | } |
84 | 0 | } |
85 | | |
86 | 0 | fn ptr_eqz(&mut self, index_type: IndexType) -> &mut Self { |
87 | 0 | match index_type { |
88 | 0 | IndexType::I32 => self.i32_eqz(), |
89 | 0 | IndexType::I64 => self.i64_eqz(), |
90 | | } |
91 | 0 | } |
92 | | |
93 | 0 | fn ptr_load(&mut self, index_type: IndexType, memarg: MemArg) -> &mut Self { |
94 | 0 | match index_type { |
95 | 0 | IndexType::I32 => self.i32_load(memarg), |
96 | 0 | IndexType::I64 => self.i64_load(memarg), |
97 | | } |
98 | 0 | } |
99 | | |
100 | 0 | fn ptr_store(&mut self, index_type: IndexType, memarg: MemArg) -> &mut Self { |
101 | 0 | match index_type { |
102 | 0 | IndexType::I32 => self.i32_store(memarg), |
103 | 0 | IndexType::I64 => self.i64_store(memarg), |
104 | | } |
105 | 0 | } |
106 | | |
107 | 0 | fn ptr_ne(&mut self, index_type: IndexType) -> &mut Self { |
108 | 0 | match index_type { |
109 | 0 | IndexType::I32 => self.i32_ne(), |
110 | 0 | IndexType::I64 => self.i64_ne(), |
111 | | } |
112 | 0 | } |
113 | | |
114 | 0 | fn ptr_eq(&mut self, index_type: IndexType) -> &mut Self { |
115 | 0 | match index_type { |
116 | 0 | IndexType::I32 => self.i32_eq(), |
117 | 0 | IndexType::I64 => self.i64_eq(), |
118 | | } |
119 | 0 | } |
120 | | |
121 | 0 | fn ptr_add(&mut self, index_type: IndexType) -> &mut Self { |
122 | 0 | match index_type { |
123 | 0 | IndexType::I32 => self.i32_add(), |
124 | 0 | IndexType::I64 => self.i64_add(), |
125 | | } |
126 | 0 | } |
127 | | |
128 | 0 | fn ptr_shl(&mut self, index_type: IndexType) -> &mut Self { |
129 | 0 | match index_type { |
130 | 0 | IndexType::I32 => self.i32_shl(), |
131 | 0 | IndexType::I64 => self.i64_shl(), |
132 | | } |
133 | 0 | } |
134 | | } |
135 | | |
136 | | /// This function generates a Wasm function body which implements `cabi_realloc` in terms of `memory.grow`. It |
137 | | /// only accepts new, page-sized allocations. |
138 | 0 | fn realloc_via_memory_grow(page_size_log2: u32, index_type: IndexType) -> wasm_encoder::Function { |
139 | 0 | let mut func = wasm_encoder::Function::new([(1, index_type.encoder_ptr())]); |
140 | 0 | let mut ins = func.instructions(); |
141 | | |
142 | | // Assert `old_ptr` is null. |
143 | 0 | ins.ptr_iconst(index_type, 0) |
144 | 0 | .local_get(0) |
145 | 0 | .ptr_ne(index_type) |
146 | 0 | .if_(wasm_encoder::BlockType::Empty) |
147 | 0 | .unreachable() |
148 | 0 | .end(); |
149 | | |
150 | | // Assert `old_len` is zero. |
151 | 0 | ins.ptr_iconst(index_type, 0) |
152 | 0 | .local_get(1) |
153 | 0 | .ptr_ne(index_type) |
154 | 0 | .if_(wasm_encoder::BlockType::Empty) |
155 | 0 | .unreachable() |
156 | 0 | .end(); |
157 | | |
158 | | // Assert `new_len` is equal to the page size (which is the only value we |
159 | | // currently support) |
160 | | // Note: we could easily support arbitrary multiples of PAGE_SIZE here if |
161 | | // the need arises. |
162 | 0 | ins.ptr_iconst(index_type, PAGE_SIZE) |
163 | 0 | .local_get(3) |
164 | 0 | .ptr_ne(index_type) |
165 | 0 | .if_(wasm_encoder::BlockType::Empty) |
166 | 0 | .unreachable() |
167 | 0 | .end(); |
168 | | |
169 | | // Grow the memory by enough pages to get PAGE_SIZE bytes. |
170 | | // With default 64KiB pages this is 1; with page-size-1 this is 65536. |
171 | 0 | let grow_pages = PAGE_SIZE >> page_size_log2; |
172 | 0 | ins.ptr_iconst(index_type, grow_pages) |
173 | 0 | .memory_grow(0) |
174 | 0 | .local_tee(4); |
175 | | |
176 | | // Test if the return value of the growth was -1 and, if so, trap due to a |
177 | | // failed allocation. |
178 | 0 | ins.ptr_iconst(index_type, -1) |
179 | 0 | .ptr_eq(index_type) |
180 | 0 | .if_(wasm_encoder::BlockType::Empty) |
181 | 0 | .unreachable() |
182 | 0 | .end(); |
183 | | |
184 | | // Convert the page index returned by memory.grow to a byte offset. |
185 | 0 | ins.local_get(4); |
186 | 0 | if page_size_log2 > 0 { |
187 | 0 | ins.ptr_uconst(index_type, page_size_log2) |
188 | 0 | .ptr_shl(index_type); |
189 | 0 | } |
190 | 0 | ins.end(); |
191 | | |
192 | 0 | func |
193 | 0 | } |
194 | | |
195 | | #[repr(i32)] |
196 | | #[non_exhaustive] |
197 | | enum StackAllocationState { |
198 | | Unallocated, |
199 | | Allocating, |
200 | | Allocated, |
201 | | } |
202 | | |
203 | | /// Generates a function which allocates a stack via `realloc_index` and |
204 | | /// stores the top of it in the `sp` global. |
205 | | /// |
206 | | /// The `index_type` of memory determines the type of `sp` and of the |
207 | | /// `realloc` function. The `allocation_state` global, if present, is always an |
208 | | /// `i32` as it only stores a `StackAllocationState`. |
209 | 0 | fn allocate_stack_via_realloc( |
210 | 0 | realloc_index: u32, |
211 | 0 | sp: u32, |
212 | 0 | allocation_state: Option<u32>, |
213 | 0 | index_type: IndexType, |
214 | 0 | ) -> wasm_encoder::Function { |
215 | 0 | let mut func = wasm_encoder::Function::new([]); |
216 | 0 | let mut ins = func.instructions(); |
217 | | |
218 | 0 | if let Some(allocation_state) = allocation_state { |
219 | 0 | // This means we're lazily allocating the stack, keeping track of state via `$allocation_state` |
220 | 0 | ins.global_get(allocation_state) |
221 | 0 | .i32_const(StackAllocationState::Unallocated as _) |
222 | 0 | .i32_eq() |
223 | 0 | .if_(wasm_encoder::BlockType::Empty) |
224 | 0 | .i32_const(StackAllocationState::Allocating as _) |
225 | 0 | .global_set(allocation_state); |
226 | 0 | // We could also set `sp` to zero here to ensure the yet-to-be-allocated stack is empty. However, we |
227 | 0 | // assume it defaults to zero anyway, in which case setting it would be redundant. |
228 | 0 | } |
229 | | |
230 | 0 | ins.ptr_iconst(index_type, 0) |
231 | 0 | .ptr_iconst(index_type, 0) |
232 | 0 | .ptr_iconst(index_type, 8) |
233 | 0 | .ptr_iconst(index_type, PAGE_SIZE) |
234 | 0 | .call(realloc_index) |
235 | 0 | .ptr_iconst(index_type, PAGE_SIZE) |
236 | 0 | .ptr_add(index_type) |
237 | 0 | .global_set(sp); |
238 | | |
239 | 0 | if let Some(allocation_state) = allocation_state { |
240 | 0 | ins.i32_const(StackAllocationState::Allocated as _) |
241 | 0 | .global_set(allocation_state) |
242 | 0 | .end(); |
243 | 0 | } |
244 | | |
245 | 0 | ins.end(); |
246 | | |
247 | 0 | func |
248 | 0 | } |
249 | | |
250 | | // Represents a function called while processing a module work list. |
251 | | type WorklistFunc<'a> = fn(&mut Module<'a>, u32) -> Result<()>; |
252 | | |
253 | | // Representation of a wasm module which is used to GC a module to its minimal |
254 | | // set of required items necessary to implement the `exports` |
255 | | // |
256 | | // Note that this is not a complete representation of a wasm module since it |
257 | | // doesn't represent everything such as data and element segments. This is only |
258 | | // used for adapter modules which otherwise have these restrictions and makes |
259 | | // this gc pass a bit easier to write. |
260 | | #[derive(Default)] |
261 | | struct Module<'a> { |
262 | | // Definitions found when parsing a module |
263 | | types: Vec<FuncType>, |
264 | | tables: Vec<Table<'a>>, |
265 | | globals: Vec<Global<'a>>, |
266 | | memories: Vec<Memory<'a>>, |
267 | | funcs: Vec<Func<'a>>, |
268 | | exports: IndexMap<&'a str, Export<'a>>, |
269 | | func_names: HashMap<u32, &'a str>, |
270 | | global_names: HashMap<u32, &'a str>, |
271 | | producers: Option<wasm_metadata::Producers>, |
272 | | |
273 | | // Known-live sets of indices after the `liveness` pass has run. |
274 | | live_types: BitVec, |
275 | | live_tables: BitVec, |
276 | | live_globals: BitVec, |
277 | | live_memories: BitVec, |
278 | | live_funcs: BitVec, |
279 | | |
280 | | // Helper data structure used during the `liveness` path to avoid recursion. |
281 | | // When calculating the liveness of an item this `worklist` is pushed to and |
282 | | // then processed until it's empty. An item pushed onto this list represents |
283 | | // a new index that has been discovered to be live and the function is what |
284 | | // walks the item's definition to find other items that it references. |
285 | | worklist: Vec<(u32, WorklistFunc<'a>)>, |
286 | | } |
287 | | |
288 | | struct Table<'a> { |
289 | | def: Definition<'a, ()>, |
290 | | ty: TableType, |
291 | | } |
292 | | |
293 | | struct Memory<'a> { |
294 | | def: Definition<'a, ()>, |
295 | | ty: MemoryType, |
296 | | } |
297 | | |
298 | | struct Global<'a> { |
299 | | def: Definition<'a, ConstExpr<'a>>, |
300 | | ty: GlobalType, |
301 | | } |
302 | | |
303 | | #[derive(Clone)] |
304 | | struct Func<'a> { |
305 | | def: Definition<'a, FunctionBody<'a>>, |
306 | | ty: u32, |
307 | | } |
308 | | |
309 | | #[derive(Clone)] |
310 | | enum Definition<'a, T> { |
311 | | Import(&'a str, &'a str), |
312 | | Local(T), |
313 | | } |
314 | | |
315 | | impl<'a> Module<'a> { |
316 | 0 | fn parse(&mut self, wasm: &'a [u8]) -> Result<()> { |
317 | 0 | let mut next_code_index = 0; |
318 | 0 | let mut validator = Validator::new_with_features(WasmFeatures::all()); |
319 | 0 | for payload in Parser::new(0).parse_all(wasm) { |
320 | 0 | let payload = payload?; |
321 | 0 | validator.payload(&payload)?; |
322 | 0 | match payload { |
323 | 0 | Payload::Version { encoding, .. } => { |
324 | 0 | if encoding != Encoding::Module { |
325 | 0 | bail!("adapter must be a core wasm module, not a component"); |
326 | 0 | } |
327 | | } |
328 | 0 | Payload::End(_) => {} |
329 | 0 | Payload::TypeSection(s) => { |
330 | 0 | for ty in s.into_iter_err_on_gc_types() { |
331 | 0 | self.types.push(ty?); |
332 | | } |
333 | | } |
334 | 0 | Payload::ImportSection(s) => { |
335 | 0 | for i in s.into_imports() { |
336 | 0 | let i = i?; |
337 | 0 | match i.ty { |
338 | 0 | TypeRef::Func(ty) => self.funcs.push(Func { |
339 | 0 | def: Definition::Import(i.module, i.name), |
340 | 0 | ty, |
341 | 0 | }), |
342 | 0 | TypeRef::Table(ty) => self.tables.push(Table { |
343 | 0 | def: Definition::Import(i.module, i.name), |
344 | 0 | ty, |
345 | 0 | }), |
346 | 0 | TypeRef::Global(ty) => self.globals.push(Global { |
347 | 0 | def: Definition::Import(i.module, i.name), |
348 | 0 | ty, |
349 | 0 | }), |
350 | 0 | TypeRef::Memory(ty) => self.memories.push(Memory { |
351 | 0 | def: Definition::Import(i.module, i.name), |
352 | 0 | ty, |
353 | 0 | }), |
354 | 0 | TypeRef::Tag(_) => bail!("unsupported `tag` type"), |
355 | | TypeRef::FuncExact(_) => { |
356 | 0 | bail!("unsupported `func_exact` type") |
357 | | } |
358 | | } |
359 | | } |
360 | | } |
361 | 0 | Payload::TableSection(s) => { |
362 | 0 | for table in s { |
363 | 0 | let table = table?; |
364 | 0 | self.tables.push(Table { |
365 | 0 | def: Definition::Local(()), |
366 | 0 | ty: table.ty, |
367 | 0 | }); |
368 | | } |
369 | | } |
370 | 0 | Payload::MemorySection(s) => { |
371 | 0 | for ty in s { |
372 | 0 | let ty = ty?; |
373 | 0 | self.memories.push(Memory { |
374 | 0 | def: Definition::Local(()), |
375 | 0 | ty, |
376 | 0 | }); |
377 | | } |
378 | | } |
379 | 0 | Payload::GlobalSection(s) => { |
380 | 0 | for g in s { |
381 | 0 | let g = g?; |
382 | 0 | self.globals.push(Global { |
383 | 0 | def: Definition::Local(g.init_expr), |
384 | 0 | ty: g.ty, |
385 | 0 | }); |
386 | | } |
387 | | } |
388 | | |
389 | 0 | Payload::ExportSection(s) => { |
390 | 0 | for e in s { |
391 | 0 | let e = e?; |
392 | 0 | self.exports.insert(e.name, e); |
393 | | } |
394 | | } |
395 | | |
396 | 0 | Payload::FunctionSection(s) => { |
397 | 0 | next_code_index = self.funcs.len(); |
398 | 0 | for ty in s { |
399 | 0 | let ty = ty?; |
400 | 0 | self.funcs.push(Func { |
401 | 0 | // Specify a dummy definition to get filled in later |
402 | 0 | // when parsing the code section. |
403 | 0 | def: Definition::Local(FunctionBody::new(BinaryReader::new(&[], 0))), |
404 | 0 | ty, |
405 | 0 | }); |
406 | | } |
407 | | } |
408 | | |
409 | 0 | Payload::CodeSectionStart { .. } => {} |
410 | 0 | Payload::CodeSectionEntry(body) => { |
411 | 0 | self.funcs[next_code_index].def = Definition::Local(body); |
412 | 0 | next_code_index += 1; |
413 | 0 | } |
414 | | |
415 | | // Ignore all custom sections except for the `name` and |
416 | | // `producers` sections which we parse, but ignore errors within. |
417 | 0 | Payload::CustomSection(s) => match s.as_known() { |
418 | 0 | KnownCustom::Name(s) => drop(self.parse_name_section(s)), |
419 | 0 | KnownCustom::Producers(_) => drop(self.parse_producers_section(&s)), |
420 | 0 | _ => {} |
421 | | }, |
422 | | |
423 | | // sections that shouldn't appear in the specially-crafted core |
424 | | // wasm adapter self we're processing |
425 | 0 | other => match other.as_section() { |
426 | 0 | Some((id, _)) => bail!("unsupported section `{id}` in adapter"), |
427 | 0 | None => bail!("unsupported payload in adapter"), |
428 | | }, |
429 | | } |
430 | | } |
431 | | |
432 | 0 | Ok(()) |
433 | 0 | } |
434 | | |
435 | 0 | fn parse_name_section(&mut self, section: NameSectionReader<'a>) -> Result<()> { |
436 | 0 | for s in section { |
437 | 0 | match s? { |
438 | 0 | Name::Function(map) => { |
439 | 0 | for naming in map { |
440 | 0 | let naming = naming?; |
441 | 0 | self.func_names.insert(naming.index, naming.name); |
442 | | } |
443 | | } |
444 | 0 | Name::Global(map) => { |
445 | 0 | for naming in map { |
446 | 0 | let naming = naming?; |
447 | 0 | self.global_names.insert(naming.index, naming.name); |
448 | | } |
449 | | } |
450 | 0 | _ => {} |
451 | | } |
452 | | } |
453 | 0 | Ok(()) |
454 | 0 | } |
455 | | |
456 | 0 | fn parse_producers_section(&mut self, section: &CustomSectionReader<'a>) -> Result<()> { |
457 | 0 | let producers = |
458 | 0 | wasm_metadata::Producers::from_bytes(section.data(), section.data_offset())?; |
459 | 0 | self.producers = Some(producers); |
460 | 0 | Ok(()) |
461 | 0 | } |
462 | | |
463 | | /// Iteratively calculates the set of live items within this module |
464 | | /// considering all exports as the root of live functions. |
465 | 0 | fn liveness(&mut self) -> Result<()> { |
466 | 0 | let exports = mem::take(&mut self.exports); |
467 | 0 | for (_, e) in exports.iter() { |
468 | 0 | match e.kind { |
469 | 0 | ExternalKind::Func | ExternalKind::FuncExact => self.func(e.index), |
470 | 0 | ExternalKind::Global => self.global(e.index), |
471 | 0 | ExternalKind::Table => self.table(e.index), |
472 | 0 | ExternalKind::Memory => self.memory(e.index), |
473 | 0 | ExternalKind::Tag => bail!("unsupported exported tag"), |
474 | | } |
475 | | } |
476 | 0 | self.exports = exports; |
477 | | |
478 | 0 | while let Some((idx, func)) = self.worklist.pop() { |
479 | 0 | func(self, idx)?; |
480 | | } |
481 | 0 | Ok(()) |
482 | 0 | } |
483 | | |
484 | 0 | fn func(&mut self, func: u32) { |
485 | 0 | if !self.live_funcs.insert(func) { |
486 | 0 | return; |
487 | 0 | } |
488 | 0 | self.worklist.push((func, |me, func| { |
489 | 0 | let func = me.funcs[func as usize].clone(); |
490 | 0 | me.ty(func.ty); |
491 | 0 | let mut body = match &func.def { |
492 | 0 | Definition::Import(..) => return Ok(()), |
493 | 0 | Definition::Local(e) => e.get_binary_reader(), |
494 | | }; |
495 | 0 | let local_count = body.read_var_u32()?; |
496 | 0 | for _ in 0..local_count { |
497 | 0 | body.read_var_u32()?; |
498 | 0 | body.read::<ValType>()?; |
499 | | } |
500 | 0 | me.operators(body) |
501 | 0 | })); |
502 | 0 | } |
503 | | |
504 | 0 | fn global(&mut self, global: u32) { |
505 | 0 | if !self.live_globals.insert(global) { |
506 | 0 | return; |
507 | 0 | } |
508 | 0 | self.worklist.push((global, |me, global| { |
509 | 0 | let init = match &me.globals[global as usize].def { |
510 | 0 | Definition::Import(..) => return Ok(()), |
511 | 0 | Definition::Local(e) => e, |
512 | | }; |
513 | 0 | me.operators(init.get_binary_reader()) |
514 | 0 | })); |
515 | 0 | } |
516 | | |
517 | 0 | fn table(&mut self, table: u32) { |
518 | 0 | if !self.live_tables.insert(table) { |
519 | 0 | return; |
520 | 0 | } |
521 | 0 | self.worklist.push((table, |me, table| { |
522 | 0 | let ty = me.tables[table as usize].ty.element_type; |
523 | 0 | me.valty(ty.into()); |
524 | 0 | Ok(()) |
525 | 0 | })); |
526 | 0 | } |
527 | | |
528 | 0 | fn memory(&mut self, memory: u32) { |
529 | 0 | self.live_memories.insert(memory); |
530 | 0 | } |
531 | | |
532 | 0 | fn blockty(&mut self, ty: BlockType) { |
533 | 0 | if let BlockType::FuncType(ty) = ty { |
534 | 0 | self.ty(ty); |
535 | 0 | } |
536 | 0 | } |
537 | | |
538 | 0 | fn valty(&mut self, ty: ValType) { |
539 | 0 | match ty { |
540 | 0 | ValType::Ref(r) => self.refty(r), |
541 | 0 | ValType::I32 | ValType::I64 | ValType::F32 | ValType::F64 | ValType::V128 => {} |
542 | | } |
543 | 0 | } |
544 | | |
545 | 0 | fn valtys(&mut self, tys: &[ValType]) { |
546 | 0 | for i in tys { |
547 | 0 | self.valty(*i); |
548 | 0 | } |
549 | 0 | } |
550 | | |
551 | 0 | fn refty(&mut self, ty: RefType) { |
552 | 0 | self.heapty(ty.heap_type()) |
553 | 0 | } |
554 | | |
555 | 0 | fn heapty(&mut self, ty: HeapType) { |
556 | 0 | match ty { |
557 | 0 | HeapType::Abstract { .. } => {} |
558 | 0 | HeapType::Concrete(i) | HeapType::Exact(i) => self.ty(i.as_module_index().unwrap()), |
559 | | } |
560 | 0 | } |
561 | | |
562 | 0 | fn ty(&mut self, ty: u32) { |
563 | 0 | if !self.live_types.insert(ty) { |
564 | 0 | return; |
565 | 0 | } |
566 | 0 | self.worklist.push((ty, |me, ty| { |
567 | 0 | let ty = me.types[ty as usize].clone(); |
568 | 0 | for param in ty.params().iter().chain(ty.results()) { |
569 | 0 | me.valty(*param); |
570 | 0 | } |
571 | 0 | Ok(()) |
572 | 0 | })); |
573 | 0 | } |
574 | | |
575 | 0 | fn operators(&mut self, reader: BinaryReader<'a>) -> Result<()> { |
576 | 0 | let mut ops = OperatorsReader::new(reader); |
577 | 0 | while !ops.eof() { |
578 | 0 | ops.visit_operator(self)?; |
579 | | } |
580 | 0 | ops.finish()?; |
581 | 0 | Ok(()) |
582 | 0 | } |
583 | | |
584 | 0 | fn live_types(&self) -> impl Iterator<Item = (u32, &FuncType)> + '_ { |
585 | 0 | live_iter(&self.live_types, self.types.iter()) |
586 | 0 | } |
587 | | |
588 | 0 | fn live_funcs(&self) -> impl Iterator<Item = (u32, &Func<'a>)> + '_ { |
589 | 0 | live_iter(&self.live_funcs, self.funcs.iter()) |
590 | 0 | } |
591 | | |
592 | 0 | fn live_memories(&self) -> impl Iterator<Item = (u32, &Memory<'a>)> + '_ { |
593 | 0 | live_iter(&self.live_memories, self.memories.iter()) |
594 | 0 | } |
595 | | |
596 | 0 | fn live_globals(&self) -> impl Iterator<Item = (u32, &Global<'a>)> + '_ { |
597 | 0 | live_iter(&self.live_globals, self.globals.iter()) |
598 | 0 | } |
599 | | |
600 | 0 | fn live_tables(&self) -> impl Iterator<Item = (u32, &Table<'a>)> + '_ { |
601 | 0 | live_iter(&self.live_tables, self.tables.iter()) |
602 | 0 | } |
603 | | |
604 | | /// Encodes this `Module` to a new wasm module which is gc'd and only |
605 | | /// contains the items that are live as calculated by the `liveness` pass. |
606 | 0 | fn encode( |
607 | 0 | &mut self, |
608 | 0 | main_module_realloc: Option<&str>, |
609 | 0 | page_size_log2: u32, |
610 | 0 | index_type: IndexType, |
611 | 0 | ) -> Result<Vec<u8>> { |
612 | | // Data structure used to track the mapping of old index to new index |
613 | | // for all live items. |
614 | 0 | let mut map = Encoder::default(); |
615 | | |
616 | | // Sections that will be assembled into the final module at the end of |
617 | | // this function. |
618 | 0 | let mut types = wasm_encoder::TypeSection::new(); |
619 | 0 | let mut imports = wasm_encoder::ImportSection::new(); |
620 | 0 | let mut funcs = wasm_encoder::FunctionSection::new(); |
621 | 0 | let mut tables = wasm_encoder::TableSection::new(); |
622 | 0 | let mut memories = wasm_encoder::MemorySection::new(); |
623 | 0 | let mut globals = wasm_encoder::GlobalSection::new(); |
624 | 0 | let mut code = wasm_encoder::CodeSection::new(); |
625 | | |
626 | 0 | let mut empty_type = None; |
627 | 0 | for (i, ty) in self.live_types() { |
628 | 0 | map.types.push(i); |
629 | | |
630 | 0 | let ty = map.func_type(ty.clone())?; |
631 | 0 | types.ty().func_type(&ty); |
632 | | |
633 | | // Keep track of the "empty type" to see if we can reuse an |
634 | | // existing one or one needs to be injected if a `start` |
635 | | // function is calculated at the end. |
636 | 0 | if ty.params().is_empty() && ty.results().is_empty() { |
637 | 0 | empty_type = Some(map.types.remap(i)); |
638 | 0 | } |
639 | | } |
640 | | |
641 | 0 | let mut num_memories = 0; |
642 | 0 | for (i, mem) in self.live_memories() { |
643 | 0 | map.memories.push(i); |
644 | 0 | let ty = map.memory_type(mem.ty); |
645 | 0 | match &mem.def { |
646 | 0 | Definition::Import(m, n) => { |
647 | 0 | imports.import(m, n, ty?); |
648 | | } |
649 | | Definition::Local(()) => { |
650 | 0 | memories.memory(ty?); |
651 | | } |
652 | | } |
653 | 0 | num_memories += 1; |
654 | | } |
655 | | |
656 | 0 | for (i, table) in self.live_tables() { |
657 | 0 | map.tables.push(i); |
658 | 0 | let ty = map.table_type(table.ty)?; |
659 | 0 | match &table.def { |
660 | 0 | Definition::Import(m, n) => { |
661 | 0 | imports.import(m, n, ty); |
662 | 0 | } |
663 | 0 | Definition::Local(()) => { |
664 | 0 | tables.table(ty); |
665 | 0 | } |
666 | | } |
667 | | } |
668 | | |
669 | 0 | for (i, global) in self.live_globals() { |
670 | 0 | map.globals.push(i); |
671 | 0 | let ty = map.global_type(global.ty)?; |
672 | 0 | match &global.def { |
673 | 0 | Definition::Import(m, n) => { |
674 | 0 | imports.import(m, n, ty); |
675 | 0 | } |
676 | 0 | Definition::Local(init) => { |
677 | 0 | let init = &map.const_expr(init.clone())?; |
678 | 0 | globals.global(ty, &init); |
679 | | } |
680 | | } |
681 | | } |
682 | | |
683 | 0 | let mut realloc_index = None; |
684 | 0 | let mut num_func_imports = 0; |
685 | | |
686 | | // For functions first assign a new index to all functions and then |
687 | | // afterwards actually map the body of all functions so the `map` of all |
688 | | // index mappings is fully populated before instructions are mapped. |
689 | | |
690 | 0 | let is_realloc = |
691 | 0 | |m, n| m == "__main_module__" && matches!(n, "canonical_abi_realloc" | "cabi_realloc"); |
692 | | |
693 | 0 | let (imported, local) = |
694 | 0 | self.live_funcs() |
695 | 0 | .partition::<Vec<_>, _>(|(_, func)| match &func.def { |
696 | 0 | Definition::Import(m, n) => { |
697 | 0 | !is_realloc(*m, *n) || main_module_realloc.is_some() |
698 | | } |
699 | 0 | Definition::Local(_) => false, |
700 | 0 | }); |
701 | | |
702 | 0 | for (i, func) in imported { |
703 | 0 | map.funcs.push(i); |
704 | 0 | let ty = map.types.remap(func.ty); |
705 | 0 | match &func.def { |
706 | 0 | Definition::Import(m, n) => { |
707 | 0 | let name = if is_realloc(*m, *n) { |
708 | | // The adapter is importing `cabi_realloc` from the main module, and the main module |
709 | | // exports that function, but possibly using a different name |
710 | | // (e.g. `canonical_abi_realloc`). Update the name to match if necessary. |
711 | 0 | realloc_index = Some(num_func_imports); |
712 | 0 | main_module_realloc.unwrap_or(n) |
713 | | } else { |
714 | 0 | n |
715 | | }; |
716 | 0 | imports.import(m, name, EntityType::Function(ty)); |
717 | 0 | num_func_imports += 1; |
718 | | } |
719 | 0 | Definition::Local(_) => unreachable!(), |
720 | | } |
721 | | } |
722 | | |
723 | 0 | let add_realloc_type = |types: &mut wasm_encoder::TypeSection| { |
724 | 0 | let type_index = types.len(); |
725 | 0 | let ptr = index_type.encoder_ptr(); |
726 | 0 | types.ty().function([ptr; 4], [ptr]); |
727 | 0 | type_index |
728 | 0 | }; |
729 | | |
730 | 0 | let add_empty_type = |types: &mut wasm_encoder::TypeSection| { |
731 | 0 | let type_index = types.len(); |
732 | 0 | types.ty().function([], []); |
733 | 0 | type_index |
734 | 0 | }; |
735 | | |
736 | 0 | let sp = self.find_mut_global("__stack_pointer", index_type.ptr())?; |
737 | 0 | let allocation_state = self.find_mut_global("allocation_state", ValType::I32)?; |
738 | | |
739 | 0 | let mut func_names = Vec::new(); |
740 | | |
741 | 0 | if let (Some(realloc), Some(_), None) = (main_module_realloc, sp, realloc_index) { |
742 | 0 | // The main module exports a realloc function, and although the adapter doesn't import it, we're going |
743 | 0 | // to add a function which calls it to allocate some stack space, so let's add an import now. |
744 | 0 |
|
745 | 0 | // Tell the function remapper we're reserving a slot for our extra import: |
746 | 0 | map.funcs.next += 1; |
747 | 0 |
|
748 | 0 | realloc_index = Some(num_func_imports); |
749 | 0 | imports.import( |
750 | 0 | "__main_module__", |
751 | 0 | realloc, |
752 | 0 | EntityType::Function(add_realloc_type(&mut types)), |
753 | 0 | ); |
754 | 0 | func_names.push((num_func_imports, realloc)); |
755 | 0 | num_func_imports += 1; |
756 | 0 | } |
757 | | |
758 | 0 | for (i, func) in local { |
759 | 0 | map.funcs.push(i); |
760 | 0 | let ty = map.types.remap(func.ty); |
761 | 0 | match &func.def { |
762 | 0 | Definition::Import(_, _) => { |
763 | 0 | // The adapter is importing `cabi_realloc` from the main module, but the main module isn't |
764 | 0 | // exporting it. In this case, we need to define a local function it can call instead. |
765 | 0 | realloc_index = Some(num_func_imports + funcs.len()); |
766 | 0 | funcs.function(ty); |
767 | 0 | code.function(&realloc_via_memory_grow(page_size_log2, index_type)); |
768 | 0 | } |
769 | 0 | Definition::Local(_) => { |
770 | 0 | funcs.function(ty); |
771 | 0 | } |
772 | | } |
773 | | } |
774 | | |
775 | 0 | let lazy_stack_init_index = |
776 | 0 | if sp.is_some() && allocation_state.is_some() && main_module_realloc.is_some() { |
777 | | // We have a stack pointer, a `cabi_realloc` function from the main module, and a global variable for |
778 | | // keeping track of (and short-circuiting) reentrance. That means we can (and should) do lazy stack |
779 | | // allocation. |
780 | 0 | let index = num_func_imports + funcs.len(); |
781 | | |
782 | | // Tell the function remapper we're reserving a slot for our extra function: |
783 | 0 | map.funcs.next += 1; |
784 | | |
785 | 0 | funcs.function(add_empty_type(&mut types)); |
786 | | |
787 | 0 | Some(index) |
788 | | } else { |
789 | 0 | None |
790 | | }; |
791 | | |
792 | 0 | let exported_funcs = self |
793 | 0 | .exports |
794 | 0 | .values() |
795 | 0 | .filter_map(|export| match export.kind { |
796 | 0 | ExternalKind::Func => Some(export.index), |
797 | 0 | _ => None, |
798 | 0 | }) |
799 | 0 | .collect::<HashSet<_>>(); |
800 | | |
801 | 0 | for (i, func) in self.live_funcs() { |
802 | 0 | let body = match &func.def { |
803 | 0 | Definition::Import(..) => continue, |
804 | 0 | Definition::Local(body) => body, |
805 | | }; |
806 | | |
807 | 0 | match (lazy_stack_init_index, exported_funcs.contains(&i)) { |
808 | | // Prepend an `allocate_stack` call to all exports if we're |
809 | | // lazily allocating the stack. |
810 | 0 | (Some(lazy_stack_init_index), true) => { |
811 | 0 | let mut func = map.new_function_with_parsed_locals(&body)?; |
812 | 0 | func.instructions().call(lazy_stack_init_index); |
813 | 0 | let mut reader = body.get_operators_reader()?; |
814 | 0 | while !reader.eof() { |
815 | 0 | func.instruction(&map.parse_instruction(&mut reader)?); |
816 | | } |
817 | 0 | code.function(&func); |
818 | | } |
819 | | _ => { |
820 | 0 | map.parse_function_body(&mut code, body.clone())?; |
821 | | } |
822 | | } |
823 | | } |
824 | | |
825 | 0 | if lazy_stack_init_index.is_some() { |
826 | 0 | code.function(&allocate_stack_via_realloc( |
827 | 0 | realloc_index.unwrap(), |
828 | 0 | sp.unwrap(), |
829 | 0 | allocation_state, |
830 | 0 | index_type, |
831 | 0 | )); |
832 | 0 | } |
833 | | |
834 | 0 | if sp.is_some() && (realloc_index.is_none() || allocation_state.is_none()) { |
835 | 0 | // Either the main module does _not_ export a realloc function, or it is not safe to use for stack |
836 | 0 | // allocation because we have no way to short-circuit reentrance, so we'll use `memory.grow` instead. |
837 | 0 | realloc_index = Some(num_func_imports + funcs.len()); |
838 | 0 | funcs.function(add_realloc_type(&mut types)); |
839 | 0 | code.function(&realloc_via_memory_grow(page_size_log2, index_type)); |
840 | 0 | } |
841 | | |
842 | | // Inject a start function to initialize the stack pointer which will be local to this module. This only |
843 | | // happens if a memory is preserved, a stack pointer global is found, and we're not doing lazy stack |
844 | | // allocation. |
845 | 0 | let mut start = None; |
846 | 0 | if let (Some(sp), None) = (sp, lazy_stack_init_index) { |
847 | 0 | if num_memories > 0 { |
848 | | // If there are any memories or any mutable globals there must be |
849 | | // precisely one of each as otherwise we don't know how to filter |
850 | | // down to the right one. |
851 | 0 | if num_memories != 1 { |
852 | 0 | bail!("adapter modules don't support multi-memory"); |
853 | 0 | } |
854 | | |
855 | 0 | let sp = map.globals.remap(sp); |
856 | | |
857 | 0 | let function_index = num_func_imports + funcs.len(); |
858 | | |
859 | | // Generate a function type for this start function, adding a new |
860 | | // function type to the module if necessary. |
861 | 0 | let empty_type = empty_type.unwrap_or_else(|| { |
862 | 0 | types.ty().function([], []); |
863 | 0 | types.len() - 1 |
864 | 0 | }); |
865 | 0 | funcs.function(empty_type); |
866 | 0 | func_names.push((function_index, "allocate_stack")); |
867 | 0 | code.function(&allocate_stack_via_realloc( |
868 | 0 | realloc_index.unwrap(), |
869 | 0 | sp, |
870 | 0 | allocation_state, |
871 | 0 | index_type, |
872 | 0 | )); |
873 | | |
874 | 0 | start = Some(wasm_encoder::StartSection { function_index }); |
875 | 0 | } |
876 | 0 | } |
877 | | |
878 | | // Sanity-check the shape of the module since some parts won't work if |
879 | | // this fails. Note that during parsing we've already validated there |
880 | | // are no data segments or element segments. |
881 | | |
882 | | // Shouldn't have any tables if there are no element segments since |
883 | | // otherwise there's no meaning to a defined or imported table. |
884 | 0 | if self.live_tables().count() != 0 { |
885 | 0 | bail!("tables should not be present in the final adapter module"); |
886 | 0 | } |
887 | | |
888 | | // multi-memory should not be enabled and if any memory it should be |
889 | | // imported. |
890 | 0 | if self.live_memories().count() > 1 { |
891 | 0 | bail!("the adapter module should not use multi-memory"); |
892 | 0 | } |
893 | 0 | if !memories.is_empty() { |
894 | 0 | bail!("locally-defined memories are not allowed define a local memory"); |
895 | 0 | } |
896 | | |
897 | 0 | let mut ret = wasm_encoder::Module::default(); |
898 | 0 | if !types.is_empty() { |
899 | 0 | ret.section(&types); |
900 | 0 | } |
901 | 0 | if !imports.is_empty() { |
902 | 0 | ret.section(&imports); |
903 | 0 | } |
904 | 0 | if !funcs.is_empty() { |
905 | 0 | ret.section(&funcs); |
906 | 0 | } |
907 | 0 | if !tables.is_empty() { |
908 | 0 | ret.section(&tables); |
909 | 0 | } |
910 | 0 | if !memories.is_empty() { |
911 | 0 | ret.section(&memories); |
912 | 0 | } |
913 | 0 | if !globals.is_empty() { |
914 | 0 | ret.section(&globals); |
915 | 0 | } |
916 | | |
917 | 0 | if !self.exports.is_empty() { |
918 | 0 | let mut exports = wasm_encoder::ExportSection::new(); |
919 | 0 | for (_, export) in self.exports.iter() { |
920 | 0 | let (kind, index) = match export.kind { |
921 | 0 | ExternalKind::Func => ( |
922 | 0 | wasm_encoder::ExportKind::Func, |
923 | 0 | map.funcs.remap(export.index), |
924 | 0 | ), |
925 | 0 | ExternalKind::Table => ( |
926 | 0 | wasm_encoder::ExportKind::Table, |
927 | 0 | map.tables.remap(export.index), |
928 | 0 | ), |
929 | 0 | ExternalKind::Memory => ( |
930 | 0 | wasm_encoder::ExportKind::Memory, |
931 | 0 | map.memories.remap(export.index), |
932 | 0 | ), |
933 | 0 | ExternalKind::Global => ( |
934 | 0 | wasm_encoder::ExportKind::Global, |
935 | 0 | map.globals.remap(export.index), |
936 | 0 | ), |
937 | 0 | kind => bail!("unsupported export kind {kind:?}"), |
938 | | }; |
939 | 0 | exports.export(export.name, kind, index); |
940 | | } |
941 | 0 | ret.section(&exports); |
942 | 0 | } |
943 | | |
944 | 0 | if let Some(start) = &start { |
945 | 0 | ret.section(start); |
946 | 0 | } |
947 | | |
948 | 0 | if !code.is_empty() { |
949 | 0 | ret.section(&code); |
950 | 0 | } |
951 | | |
952 | | // Append a custom `name` section using the names of the functions that |
953 | | // were found prior to the GC pass in the original module. |
954 | 0 | let mut global_names = Vec::new(); |
955 | 0 | for (i, _func) in self.live_funcs() { |
956 | 0 | let name = match self.func_names.get(&i) { |
957 | 0 | Some(name) => name, |
958 | 0 | None => continue, |
959 | | }; |
960 | 0 | func_names.push((map.funcs.remap(i), *name)); |
961 | | } |
962 | 0 | for (i, _global) in self.live_globals() { |
963 | 0 | let name = match self.global_names.get(&i) { |
964 | 0 | Some(name) => name, |
965 | 0 | None => continue, |
966 | | }; |
967 | 0 | global_names.push((map.globals.remap(i), *name)); |
968 | | } |
969 | 0 | let mut section = Vec::new(); |
970 | 0 | let mut encode_subsection = |code: u8, names: &mut [(u32, &str)]| { |
971 | 0 | if names.is_empty() { |
972 | 0 | return; |
973 | 0 | } |
974 | 0 | names.sort_by_key(|(i, _)| *i); |
975 | 0 | let mut subsection = Vec::new(); |
976 | 0 | names.len().encode(&mut subsection); |
977 | 0 | for (i, name) in names { |
978 | 0 | i.encode(&mut subsection); |
979 | 0 | name.encode(&mut subsection); |
980 | 0 | } |
981 | 0 | section.push(code); |
982 | 0 | subsection.encode(&mut section); |
983 | 0 | }; |
984 | 0 | if let Some(lazy_stack_init_index) = lazy_stack_init_index { |
985 | 0 | func_names.push((lazy_stack_init_index, "allocate_stack")); |
986 | 0 | } |
987 | 0 | encode_subsection(0x01, &mut func_names); |
988 | 0 | encode_subsection(0x07, &mut global_names); |
989 | 0 | if !section.is_empty() { |
990 | 0 | ret.section(&wasm_encoder::CustomSection { |
991 | 0 | name: "name".into(), |
992 | 0 | data: Cow::Borrowed(§ion), |
993 | 0 | }); |
994 | 0 | } |
995 | 0 | if let Some(producers) = &self.producers { |
996 | 0 | ret.section(&RawCustomSection(&producers.raw_custom_section())); |
997 | 0 | } |
998 | | |
999 | 0 | Ok(ret.finish()) |
1000 | 0 | } |
1001 | | |
1002 | 0 | fn find_mut_global(&self, name: &str, ty: ValType) -> Result<Option<u32>> { |
1003 | 0 | let matches = &self |
1004 | 0 | .live_globals() |
1005 | 0 | .filter_map(|(i, g)| { |
1006 | 0 | if g.ty.mutable && g.ty.content_type == ty && *self.global_names.get(&i)? == name { |
1007 | 0 | Some(i) |
1008 | | } else { |
1009 | 0 | None |
1010 | | } |
1011 | 0 | }) |
1012 | 0 | .collect::<Vec<_>>(); |
1013 | | |
1014 | 0 | match matches.deref() { |
1015 | 0 | [] => Ok(None), |
1016 | 0 | [i] => Ok(Some(*i)), |
1017 | 0 | _ => bail!( |
1018 | | "found {} mutable {ty} globals with name {name}", |
1019 | 0 | matches.len() |
1020 | | ), |
1021 | | } |
1022 | 0 | } |
1023 | | } |
1024 | | |
1025 | | // This helper macro is used to define a visitor of all instructions with |
1026 | | // special handling for all payloads of instructions to mark any referenced |
1027 | | // items live. |
1028 | | // |
1029 | | // Currently item identification happens through the field name of the payload. |
1030 | | // While not exactly the most robust solution this should work well enough for |
1031 | | // now. |
1032 | | macro_rules! define_visit { |
1033 | | ($(@$p:ident $op:ident $({ $($arg:ident: $argty:ty),* })? => $visit:ident ($($ann:tt)*))*) => { |
1034 | | $( |
1035 | | #[allow(unused_variables)] |
1036 | 0 | fn $visit(&mut self $(, $($arg: $argty),*)?) { |
1037 | | $( |
1038 | | $( |
1039 | 0 | define_visit!(mark_live self $arg $arg); Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_resume Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_try_table Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_resume_throw Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_resume_throw_ref |
1040 | | )* |
1041 | | )? |
1042 | 0 | } Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_call Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_drop Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_else Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_loop Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_block Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_br_if Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_catch Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_pause Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_throw Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f32_eq Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f32_ge Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f32_gt Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f32_le Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f32_lt Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f32_ne Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f64_eq Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f64_ge Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f64_gt Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f64_le Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f64_lt Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f64_ne Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_eq Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_ne Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_or Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_eq Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_ne Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_or Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_ref_eq Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_return Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_select Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_switch Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f32_abs Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f32_add Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f32_div Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f32_max Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f32_min Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f32_mul Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f32_neg Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f32_sub Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f64_abs Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f64_add Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f64_div Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f64_max Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f64_min Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f64_mul Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f64_neg Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f64_sub Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_add Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_and Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_clz Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_ctz Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_eqz Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_mul Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_shl Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_sub Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_xor Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_add Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_and Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_clz Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_ctz Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_eqz Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_mul Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_shl Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_sub Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_xor Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_ref_i31 Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_rethrow Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_suspend Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_br_table Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_call_ref Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_cont_new Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_delegate Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f32_ceil Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f32_load Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f32_sqrt Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f64_ceil Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f64_load Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f64_sqrt Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_ge_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_ge_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_gt_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_gt_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_le_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_le_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_load Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_lt_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_lt_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_rotl Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_rotr Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_ge_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_ge_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_gt_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_gt_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_le_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_le_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_load Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_lt_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_lt_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_rotl Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_rotr Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_ref_func Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_ref_null Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_array_get Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_array_len Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_array_new Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_array_set Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_catch_all Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_cont_bind Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_data_drop Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_elem_drop Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f32_const Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f32_floor Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f32_store Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f32_trunc Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f64_const Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f64_floor Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f64_store Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f64_trunc Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i31_get_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i31_get_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_const Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_div_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_div_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_rem_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_rem_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_shr_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_shr_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_store Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_const Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_div_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_div_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_rem_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_rem_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_shr_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_shr_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_store Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_local_get Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_local_set Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_local_tee Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_table_get Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_table_set Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_throw_ref Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_array_copy Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_array_fill Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_br_on_cast Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_br_on_null Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_global_get Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_global_set Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_popcnt Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_store8 Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_add128 Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_popcnt Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_store8 Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_sub128 Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_struct_get Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_struct_new Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_struct_set Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_table_copy Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_table_fill Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_table_grow Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_table_init Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_table_size Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_array_get_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_array_get_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f32_nearest Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f64_nearest Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_load8_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_load8_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_store16 Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_load8_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_load8_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_store16 Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_store32 Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_memory_copy Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_memory_fill Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_memory_grow Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_memory_init Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_memory_size Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_ref_is_null Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_return_call Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_unreachable Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_atomic_fence Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f32_copysign Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f64_copysign Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_load16_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_load16_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_wrap_i64 Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_load16_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_load16_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_load32_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_load32_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_ref_get_desc Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_struct_get_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_struct_get_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_typed_select Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_call_indirect Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_extend8_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_extend8_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_array_new_data Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_array_new_elem Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_br_on_non_null Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f32_demote_f64 Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_extend16_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_extend16_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_extend32_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_mul_wide_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_mul_wide_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_memory_discard Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_ref_i31_shared Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_array_init_data Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_array_init_elem Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_array_new_fixed Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_br_on_cast_fail Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f64_promote_f32 Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_atomic_load Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_trunc_f32_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_trunc_f32_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_trunc_f64_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_trunc_f64_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_atomic_load Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_trunc_f32_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_trunc_f32_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_trunc_f64_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_trunc_f64_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_ref_as_non_null Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_return_call_ref Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_struct_new_desc Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_array_atomic_get Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_array_atomic_set Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_atomic_store Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_atomic_store Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_extend_i32_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_extend_i32_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_table_atomic_get Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_table_atomic_set Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_array_new_default Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f32_convert_i32_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f32_convert_i32_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f32_convert_i64_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f32_convert_i64_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f64_convert_i32_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f64_convert_i32_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f64_convert_i64_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f64_convert_i64_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_global_atomic_get Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_global_atomic_set Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_atomic_rmw_or Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_atomic_store8 Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_atomic_rmw_or Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_atomic_store8 Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_ref_cast_non_null Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_ref_cast_nullable Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_ref_test_non_null Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_ref_test_nullable Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_struct_atomic_get Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_struct_atomic_set Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_any_convert_extern Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_array_atomic_get_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_array_atomic_get_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_br_on_cast_desc_eq Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_extern_convert_any Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_atomic_load8_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_atomic_rmw_add Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_atomic_rmw_and Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_atomic_rmw_sub Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_atomic_rmw_xor Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_atomic_store16 Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_atomic_load8_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_atomic_rmw_add Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_atomic_rmw_and Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_atomic_rmw_sub Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_atomic_rmw_xor Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_atomic_store16 Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_atomic_store32 Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_struct_new_default Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_typed_select_multi Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_array_atomic_rmw_or Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f32_reinterpret_i32 Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_f64_reinterpret_i64 Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_atomic_load16_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_atomic_rmw_xchg Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_reinterpret_f32 Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_trunc_sat_f32_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_trunc_sat_f32_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_trunc_sat_f64_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_trunc_sat_f64_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_atomic_load16_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_atomic_load32_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_atomic_rmw_xchg Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_reinterpret_f64 Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_trunc_sat_f32_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_trunc_sat_f32_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_trunc_sat_f64_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_trunc_sat_f64_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_struct_atomic_get_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_struct_atomic_get_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_array_atomic_rmw_add Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_array_atomic_rmw_and Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_array_atomic_rmw_sub Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_array_atomic_rmw_xor Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_global_atomic_rmw_or Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_atomic_rmw8_or_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_atomic_rmw8_or_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_memory_atomic_notify Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_memory_atomic_wait32 Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_memory_atomic_wait64 Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_return_call_indirect Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_struct_atomic_rmw_or Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_array_atomic_rmw_xchg Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_global_atomic_rmw_add Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_global_atomic_rmw_and Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_global_atomic_rmw_sub Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_global_atomic_rmw_xor Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_atomic_rmw16_or_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_atomic_rmw8_add_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_atomic_rmw8_and_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_atomic_rmw8_sub_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_atomic_rmw8_xor_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_atomic_rmw16_or_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_atomic_rmw32_or_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_atomic_rmw8_add_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_atomic_rmw8_and_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_atomic_rmw8_sub_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_atomic_rmw8_xor_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_struct_atomic_rmw_add Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_struct_atomic_rmw_and Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_struct_atomic_rmw_sub Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_struct_atomic_rmw_xor Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_table_atomic_rmw_xchg Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_global_atomic_rmw_xchg Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_atomic_rmw16_add_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_atomic_rmw16_and_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_atomic_rmw16_sub_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_atomic_rmw16_xor_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_atomic_rmw8_xchg_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_atomic_rmw_cmpxchg Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_atomic_rmw16_add_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_atomic_rmw16_and_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_atomic_rmw16_sub_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_atomic_rmw16_xor_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_atomic_rmw32_add_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_atomic_rmw32_and_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_atomic_rmw32_sub_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_atomic_rmw32_xor_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_atomic_rmw8_xchg_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_atomic_rmw_cmpxchg Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_struct_atomic_rmw_xchg Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_br_on_cast_desc_eq_fail Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_atomic_rmw16_xchg_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_atomic_rmw16_xchg_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_atomic_rmw32_xchg_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_struct_new_default_desc Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_array_atomic_rmw_cmpxchg Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_table_atomic_rmw_cmpxchg Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_global_atomic_rmw_cmpxchg Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_atomic_rmw8_cmpxchg_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_atomic_rmw8_cmpxchg_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_ref_cast_desc_eq_non_null Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_ref_cast_desc_eq_nullable Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_struct_atomic_rmw_cmpxchg Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i32_atomic_rmw16_cmpxchg_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_atomic_rmw16_cmpxchg_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_i64_atomic_rmw32_cmpxchg_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_br Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_if Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_end Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_nop Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitOperator>::visit_try Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_v128_or Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f32x4_eq Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f32x4_ge Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f32x4_gt Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f32x4_le Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f32x4_lt Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f32x4_ne Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f64x2_eq Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f64x2_ge Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f64x2_gt Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f64x2_le Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f64x2_lt Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f64x2_ne Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_eq Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_ne Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_eq Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_ne Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i64x2_eq Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i64x2_ne Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i8x16_eq Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i8x16_ne Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_v128_and Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_v128_not Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_v128_xor Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f32x4_abs Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f32x4_add Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f32x4_div Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f32x4_max Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f32x4_min Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f32x4_mul Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f32x4_neg Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f32x4_sub Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f64x2_abs Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f64x2_add Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f64x2_div Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f64x2_max Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f64x2_min Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f64x2_mul Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f64x2_neg Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f64x2_sub Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_abs Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_add Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_mul Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_neg Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_shl Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_sub Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_abs Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_add Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_mul Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_neg Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_shl Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_sub Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i64x2_abs Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i64x2_add Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i64x2_mul Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i64x2_neg Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i64x2_shl Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i64x2_sub Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i8x16_abs Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i8x16_add Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i8x16_neg Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i8x16_shl Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i8x16_sub Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_v128_load Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f32x4_ceil Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f32x4_pmax Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f32x4_pmin Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f32x4_sqrt Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f64x2_ceil Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f64x2_pmax Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f64x2_pmin Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f64x2_sqrt Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_ge_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_ge_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_gt_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_gt_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_le_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_le_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_lt_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_lt_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_ge_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_ge_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_gt_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_gt_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_le_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_le_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_lt_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_lt_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i64x2_ge_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i64x2_gt_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i64x2_le_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i64x2_lt_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i8x16_ge_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i8x16_ge_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i8x16_gt_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i8x16_gt_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i8x16_le_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i8x16_le_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i8x16_lt_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i8x16_lt_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_v128_const Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_v128_store Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f32x4_floor Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f32x4_splat Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f32x4_trunc Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f64x2_floor Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f64x2_splat Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f64x2_trunc Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_max_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_max_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_min_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_min_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_shr_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_shr_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_splat Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_max_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_max_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_min_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_min_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_shr_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_shr_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_splat Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i64x2_shr_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i64x2_shr_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i64x2_splat Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i8x16_max_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i8x16_max_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i8x16_min_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i8x16_min_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i8x16_shr_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i8x16_shr_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i8x16_splat Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_v128_andnot Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_avgr_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i8x16_avgr_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i8x16_popcnt Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f32x4_nearest Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f64x2_nearest Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_bitmask Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_bitmask Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i64x2_bitmask Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i8x16_bitmask Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i8x16_shuffle Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i8x16_swizzle Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_v128_any_true Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_all_true Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_all_true Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i64x2_all_true Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i8x16_all_true Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_v128_bitselect Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_v128_load8x8_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_v128_load8x8_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_add_sat_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_add_sat_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_sub_sat_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_sub_sat_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i8x16_add_sat_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i8x16_add_sat_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i8x16_sub_sat_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i8x16_sub_sat_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_v128_load16x4_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_v128_load16x4_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_v128_load32x2_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_v128_load32x2_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_v128_load8_lane Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_v128_load16_lane Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_v128_load32_lane Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_v128_load32_zero Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_v128_load64_lane Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_v128_load64_zero Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_v128_load8_splat Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_v128_store8_lane Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f32x4_relaxed_max Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f32x4_relaxed_min Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f64x2_relaxed_max Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f64x2_relaxed_min Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_dot_i16x8_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_v128_load16_splat Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_v128_load32_splat Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_v128_load64_splat Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_v128_store16_lane Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_v128_store32_lane Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_v128_store64_lane Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f32x4_extract_lane Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f32x4_relaxed_madd Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f32x4_replace_lane Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f64x2_extract_lane Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f64x2_relaxed_madd Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f64x2_replace_lane Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_replace_lane Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_extract_lane Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_replace_lane Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i64x2_extract_lane Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i64x2_replace_lane Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i8x16_replace_lane Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f32x4_relaxed_nmadd Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f64x2_relaxed_nmadd Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_q15mulr_sat_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_extract_lane_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_extract_lane_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_narrow_i32x4_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_narrow_i32x4_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i8x16_extract_lane_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i8x16_extract_lane_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i8x16_narrow_i16x8_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i8x16_narrow_i16x8_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f32x4_convert_i32x4_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f32x4_convert_i32x4_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i8x16_relaxed_swizzle Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f32x4_demote_f64x2_zero Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f64x2_promote_low_f32x4 Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_relaxed_q15mulr_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_trunc_sat_f32x4_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_trunc_sat_f32x4_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_extend_low_i8x16_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_extend_low_i8x16_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_extmul_low_i8x16_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_extmul_low_i8x16_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_relaxed_laneselect Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_extend_low_i16x8_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_extend_low_i16x8_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_extmul_low_i16x8_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_extmul_low_i16x8_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_relaxed_laneselect Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i64x2_extend_low_i32x4_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i64x2_extend_low_i32x4_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i64x2_extmul_low_i32x4_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i64x2_extmul_low_i32x4_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i64x2_relaxed_laneselect Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i8x16_relaxed_laneselect Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f64x2_convert_low_i32x4_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_f64x2_convert_low_i32x4_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_extend_high_i8x16_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_extend_high_i8x16_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_extmul_high_i8x16_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_extmul_high_i8x16_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_extend_high_i16x8_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_extend_high_i16x8_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_extmul_high_i16x8_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_extmul_high_i16x8_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i64x2_extend_high_i32x4_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i64x2_extend_high_i32x4_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i64x2_extmul_high_i32x4_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i64x2_extmul_high_i32x4_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_relaxed_trunc_f32x4_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_relaxed_trunc_f32x4_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_trunc_sat_f64x2_s_zero Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_trunc_sat_f64x2_u_zero Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_extadd_pairwise_i8x16_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_extadd_pairwise_i8x16_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_extadd_pairwise_i16x8_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_extadd_pairwise_i16x8_u Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i16x8_relaxed_dot_i8x16_i7x16_s Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_relaxed_trunc_f64x2_s_zero Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_relaxed_trunc_f64x2_u_zero Unexecuted instantiation: <wit_component::gc::Module as wasmparser::readers::core::operators::VisitSimdOperator>::visit_i32x4_relaxed_dot_i8x16_i7x16_add_s |
1043 | | )* |
1044 | | }; |
1045 | | |
1046 | | (mark_live $self:ident $arg:ident type_index) => {$self.ty($arg);}; |
1047 | | (mark_live $self:ident $arg:ident array_type_index) => {$self.ty($arg);}; |
1048 | | (mark_live $self:ident $arg:ident array_type_index_dst) => {$self.ty($arg);}; |
1049 | | (mark_live $self:ident $arg:ident array_type_index_src) => {$self.ty($arg);}; |
1050 | | (mark_live $self:ident $arg:ident struct_type_index) => {$self.ty($arg);}; |
1051 | | (mark_live $self:ident $arg:ident src_table) => {$self.table($arg);}; |
1052 | | (mark_live $self:ident $arg:ident dst_table) => {$self.table($arg);}; |
1053 | | (mark_live $self:ident $arg:ident table_index) => {$self.table($arg);}; |
1054 | | (mark_live $self:ident $arg:ident table) => {$self.table($arg);}; |
1055 | | (mark_live $self:ident $arg:ident global_index) => {$self.global($arg);}; |
1056 | | (mark_live $self:ident $arg:ident function_index) => {$self.func($arg);}; |
1057 | | (mark_live $self:ident $arg:ident mem) => {$self.memory($arg);}; |
1058 | | (mark_live $self:ident $arg:ident src_mem) => {$self.memory($arg);}; |
1059 | | (mark_live $self:ident $arg:ident dst_mem) => {$self.memory($arg);}; |
1060 | | (mark_live $self:ident $arg:ident memarg) => { |
1061 | | match $arg.target { |
1062 | | wasmparser::MemArgTarget::Memory(i) => $self.memory(i), |
1063 | | wasmparser::MemArgTarget::Array(ty) => $self.ty(ty), |
1064 | | } |
1065 | | }; |
1066 | | (mark_live $self:ident $arg:ident blockty) => {$self.blockty($arg);}; |
1067 | | (mark_live $self:ident $arg:ident ty) => {$self.valty($arg)}; |
1068 | | (mark_live $self:ident $arg:ident tys) => {$self.valtys(&$arg)}; |
1069 | | (mark_live $self:ident $arg:ident hty) => {$self.heapty($arg)}; |
1070 | | (mark_live $self:ident $arg:ident from_ref_type) => {$self.refty($arg);}; |
1071 | | (mark_live $self:ident $arg:ident to_ref_type) => {$self.refty($arg);}; |
1072 | | (mark_live $self:ident $arg:ident lane) => {}; |
1073 | | (mark_live $self:ident $arg:ident lanes) => {}; |
1074 | | (mark_live $self:ident $arg:ident value) => {}; |
1075 | | (mark_live $self:ident $arg:ident local_index) => {}; |
1076 | | (mark_live $self:ident $arg:ident relative_depth) => {}; |
1077 | | (mark_live $self:ident $arg:ident tag_index) => {}; |
1078 | | (mark_live $self:ident $arg:ident targets) => {}; |
1079 | | (mark_live $self:ident $arg:ident data_index) => {}; |
1080 | | (mark_live $self:ident $arg:ident array_data_index) => {}; |
1081 | | (mark_live $self:ident $arg:ident elem_index) => {}; |
1082 | | (mark_live $self:ident $arg:ident array_elem_index) => {}; |
1083 | | (mark_live $self:ident $arg:ident array_size) => {}; |
1084 | | (mark_live $self:ident $arg:ident field_index) => {}; |
1085 | | (mark_live $self:ident $arg:ident ordering) => {}; |
1086 | | (mark_live $self:ident $arg:ident try_table) => {unimplemented!();}; |
1087 | | (mark_live $self:ident $arg:ident argument_index) => {}; |
1088 | | (mark_live $self:ident $arg:ident result_index) => {}; |
1089 | | (mark_live $self:ident $arg:ident cont_type_index) => {}; |
1090 | | (mark_live $self:ident $arg:ident resume_table) => {unimplemented!();}; |
1091 | | } |
1092 | | |
1093 | | impl<'a> VisitOperator<'a> for Module<'a> { |
1094 | | type Output = (); |
1095 | | |
1096 | 0 | fn simd_visitor(&mut self) -> Option<&mut dyn VisitSimdOperator<'a, Output = Self::Output>> { |
1097 | 0 | Some(self) |
1098 | 0 | } |
1099 | | |
1100 | | wasmparser::for_each_visit_operator!(define_visit); |
1101 | | } |
1102 | | |
1103 | | impl<'a> VisitSimdOperator<'a> for Module<'a> { |
1104 | | wasmparser::for_each_visit_simd_operator!(define_visit); |
1105 | | } |
1106 | | |
1107 | | /// Helper function to filter `iter` based on the `live` set, yielding an |
1108 | | /// iterator over the index of the item that's live as well as the item itself. |
1109 | 0 | fn live_iter<'a, T>( |
1110 | 0 | live: &'a BitVec, |
1111 | 0 | iter: impl Iterator<Item = T> + 'a, |
1112 | 0 | ) -> impl Iterator<Item = (u32, T)> + 'a { |
1113 | 0 | iter.enumerate().filter_map(|(i, t)| { |
1114 | 0 | let i = i as u32; |
1115 | 0 | if live.contains(i) { Some((i, t)) } else { None } |
1116 | 0 | }) Unexecuted instantiation: wit_component::gc::live_iter::<&wit_component::gc::Func, core::slice::iter::Iter<wit_component::gc::Func>>::{closure#0}Unexecuted instantiation: wit_component::gc::live_iter::<&wit_component::gc::Table, core::slice::iter::Iter<wit_component::gc::Table>>::{closure#0}Unexecuted instantiation: wit_component::gc::live_iter::<&wit_component::gc::Global, core::slice::iter::Iter<wit_component::gc::Global>>::{closure#0}Unexecuted instantiation: wit_component::gc::live_iter::<&wit_component::gc::Memory, core::slice::iter::Iter<wit_component::gc::Memory>>::{closure#0}Unexecuted instantiation: wit_component::gc::live_iter::<&wasmparser::readers::core::types::FuncType, core::slice::iter::Iter<wasmparser::readers::core::types::FuncType>>::{closure#0} |
1117 | 0 | } Unexecuted instantiation: wit_component::gc::live_iter::<&wit_component::gc::Func, core::slice::iter::Iter<wit_component::gc::Func>> Unexecuted instantiation: wit_component::gc::live_iter::<&wit_component::gc::Table, core::slice::iter::Iter<wit_component::gc::Table>> Unexecuted instantiation: wit_component::gc::live_iter::<&wit_component::gc::Global, core::slice::iter::Iter<wit_component::gc::Global>> Unexecuted instantiation: wit_component::gc::live_iter::<&wit_component::gc::Memory, core::slice::iter::Iter<wit_component::gc::Memory>> Unexecuted instantiation: wit_component::gc::live_iter::<&wasmparser::readers::core::types::FuncType, core::slice::iter::Iter<wasmparser::readers::core::types::FuncType>> |
1118 | | |
1119 | | #[derive(Default)] |
1120 | | struct Encoder { |
1121 | | types: Remap, |
1122 | | funcs: Remap, |
1123 | | memories: Remap, |
1124 | | globals: Remap, |
1125 | | tables: Remap, |
1126 | | } |
1127 | | |
1128 | | type ReencodeResult<T> = Result<T, wasm_encoder::reencode::Error<Infallible>>; |
1129 | | |
1130 | | impl Reencode for Encoder { |
1131 | | type Error = Infallible; |
1132 | | |
1133 | 0 | fn type_index(&mut self, i: u32) -> ReencodeResult<u32> { |
1134 | 0 | Ok(self.types.remap(i)) |
1135 | 0 | } |
1136 | 0 | fn function_index(&mut self, i: u32) -> ReencodeResult<u32> { |
1137 | 0 | Ok(self.funcs.remap(i)) |
1138 | 0 | } |
1139 | 0 | fn memory_index(&mut self, i: u32) -> ReencodeResult<u32> { |
1140 | 0 | Ok(self.memories.remap(i)) |
1141 | 0 | } |
1142 | 0 | fn global_index(&mut self, i: u32) -> ReencodeResult<u32> { |
1143 | 0 | Ok(self.globals.remap(i)) |
1144 | 0 | } |
1145 | 0 | fn table_index(&mut self, i: u32) -> ReencodeResult<u32> { |
1146 | 0 | Ok(self.tables.remap(i)) |
1147 | 0 | } |
1148 | | } |
1149 | | |
1150 | | // Minimal definition of a bit vector necessary for the liveness calculations |
1151 | | // above. |
1152 | | mod bitvec { |
1153 | | use std::mem; |
1154 | | |
1155 | | type T = u64; |
1156 | | |
1157 | | #[derive(Default)] |
1158 | | pub struct BitVec { |
1159 | | bits: Vec<T>, |
1160 | | } |
1161 | | |
1162 | | impl BitVec { |
1163 | | /// Inserts `idx` into this bit vector, returning whether it was not |
1164 | | /// previously present. |
1165 | 0 | pub fn insert(&mut self, idx: u32) -> bool { |
1166 | 0 | let (idx, bit) = idx_bit(idx); |
1167 | 0 | match self.bits.get_mut(idx) { |
1168 | 0 | Some(bits) => { |
1169 | 0 | if *bits & bit != 0 { |
1170 | 0 | return false; |
1171 | 0 | } |
1172 | 0 | *bits |= bit; |
1173 | | } |
1174 | 0 | None => { |
1175 | 0 | self.bits.resize(idx + 1, 0); |
1176 | 0 | self.bits[idx] = bit; |
1177 | 0 | } |
1178 | | } |
1179 | 0 | true |
1180 | 0 | } |
1181 | | |
1182 | | /// Returns whether this bit vector contains the specified `idx`th bit. |
1183 | 0 | pub fn contains(&self, idx: u32) -> bool { |
1184 | 0 | let (idx, bit) = idx_bit(idx); |
1185 | 0 | match self.bits.get(idx) { |
1186 | 0 | Some(bits) => (*bits & bit) != 0, |
1187 | 0 | None => false, |
1188 | | } |
1189 | 0 | } |
1190 | | } |
1191 | | |
1192 | 0 | fn idx_bit(idx: u32) -> (usize, T) { |
1193 | 0 | let idx = idx as usize; |
1194 | 0 | let size = mem::size_of::<T>() * 8; |
1195 | 0 | let index = idx / size; |
1196 | 0 | let bit = 1 << (idx % size); |
1197 | 0 | (index, bit) |
1198 | 0 | } |
1199 | | } |
1200 | | |
1201 | | /// Small data structure used to track index mappings from an old index space to |
1202 | | /// a new. |
1203 | | #[derive(Default)] |
1204 | | struct Remap { |
1205 | | /// Map, indexed by the old index set, to the new index set. |
1206 | | map: HashMap<u32, u32>, |
1207 | | /// The next available index in the new index space. |
1208 | | next: u32, |
1209 | | } |
1210 | | |
1211 | | impl Remap { |
1212 | | /// Appends a new live "old index" into this remapping structure. |
1213 | | /// |
1214 | | /// This will assign a new index for the old index provided. |
1215 | 0 | fn push(&mut self, old: u32) { |
1216 | 0 | self.map.insert(old, self.next); |
1217 | 0 | self.next += 1; |
1218 | 0 | } |
1219 | | |
1220 | | /// Returns the new index corresponding to an old index. |
1221 | | /// |
1222 | | /// Panics if the `old` index was not added via `push` above. |
1223 | 0 | fn remap(&self, old: u32) -> u32 { |
1224 | 0 | *self |
1225 | 0 | .map |
1226 | 0 | .get(&old) |
1227 | 0 | .unwrap_or_else(|| panic!("can't map {old} to a new index")) |
1228 | 0 | } |
1229 | | } |