public class LocalRegPair extends Object
Modifier and Type | Field and Description |
---|---|
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).
|
Constructor and Description |
---|
LocalRegPair(boolean kind,
int num,
byte type,
Operand op) |
Modifier and Type | Method and Description |
---|---|
LocalRegPair |
copy() |
String |
toString()
converts tuple to string as
( L/S num, type, valueType, value, operand )
|
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
public LocalRegPair(boolean kind, int num, byte type, Operand op)