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

Method set_binop_and_push

compiler/src/modules/vm/ops.rs:176–181  ·  view source on GitHub ↗
(&mut self, a: Val, b: Val, op: OpCode)

Source from the content-addressed store, hash-verified

174 }
175
176 pub(crate) fn set_binop_and_push(&mut self, a: Val, b: Val, op: OpCode) -> Result<(), VmErr> {
177 let items = self.set_binop_items(a, b, op)?;
178 let frozen = matches!(self.heap.get(a), HeapObj::FrozenSet(_));
179 let v = self.alloc_set_result(items, frozen)?;
180 self.push(v); Ok(())
181 }
182
183 // Augmented set bitwise: rewrite the left set in place (identity preserved); frozenset rebinds.
184 pub(crate) fn set_iop_and_push(&mut self, a: Val, b: Val, op: OpCode) -> Result<(), VmErr> {

Callers 2

set_iop_and_pushMethod · 0.80
handle_bitwiseMethod · 0.80

Calls 3

set_binop_itemsMethod · 0.80
alloc_set_resultMethod · 0.80
pushMethod · 0.80

Tested by

no test coverage detected