|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jikesrvm.osr.LocalRegPair
public class LocalRegPair
An LocalRegPair keeps the type information and location of a local variable/stack slot from byte code to machine code.
Field Summary | |
---|---|
LocalRegPair |
_otherHalf
A LONG variable takes two symbolic registers, we need to know another half part. |
boolean |
kind
is it a local or stack? |
int |
num
what's the number of local of stack |
Operand |
operand
What's the register operand, from which we can get the symbolic register. |
byte |
typeCode
what's the type code? |
Word |
value
The meaning of value field depends on valueType: for ICONST, ACONST and LCONST, it is the value of the constant, for PHYREG, it is the register number, for SPILL, it is the spill location. |
byte |
valueType
A reg value could be an integer constant (ICONST), a physical register (PHYREG), or a spill on the stack (SPILL). |
Fields inherited from interface org.jikesrvm.osr.OSRConstants |
---|
ACONST, BCI_MASK, BCI_SHIFT, CLEANREFS, DOUBLE, FLOAT, GETREFAT, HIGH_64BIT, ICONST, IEI_MASK, IEI_SHIFT, INT, INVALID_BCI, INVALID_IEI, KIND_MASK, KIND_SHIFT, LCONST, LOCAL, LONG, NEXT_BIT, NO_OSR_ENTRY, NUM_MASK, NUM_SHIFT, OFFSET_MASK, OFFSET_SHIFT, OSRI_MASK, OSRI_SHIFT, PHYREG, PSEUDO_CheckCast, PSEUDO_InvokeCompiledMethod, PSEUDO_InvokeStatic, PSEUDO_LoadDoubleConst, PSEUDO_LoadFloatConst, PSEUDO_LoadIntConst, PSEUDO_LoadLongConst, PSEUDO_LoadRetAddrConst, PSEUDO_LoadWordConst, PSEUDO_ParamInitEnd, REF, RET_ADDR, ReturnAddressTypeCode, SPILL, STACK, TCODE_MASK, TCODE_SHIFT, VTYPE_MASK, VTYPE_SHIFT, WORD, WordTypeCode |
Constructor Summary | |
---|---|
LocalRegPair(boolean kind,
int num,
byte type,
Operand op)
|
Method Summary | |
---|---|
LocalRegPair |
copy()
|
String |
toString()
converts tuple to string as ( L/S num, type, valueType, value, operand ) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final boolean kind
public int num
public final byte typeCode
public final Operand operand
public byte valueType
The valueType is one of them, combined with the typeCode, one should be able to recover the value of a variable.
public Word value
public LocalRegPair _otherHalf
Constructor Detail |
---|
public LocalRegPair(boolean kind, int num, byte type, Operand op)
Method Detail |
---|
public LocalRegPair copy()
public String toString()
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |