Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

IF_ACMPEQ.java

00001 package gov.nasa.arc.ase.jpf.jvm.bytecode;
00002 
00003 import de.fub.bytecode.classfile.ConstantPool;
00004 import gov.nasa.arc.ase.jpf.jvm.SystemState;
00005 import gov.nasa.arc.ase.jpf.jvm.KernelState;
00006 import gov.nasa.arc.ase.jpf.jvm.ThreadInfo;
00007 import gov.nasa.arc.ase.util.Debug;
00008 //#ifdef COVERAGE
00009 
00010 //#endif COVERAGE
00011 
00012 public class IF_ACMPEQ extends IfInstruction {
00013   private int target;
00014 
00015 //#ifdef COVERAGE
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 //#endif COVERAGE
00027 
00028   public Instruction execute(SystemState ss, KernelState ks, ThreadInfo th) {
00029     int v1 = th.pop();
00030     int v2 = th.pop();
00031 
00032     if (v1 == v2) {
00033 //#ifdef COVERAGE
00034 
00035 //#endif COVERAGE
00036       return th.getMethod().getInstructionAt(target);
00037     }
00038 //#ifdef COVERAGE
00039 
00040 //#endif COVERAGE
00041     return th.getPC().getNext();
00042   }  
00043   public void setPeer(de.fub.bytecode.generic.Instruction i, ConstantPool cp) {
00044     target = ((de.fub.bytecode.generic.IF_ACMPEQ)i).getTarget().getPosition();
00045   }  
00046 }

Generated at Thu Feb 7 06:46:23 2002 for Bandera by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001