public WasmOpcodeExecutor Visit(I32DivSOpcode opcode, WasmFunctionState state)
        {
            var right = state.PopSI32();
            var left  = state.PopSI32();

            state.PushSI32(left / right);
            return(this);
        }
Exemplo n.º 2
0
        WasmNodeResult IWasmOpcodeVisitor <WasmNodeArg, WasmNodeResult> .Visit(I32DivSOpcode opcode, WasmNodeArg arg)
        {
            var right = arg.Pop();
            var left  = arg.Pop();

            arg.Push(new I32DivSNode(left, right));
            return(null);
        }