1 19 20 25 26 27 28 29 30 package soot.baf.internal; 31 32 import soot.*; 33 import soot.baf.*; 34 import soot.util.*; 35 import java.util.*; 36 37 public class BIfCmpNeInst extends AbstractOpTypeBranchInst 38 implements IfCmpNeInst 39 { 40 public BIfCmpNeInst(Type opType, Unit target) 41 { 42 super(opType, Baf.v().newInstBox(target)); 43 } 44 45 public int getInCount() 46 { 47 return 2; 48 } 49 50 public Object clone() 51 { 52 return new BIfCmpNeInst(getOpType(), getTarget()); 53 } 54 55 public int getInMachineCount() 56 { 57 return 2*JasminClass.sizeOfType(getOpType()); 58 } 59 60 public int getOutCount() 61 { 62 return 0; 63 } 64 65 public int getOutMachineCount() 66 { 67 return 0; 68 } 69 70 public String getName() { return "ifcmpne"; } 71 72 public void apply(Switch sw) 73 { 74 ((InstSwitch) sw).caseIfCmpNeInst(this); 75 } 76 } 77 78 | Popular Tags |