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

Method visit_local_get

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

Source from the content-addressed store, hash-verified

208 }
209
210 fn visit_local_get(&mut self, idx: u32) -> Self::Output {
211 let resolved_idx = self.local_addr_map[idx as usize];
212 if let Some(t) = self.validator.get_local_type(idx) {
213 self.instructions.push(match operand_size(t) {
214 OperandSize::S32 => Instruction::LocalGet32(resolved_idx),
215 OperandSize::S64 => Instruction::LocalGet64(resolved_idx),
216 OperandSize::S128 => Instruction::LocalGet128(resolved_idx),
217 });
218 }
219 }
220
221 fn visit_local_set(&mut self, idx: u32) -> Self::Output {
222 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