WasmNodeResult IWasmOpcodeVisitor <WasmNodeArg, WasmNodeResult> .Visit(EndOpcode opcode, WasmNodeArg arg) { if (arg.HasBlock) { arg.PopBlock(); } else { throw new WasmNodeException("there is no block to end"); } return(null); }
WasmMSILResult IWasmOpcodeVisitor <WasmMSILArg, WasmMSILResult> .Visit(EndOpcode opcode, WasmMSILArg arg) { arg.IL.Emit(OpCodes.Ret); //todo: finalize current block return(null); }
public WasmOpcodeExecutor Visit(EndOpcode opcode, WasmFunctionState state) => throw new System.NotImplementedException();