Set the global at the actual index in the store
(&mut self, addr: GlobalAddr, value: TinyWasmValue)
| 286 | |
| 287 | /// Set the global at the actual index in the store |
| 288 | pub(crate) fn set_global_val(&mut self, addr: GlobalAddr, value: TinyWasmValue) { |
| 289 | match self.globals.get_mut(addr as usize) { |
| 290 | Some(global) => global.value.set(value), |
| 291 | None => { |
| 292 | cold_path(); |
| 293 | unreachable!("global {addr} not found. This should be unreachable") |
| 294 | } |
| 295 | } |
| 296 | } |
| 297 | } |
| 298 | |
| 299 | impl Store { |
no test coverage detected