1 19 20 25 26 27 28 29 30 package soot.baf.internal; 31 32 import soot.*; 33 import soot.baf.*; 34 import soot.baf.*; 35 import soot.util.*; 36 import java.util.*; 37 38 public class BPopInst extends AbstractInst implements PopInst 39 { 40 41 protected Type mType; 42 43 public BPopInst(Type aType) 44 { 45 mType = aType; 46 } 47 48 50 public int getWordCount() 51 { 52 return getInMachineCount(); 53 } 54 55 public void setWordCount(int count) 56 { 57 throw new RuntimeException ("not implemented"); 58 } 59 60 61 62 public Object clone() 63 { 64 return new BPopInst(mType); 65 } 66 67 68 final public String getName() { return "pop"; } 69 70 final String getParameters() 71 { 72 return ""; 73 } 74 75 public int getInCount() 76 { 77 return 1; 78 } 79 80 public int getOutMachineCount() 81 { 82 return 0; 83 } 84 85 public int getOutCount() 86 { 87 return 0; 88 } 89 90 public int getInMachineCount() 91 { 92 return JasminClass.sizeOfType(mType); 93 } 94 95 96 public void apply(Switch sw) 97 { 98 ((InstSwitch) sw).casePopInst(this); 99 } 100 101 } 102 | Popular Tags |