1 package gov.nasa.jpf.jvm.bytecode; 20 21 import gov.nasa.jpf.jvm.KernelState; 22 import gov.nasa.jpf.jvm.SystemState; 23 import gov.nasa.jpf.jvm.ThreadInfo; 24 25 import org.apache.bcel.classfile.ConstantPool; 26 27 28 32 public class GOTO extends Instruction { 33 private int target; 34 35 public void setPeer (org.apache.bcel.generic.Instruction i, ConstantPool cp) { 36 target = ((org.apache.bcel.generic.GOTO) i).getTarget().getPosition(); 37 } 38 39 public Instruction execute (SystemState ss, KernelState ks, ThreadInfo th) { 40 return th.getMethod().getInstructionAt(target); 41 } 42 43 public boolean isBackJump () { 44 return (target <= position); 45 } 46 47 public int getByteCode () { 48 return 0xA7; 49 } 50 } 51 | Popular Tags |