|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jikesrvm.compilers.opt.ir.operand.Operand org.jikesrvm.compilers.opt.ir.operand.ConstantOperand org.jikesrvm.compilers.opt.ir.operand.TIBConstantOperand
public final class TIBConstantOperand
Represents a constant TIB operand, found for example, from an ObjectConstantOperand.
NB: we don't use an object constant operand because:
NB: we don't use TypeOperand as the type of the operand is RVMType, whereas a
TIBs type is Object[]
.
Operand
Field Summary | |
---|---|
RVMType |
value
The non- null type for this TIB |
Fields inherited from class org.jikesrvm.compilers.opt.ir.operand.Operand |
---|
instruction |
Constructor Summary | |
---|---|
TIBConstantOperand(RVMType v)
Construct a new TIB constant operand |
Method Summary | |
---|---|
Operand |
copy()
Return a new operand that is semantically equivalent to this . |
TypeReference |
getType()
Return the TypeReference of the value represented by the operand. |
boolean |
isRef()
Does the operand represent a value of the reference data type? |
boolean |
similar(Operand op)
Are two operands semantically equivalent? |
String |
toString()
Returns the string representation of this operand. |
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, isInt, isIntConstant, isIntLike, isLocation, isLong, isLongConstant, isMemory, isMethod, isMovableObjectConstant, isNullConstant, isObjectConstant, isRegister, isStackLocation, isStringConstant, isTIBConstant, isTrueGuard, isType, meet |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final RVMType value
null
type for this TIB
Constructor Detail |
---|
public TIBConstantOperand(RVMType v)
v
- the type of this TIBMethod Detail |
---|
public Operand copy()
Operand
this
.
copy
in class Operand
this
public TypeReference getType()
Operand
TypeReference
of the value represented by the operand.
getType
in class Operand
TypeReference.TIB
public boolean isRef()
Operand
isRef
in class Operand
true
public boolean similar(Operand op)
Operand
similar
in class Operand
op
- other operand
true
if this
and op
are semantically equivalent or false
if they are not.public String toString()
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |