示例#1
0
        WasmNodeResult IWasmOpcodeVisitor <WasmNodeArg, WasmNodeResult> .Visit(F32MulOpcode opcode, WasmNodeArg arg)
        {
            var right = arg.Pop();
            var left  = arg.Pop();

            arg.Push(new F32MulNode(left, right));
            return(null);
        }
示例#2
0
        public WasmOpcodeExecutor Visit(F32MulOpcode opcode, WasmFunctionState state)
        {
            var right = state.PopF32();
            var left  = state.PopF32();

            state.PushF32(left * right);
            return(this);
        }