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

Method pop2

compiler/src/modules/vm/helpers.rs:53–55  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

51 self.stack.pop().ok_or(cold_runtime("stack underflow"))
52 }
53 #[inline] pub(crate) fn pop2(&mut self) -> Result<(Val, Val), VmErr> {
54 let b = self.pop()?; let a = self.pop()?; Ok((a, b))
55 }
56 #[inline] pub(crate) fn pop_n(&mut self, n: usize) -> Result<Vec<Val>, VmErr> {
57 let at = self.stack.len().checked_sub(n).ok_or(cold_runtime("stack underflow"))?;
58 Ok(self.stack.split_off(at))

Callers 4

handle_arithMethod · 0.80
handle_bitwiseMethod · 0.80
handle_compareMethod · 0.80
handle_identityMethod · 0.80

Calls 1

popMethod · 0.45

Tested by

no test coverage detected