|
|||||||||||
| 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.StackLocationOperand
public final class StackLocationOperand
Represents a symbolic name for a stack location. The stack location is defined by an offset from either the framepointer (top of stack frame) or stackpointer-home-location (bottom of frame).
| Field Summary | |
|---|---|
private boolean |
fromTop
Is the offset from the top or bottom of stack frame? |
private int |
offset
The offset (top/bottom of stack frame) corresponding to this stack location. |
private byte |
size
Size (in bytes) reserved for the value of this operand. |
| Fields inherited from class org.jikesrvm.compilers.opt.ir.operand.Operand |
|---|
instruction |
| Constructor Summary | |
|---|---|
StackLocationOperand(boolean fromTop,
int offset,
byte size)
|
|
StackLocationOperand(boolean fromTop,
int offset,
int size)
|
|
| Method Summary | |
|---|---|
Operand |
copy()
Return a new operand that is semantically equivalent to this. |
int |
getOffset()
|
byte |
getSize()
|
boolean |
isFromTop()
|
boolean |
similar(Operand op)
Are two operands semantically equivalent? |
String |
toString()
|
| 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 |
|---|
private boolean fromTop
private int offset
private byte size
| Constructor Detail |
|---|
public StackLocationOperand(boolean fromTop,
int offset,
byte size)
fromTop - is the offset from the top of bottom of the frame?offset - the offset of the stack location from the top/bottom
of the framesize - Size (in bytes) of the stack location.
public StackLocationOperand(boolean fromTop,
int offset,
int size)
fromTop - is the offset from the top of bottom of the frame?offset - the offset of the stack location from the top/bottom
of the framesize - Size (in bytes) of the stack location.| Method Detail |
|---|
public boolean isFromTop()
true if the stack location uses the top of the
frame as its base, false if it uses the bottom
of the frame as its base.public int getOffset()
public byte getSize()
public String toString()
toString in class Objectpublic boolean similar(Operand op)
Operand
similar in class Operandop - other operand
true if this and op
are semantically equivalent or false
if they are not.public Operand copy()
Operandthis.
copy in class Operandthis
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||