Example #1
0
        WasmNodeResult IWasmOpcodeVisitor <WasmNodeArg, WasmNodeResult> .Visit(SetGlobalOpcode opcode, WasmNodeArg arg)
        {
            var expr     = arg.Pop();
            var variable = arg.ResolveGlobal(opcode.GlobalIndex);

            arg.Push(new SetGlobalNode(variable, expr));
            return(null);
        }
Example #2
0
 WasmNodeResult IWasmOpcodeVisitor <WasmNodeArg, WasmNodeResult> .Visit(GetGlobalOpcode opcode, WasmNodeArg arg)
 {
     arg.Push(new GetGlobalNode(arg.ResolveGlobal(opcode.GlobalIndex)));
     return(null);
 }