WasmNodeResult IWasmOpcodeVisitor <WasmNodeArg, WasmNodeResult> .Visit(F32SqrtOpcode opcode, WasmNodeArg arg) { var expr = arg.Pop(); arg.Push(new F32SqrtNode(expr)); return(null); }
public WasmOpcodeExecutor Visit(F32SqrtOpcode opcode, WasmFunctionState state) { var value = state.PopF32(); state.PushF32(MathF.Sqrt(value)); return(this); }