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

Method visit_global_set

crates/parser/src/visit.rs:183–191  ·  view source on GitHub ↗
(&mut self, global_index: u32)

Source from the content-addressed store, hash-verified

181 }
182
183 fn visit_global_set(&mut self, global_index: u32) -> Self::Output {
184 if let Some(Some(t)) = self.validator.get_operand_type(0) {
185 self.instructions.push(match operand_size(t) {
186 OperandSize::S32 => Instruction::GlobalSet32(global_index),
187 OperandSize::S64 => Instruction::GlobalSet64(global_index),
188 OperandSize::S128 => Instruction::GlobalSet128(global_index),
189 })
190 }
191 }
192
193 fn visit_drop(&mut self) -> Self::Output {
194 if let Some(Some(t)) = self.validator.get_operand_type(0) {

Callers

nothing calls this directly

Calls 2

operand_sizeFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected