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

Method visit_drop

winch/codegen/src/visitor.rs:2090–2096  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

2088 }
2089
2090 fn visit_drop(&mut self) -> Self::Output {
2091 self.context.drop_last(1, |regalloc, val| match val {
2092 Val::Reg(tr) => Ok(regalloc.free(tr.reg)),
2093 Val::Memory(m) => self.masm.free_stack(m.slot.size),
2094 _ => Ok(()),
2095 })
2096 }
2097
2098 fn visit_select(&mut self) -> Self::Output {
2099 let cond = self.context.pop_to_reg(self.masm, None)?;

Callers 1

Calls 4

OkFunction · 0.85
drop_lastMethod · 0.80
freeMethod · 0.45
free_stackMethod · 0.45

Tested by

no test coverage detected