MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / update

Method update

crates/cranelift/src/debug/transform/unit.rs:32–36  ·  view source on GitHub ↗
(&mut self, depth: isize)

Source from the content-addressed store, hash-verified

30 }
31
32 fn update(&mut self, depth: isize) {
33 while !self.stack.is_empty() && self.stack.last().unwrap().0 >= depth {
34 self.stack.pop();
35 }
36 }
37
38 pub fn push(&mut self, depth: isize, value: T) {
39 self.stack.push((depth, value));

Callers 2

writeMethod · 0.45
clone_unitFunction · 0.45

Calls 4

is_emptyMethod · 0.45
unwrapMethod · 0.45
lastMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected