|
|||||||||||
| 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.ObjectConstantOperand
public class ObjectConstantOperand
Represents a constant object operand (for example, from an initialized static final).
Operand| Field Summary | |
|---|---|
private boolean |
movable
Can this object be moved in memory? |
Offset |
offset
Offset in JTOC where this object constant lives. |
Object |
value
The non-null object value |
| Fields inherited from class org.jikesrvm.compilers.opt.ir.operand.Operand |
|---|
instruction |
| Constructor Summary | |
|---|---|
ObjectConstantOperand(Object v,
Offset i)
Construct a new object 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 |
isMovableObjectConstant()
Is the operand a movable ObjectConstantOperand? |
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, 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 Object value
public final Offset offset
private final boolean movable
| Constructor Detail |
|---|
public ObjectConstantOperand(Object v,
Offset i)
v - the object constanti - JTOC offset of the object constant| Method Detail |
|---|
public Operand copy()
this.
copy in class Operandthispublic TypeReference getType()
TypeReference of the value represented by the operand.
getType in class Operandpublic final boolean isRef()
isRef in class Operandtruepublic boolean isMovableObjectConstant()
ObjectConstantOperand?
isMovableObjectConstant in class Operandpublic 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 String toString()
toString in class Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||