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