MCPcopy Index your code
hub / github.com/explodingcamera/tinywasm / get_module_instance_internal

Method get_module_instance_internal

crates/tinywasm/src/store/mod.rs:87–95  ·  view source on GitHub ↗
(&self, addr: ModuleInstanceAddr)

Source from the content-addressed store, hash-verified

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 {

Callers 5

newMethod · 0.80
exec_callMethod · 0.80
exec_return_callMethod · 0.80
exec_returnMethod · 0.80
finish_returnMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected