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 BDivInst extends AbstractOpTypeInst implements DivInst 38 { 39 public BDivInst(Type opType) 40 { 41 super(opType); 42 } 43 44 public int getInCount() 45 { 46 return 2; 47 } 48 49 public Object clone() 50 { 51 return new BDivInst(getOpType()); 52 } 53 54 public int getInMachineCount() 55 { 56 return 2 * JasminClass.sizeOfType(getOpType()); 57 } 58 59 public int getOutCount() 60 { 61 return 1; 62 } 63 64 public int getOutMachineCount() 65 { 66 return 1 * JasminClass.sizeOfType(getOpType()); 67 } 68 69 public final String getName() { return "div"; } 70 71 public void apply(Switch sw) 72 { 73 ((InstSwitch) sw).caseDivInst(this); 74 } 75 } 76 77 | Popular Tags |