|
|||||||||||
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.LongConstantOperand
public final class LongConstantOperand
Represents a constant long operand.
Operand
Field Summary | |
---|---|
Offset |
offset
Offset in JTOC where this long constant lives. (0 for constants obtained from constant folding) TODO is this field still necessary? |
long |
value
Value of this operand. |
static LongConstantOperand |
zero
Constant 0, can be copied as convenient |
Fields inherited from class org.jikesrvm.compilers.opt.ir.operand.Operand |
---|
instruction |
Constructor Summary | |
---|---|
LongConstantOperand(long v)
Constructs a new long constant operand with the specified value. |
|
LongConstantOperand(long v,
Offset i)
Constructs a new long constant operand with the specified value and JTOC offset. |
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 |
isLong()
Does the operand represent a value of the long data type? |
int |
lower32()
Return the lower 32 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 |
upper32()
Return the upper 32 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, isInt, isIntConstant, isIntLike, isLocation, isLongConstant, isMemory, isMethod, isMovableObjectConstant, isNullConstant, isObjectConstant, isRef, 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 static final LongConstantOperand zero
public long value
public Offset offset
Constructor Detail |
---|
public LongConstantOperand(long v)
v
- valuepublic LongConstantOperand(long v, Offset i)
v
- valuei
- offset in the JTOCMethod Detail |
---|
public TypeReference getType()
Operand
TypeReference
of the value represented by the operand.
getType
in class Operand
TypeReference.Long
public boolean isLong()
Operand
isLong
in class Operand
true
public int lower32()
public int upper32()
public Operand copy()
Operand
this
.
copy
in class Operand
this
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 |