Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 3
0
 public WasmOpcodeExecutor Visit(EndOpcode opcode, WasmFunctionState state) => throw new System.NotImplementedException();