Package xscript.runtime.instruction

Examples of xscript.runtime.instruction.XInstruction


    return userData;
  }
 
  protected void run(){
    if(methodExecutor!=null){
      XInstruction instruction = methodExecutor.getNextInstruction();
      while(instruction==null){
        XMethodExecutor oldMethodExecutor = methodExecutor.getParent();
        if(methodExecutor.getMethod().getReturnTypePrimitive() != XPrimitive.VOID){
          result = methodExecutor.getReturn();
          if(oldMethodExecutor!=null){
            oldMethodExecutor.push(result[0], (int) result[1]);
          }
        }
        methodExecutor = oldMethodExecutor;
        instruction = methodExecutor.getNextInstruction();
      }
      if(instruction!=null){
        try{
          instruction.run(virtualMachine, this, methodExecutor);
        }catch(XRuntimeException e){
          e.printStackTrace();
        }
        XObject obj = virtualMachine.getObjectProvider().getObject(exception);
        if(obj!=null){
View Full Code Here

TOP

Related Classes of xscript.runtime.instruction.XInstruction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.