MCPcopy Create free account
hub / github.com/WasmVM/WasmVM / parse_variableinstr

Method parse_variableinstr

src/lib/parse/instr_parse.cpp:352–358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350// ── Variable instructions ─────────────────────────────────────────────────────
351
352WasmInstr ParseContext::parse_variableinstr(const std::string& name) {
353 if (name == "local.get") return Instr::Local_get(parse_localidx());
354 if (name == "local.set") return Instr::Local_set(parse_localidx());
355 if (name == "local.tee") return Instr::Local_tee(parse_localidx());
356 if (name == "global.get") return Instr::Global_get(parse_globalidx());
357 return Instr::Global_set(parse_globalidx());
358}
359
360// ── Table instructions ────────────────────────────────────────────────────────
361

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected