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

Method visit_local_set

crates/parser/src/visit.rs:221–230  ·  view source on GitHub ↗
(&mut self, idx: u32)

Source from the content-addressed store, hash-verified

219 }
220
221 fn visit_local_set(&mut self, idx: u32) -> Self::Output {
222 let resolved_idx = self.local_addr_map[idx as usize];
223 if let Some(Some(t)) = self.validator.get_operand_type(0) {
224 self.instructions.push(match operand_size(t) {
225 OperandSize::S32 => Instruction::LocalSet32(resolved_idx),
226 OperandSize::S64 => Instruction::LocalSet64(resolved_idx),
227 OperandSize::S128 => Instruction::LocalSet128(resolved_idx),
228 })
229 }
230 }
231
232 fn visit_local_tee(&mut self, idx: u32) -> Self::Output {
233 let resolved_idx = self.local_addr_map[idx as usize];

Callers

nothing calls this directly

Calls 2

operand_sizeFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected