(&mut self, store: &mut StoreOpaque, memory: &ExtractMemory)
| 901 | } |
| 902 | |
| 903 | fn extract_memory(&mut self, store: &mut StoreOpaque, memory: &ExtractMemory) { |
| 904 | let import = match lookup_vmexport(store, self.id, &memory.export) { |
| 905 | crate::runtime::vm::Export::Memory(memory) => memory.vmimport(store), |
| 906 | crate::runtime::vm::Export::SharedMemory(_, import) => import, |
| 907 | _ => unreachable!(), |
| 908 | }; |
| 909 | self.instance_mut(store) |
| 910 | .set_runtime_memory(memory.index, import.from.as_non_null()); |
| 911 | } |
| 912 | |
| 913 | fn extract_realloc(&mut self, store: &mut StoreOpaque, realloc: &ExtractRealloc) { |
| 914 | let func_ref = match lookup_vmdef(store, self.id, &realloc.def) { |
no test coverage detected