Пример #1
0
        WasmNodeResult IWasmOpcodeVisitor <WasmNodeArg, WasmNodeResult> .Visit(F64MaxOpcode opcode, WasmNodeArg arg)
        {
            var right = arg.Pop();
            var left  = arg.Pop();

            arg.Push(new F64MaxNode(left, right));
            return(null);
        }
Пример #2
0
        public WasmOpcodeExecutor Visit(F64MaxOpcode opcode, WasmFunctionState state)
        {
            var right = state.PopF64();
            var left  = state.PopF64();

            state.PushF64(Math.Max(left, right));
            return(this);
        }