Get the global at the actual index in the store
(&self, addr: GlobalAddr)
| 253 | |
| 254 | /// Get the global at the actual index in the store |
| 255 | pub(crate) fn get_global(&self, addr: GlobalAddr) -> &GlobalInstance { |
| 256 | match self.globals.get(addr as usize) { |
| 257 | Some(global) => global, |
| 258 | None => { |
| 259 | cold_path(); |
| 260 | unreachable!("global {addr} not found. This should be unreachable") |
| 261 | } |
| 262 | } |
| 263 | } |
| 264 | |
| 265 | /// Get the global at the actual index in the store |
| 266 | pub(crate) fn get_global_mut(&mut self, addr: GlobalAddr) -> &mut GlobalInstance { |
no test coverage detected