MCPcopy Create free account
hub / github.com/explodingcamera/tinywasm / visit_drop

Method visit_drop

crates/parser/src/visit.rs:193–201  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

191 }
192
193 fn visit_drop(&mut self) -> Self::Output {
194 if let Some(Some(t)) = self.validator.get_operand_type(0) {
195 self.instructions.push(match operand_size(t) {
196 OperandSize::S32 => Instruction::Drop32,
197 OperandSize::S64 => Instruction::Drop64,
198 OperandSize::S128 => Instruction::Drop128,
199 })
200 }
201 }
202
203 fn visit_select(&mut self) -> Self::Output {
204 match self.validator.get_operand_type(1) {

Callers

nothing calls this directly

Calls 2

operand_sizeFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected