Exemplo n.º 1
0
        WasmNodeResult IWasmOpcodeVisitor <WasmNodeArg, WasmNodeResult> .Visit(F64AddOpcode opcode, WasmNodeArg arg)
        {
            var right = arg.Pop();
            var left  = arg.Pop();

            arg.Push(new F64AddNode(left, right));
            return(null);
        }
Exemplo n.º 2
0
        public WasmOpcodeExecutor Visit(F64AddOpcode opcode, WasmFunctionState state)
        {
            var right = state.PopF64();
            var left  = state.PopF64();

            state.PushF64(left + right);
            return(this);
        }