Exemplo n.º 1
0
        WasmNodeResult IWasmOpcodeVisitor <WasmNodeArg, WasmNodeResult> .Visit(I32StoreOpcode opcode, WasmNodeArg arg)
        {
            var value   = arg.Pop();
            var address = arg.Pop();

            arg.Push(new I32StoreNode(opcode.Immediate, address, value));
            return(null);
        }
Exemplo n.º 2
0
        public WasmOpcodeExecutor Visit(I32StoreOpcode opcode, WasmFunctionState state)
        {
            var val = state.PopUI32();
            var adr = state.PopUI32();

            state.Memory.WriteUInt32(adr, opcode.Immediate, val);
            return(this);
        }
Exemplo n.º 3
0
 WasmMSILResult IWasmOpcodeVisitor <WasmMSILArg, WasmMSILResult> .Visit(I32StoreOpcode opcode, WasmMSILArg arg)
 {
     return(null);
 }