(&self, addr: FuncAddr)
| 96 | /// resolve a function address to the global store address |
| 97 | #[inline] |
| 98 | pub(crate) fn resolve_func_addr(&self, addr: FuncAddr) -> FuncAddr { |
| 99 | match self.0.func_addrs.get(addr as usize) { |
| 100 | Some(addr) => *addr, |
| 101 | None => { |
| 102 | cold_path(); |
| 103 | unreachable!("invalid function address: {addr}") |
| 104 | } |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | /// resolve a table address to the global store address |
| 109 | #[inline] |
no test coverage detected