|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jikesrvm.compilers.opt.ir.operand.Operand
org.jikesrvm.compilers.opt.ir.operand.ConstantOperand
org.jikesrvm.compilers.opt.ir.operand.IntConstantOperand
public final class IntConstantOperand
Represents a constant int operand.
Operand| Field Summary | |
|---|---|
int |
value
Value of this operand. |
static IntConstantOperand |
zero
Constant 0, can be copied as convenient |
| Fields inherited from class org.jikesrvm.compilers.opt.ir.operand.Operand |
|---|
instruction |
| Constructor Summary | |
|---|---|
IntConstantOperand(int v)
Constructs a new int constant operand with the specified value. |
|
| Method Summary | |
|---|---|
Operand |
copy()
Return a new operand that is semantically equivalent to this. |
boolean |
equals(Object o)
|
TypeReference |
getType()
Return the TypeReference of the value represented by
the operand. |
int |
hashCode()
|
boolean |
isInt()
Does the operand represent a value of an int data type? |
boolean |
isIntLike()
Does the operand represent a value of an int-like data type? |
int |
lower16()
Return the lower 16 bits (as an int) of value |
int |
lower8()
Return the lower 8 bits (as an int) of value |
boolean |
similar(Operand op)
Are two operands semantically equivalent? |
String |
toString()
Returns the string representation of this operand. |
int |
upper16()
Return the upper 16 bits (as an int) of value |
int |
upper24()
Return the upper 24 bits (as an int) of value |
| Methods inherited from class org.jikesrvm.compilers.opt.ir.operand.Operand |
|---|
asAddressConstant, asBlock, asBranch, asClassConstant, asCondition, asDoubleConstant, asFloatConstant, asIntConstant, asLocation, asLongConstant, asMemory, asMethod, asNullConstant, asObjectConstant, asRegister, asStackLocation, asStringConstant, asTIBConstant, asType, conservativelyApproximates, getIndexInInstruction, isAddress, isAddressConstant, isBlock, isBranch, isClassConstant, isConstant, isDefinitelyNull, isDouble, isDoubleConstant, isFloat, isFloatConstant, isIntConstant, isLocation, isLong, isLongConstant, isMemory, isMethod, isMovableObjectConstant, isNullConstant, isObjectConstant, isRef, isRegister, isStackLocation, isStringConstant, isTIBConstant, isTrueGuard, isType, meet |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final IntConstantOperand zero
public final int value
| Constructor Detail |
|---|
public IntConstantOperand(int v)
v - value| Method Detail |
|---|
public TypeReference getType()
TypeReference of the value represented by
the operand. For int constants we speculate on the type
dependenent on the constant value.
getType in class Operandpublic boolean isIntLike()
isIntLike in class Operandtruepublic boolean isInt()
isInt in class Operandtruepublic Operand copy()
this.
copy in class Operandthispublic int lower8()
public int lower16()
public int upper16()
public int upper24()
public boolean similar(Operand op)
similar in class Operandop - other operand
true if this and op
are semantically equivalent or false
if they are not.public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||