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

            state.PushUI32(left * right);
            return(this);
        }
Beispiel #2
0
        WasmNodeResult IWasmOpcodeVisitor <WasmNodeArg, WasmNodeResult> .Visit(I32MulOpcode opcode, WasmNodeArg arg)
        {
            var right = arg.Pop();
            var left  = arg.Pop();

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