(&self, addr: ModuleInstanceAddr)
| 85 | |
| 86 | #[inline] |
| 87 | pub(crate) fn get_module_instance_internal(&self, addr: ModuleInstanceAddr) -> ModuleInstance { |
| 88 | match self.module_instances.get(addr as usize) { |
| 89 | Some(instance) => instance.clone(), |
| 90 | None => { |
| 91 | cold_path(); |
| 92 | unreachable!("module instance {addr} not found. This should be unreachable") |
| 93 | } |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | pub(crate) fn enter_execution(&mut self) -> Result<()> { |
| 98 | if self.execution_active { |
no test coverage detected