Exemplo n.º 1
0
        public WasmOpcodeExecutor Visit(I64Store32Opcode opcode, WasmFunctionState state)
        {
            var val = state.PopUI64();
            var adr = state.PopUI32();

            state.Memory.WriteUInt32(adr, opcode.Immediate, (uint)val);
            return(this);
        }
Exemplo n.º 2
0
        WasmNodeResult IWasmOpcodeVisitor <WasmNodeArg, WasmNodeResult> .Visit(I64Store32Opcode opcode, WasmNodeArg arg)
        {
            var value   = arg.Pop();
            var address = arg.Pop();

            arg.Push(new I64Store32Node(opcode.Immediate, address, value));
            return(null);
        }