public override void execute(StackFrame frame) { Object returnVal = frame.popOperand(); if (returnVal is NullValue || returnVal is Heap.HeapReference || returnVal is ClassFile || returnVal is Thread){ frame.getPrev().pushOperand(returnVal); } else throw new ToyVMException("areturn inconsistent " + returnVal,frame); }
public override void execute(StackFrame frame) { frame.getPrev().pushOperand((double) frame.popOperand()); }