Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 public override void execute(StackFrame frame)
 {
     frame.getPrev().pushOperand((double) frame.popOperand());
 }