public int getStackChange() { String type = getTypeName(); if (double.class.getName().equals(type) || long.class.getName().equals(type)) return 2; return 1; }
public int getStackChange() { String type = getTypeName(); if (double.class.getName().equals(type) || long.class.getName().equals(type)) return 2; return 1; }
/** * ConstantInstructions are equal if the const they reference is the same, * or if the const of either is unset. */ public boolean equalsInstruction(Instruction other) { if (this == other) return true; if (!(other instanceof ConstantInstruction)) return false; ConstantInstruction ci = (ConstantInstruction) other; Object value = getValue(); Object otherValue = ci.getValue(); if (value == null || otherValue == null) return true; if (getTypeName() == null || ci.getTypeName() == null) return true; return value.equals(otherValue) && getTypeName().equals(ci.getTypeName()); }
/** * ConstantInstructions are equal if the const they reference is the same, * or if the const of either is unset. */ public boolean equalsInstruction(Instruction other) { if (this == other) return true; if (!(other instanceof ConstantInstruction)) return false; ConstantInstruction ci = (ConstantInstruction) other; Object value = getValue(); Object otherValue = ci.getValue(); if (value == null || otherValue == null) return true; if (getTypeName() == null || ci.getTypeName() == null) return true; return value.equals(otherValue) && getTypeName().equals(ci.getTypeName()); }
void read(Instruction orig) { super.read(orig); ConstantInstruction ci = (ConstantInstruction) orig; calculateOpcode(ci.getValue(), Class.class.getName().equals(ci.getTypeName()), ci.getOpcode() == Constants.LDCW); }
void read(Instruction orig) { super.read(orig); ConstantInstruction ci = (ConstantInstruction) orig; calculateOpcode(ci.getValue(), Class.class.getName().equals(ci.getTypeName()), ci.getOpcode() == Constants.LDCW); }