MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / handle_store

Method handle_store

compiler/src/modules/vm/handlers/data.rs:6–11  ·  view source on GitHub ↗

StoreName: single SSA slot write after register coalescing. */

(&mut self, operand: u16, slots: &mut [Val])

Source from the content-addressed store, hash-verified

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> {

Callers 1

dispatchMethod · 0.80

Calls 2

get_mutMethod · 0.80
popMethod · 0.45

Tested by

no test coverage detected