StoreName: single SSA slot write after register coalescing. */
(&mut self, operand: u16, slots: &mut [Val])
| 4 | |
| 5 | /* StoreName: single SSA slot write after register coalescing. */ |
| 6 | pub(crate) fn handle_store(&mut self, operand: u16, slots: &mut [Val]) -> Result<(), VmErr> { |
| 7 | let v = self.pop()?; |
| 8 | // Malformed bytecode can carry an out-of-range slot; drop the write rather than panic. |
| 9 | if let Some(s) = slots.get_mut(operand as usize) { *s = v; } |
| 10 | Ok(()) |
| 11 | } |
| 12 | |
| 13 | /* Container constructors: list / tuple / dict / set / slice / string. */ |
| 14 | pub(crate) fn handle_build(&mut self, op: OpCode, operand: u16) -> Result<(), VmErr> { |