| 350 | // ── Variable instructions ───────────────────────────────────────────────────── |
| 351 | |
| 352 | WasmInstr 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 |
nothing calls this directly
no outgoing calls
no test coverage detected