|
|||||||||||
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.HeapOperand<T>
public final class HeapOperand<T>
Represents a heap variable for instructions in Heap Array SSA form.
Operand
,
HeapVariable
Field Summary | |
---|---|
HeapVariable<T> |
value
The heap variable corresponding to this operand. |
Fields inherited from class org.jikesrvm.compilers.opt.ir.operand.Operand |
---|
instruction |
Constructor Summary | |
---|---|
HeapOperand(HeapVariable<T> heap)
Construct an operand corresponding to a heap variable. |
Method Summary | |
---|---|
HeapOperand<T> |
copy()
Construct a new heap operand associated with the same heap variable as this operand |
T |
getHeapType()
Return the type corresponding to the heap variable associated with this operand. |
HeapVariable<T> |
getHeapVariable()
Return the heap variable corresponding to this operand. |
Instruction |
getInstruction()
Return the instruction associated with this operand. |
int |
getNumber()
Return the number of the heap variable corresponding to this operand. |
void |
setInstruction(Instruction s)
Associate this operand with a given instruction. |
boolean |
similar(Operand op)
Does this operand correspond to the same heap variable as another heap operand? |
String |
toString()
Return a 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, getType, isAddress, isAddressConstant, isBlock, isBranch, isClassConstant, isConstant, isDefinitelyNull, isDouble, isDoubleConstant, isFloat, isFloatConstant, isInt, isIntConstant, isIntLike, isLocation, isLong, 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 final HeapVariable<T> value
Constructor Detail |
---|
public HeapOperand(HeapVariable<T> heap)
heap
- the heap variable corresponding to this operand.Method Detail |
---|
public HeapVariable<T> getHeapVariable()
public int getNumber()
public T getHeapType()
public HeapOperand<T> copy()
copy
in class Operand
public boolean similar(Operand op)
similar
in class Operand
op
- the second operand to compare with
true
or false
public String toString()
toString
in class Object
public void setInstruction(Instruction s)
s
- the associated instructionpublic Instruction getInstruction()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |