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