WasmNodeResult IWasmOpcodeVisitor <WasmNodeArg, WasmNodeResult> .Visit(F64SqrtOpcode opcode, WasmNodeArg arg) { var expr = arg.Pop(); arg.Push(new F64SqrtNode(expr)); return(null); }
public WasmOpcodeExecutor Visit(F64SqrtOpcode opcode, WasmFunctionState state) { var value = state.PopF64(); state.PushF64(Math.Sqrt(value)); return(this); }