|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jikesrvm.osr.VariableElement
public class VariableElement
An instance of VariableElement represents a byte code variable (local or stack element). It is used to generate prologue to recover the runtime state. It refers to VM architecture.
Field Summary | |
---|---|
private boolean |
kind
the kind of this element : LOCAL or STACK |
private char |
num
the number of element, e.g., with kind we can know it is L0 or S1. |
private Object |
ref
for reference type value |
private byte |
tcode
type code, can only be INT, FLOAT, LONG, DOUBLE, RET_ADDR, WORD or REF |
private long |
value
The value of this element. |
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 | |
---|---|
VariableElement(boolean what_kind,
int which_num,
byte type,
int ibits)
Constructor for 32-bit value |
|
VariableElement(boolean what_kind,
int which_num,
byte type,
long lbits)
Constructor for 64-bit value |
|
VariableElement(boolean what_kind,
int which_num,
byte type,
Object ref)
Constructor for reference type |
|
VariableElement(boolean what_kind,
int which_num,
byte type,
Word word)
Constructor for word type |
Method Summary | |
---|---|
(package private) int |
getIntBits()
|
(package private) long |
getLongBits()
|
(package private) char |
getNumber()
|
(package private) Object |
getObject()
|
(package private) byte |
getTypeCode()
get type code |
(package private) Word |
getWord()
|
(package private) static boolean |
isIBitsType(int tcode)
|
(package private) static boolean |
isLBitsType(int tcode)
|
(package private) boolean |
isLocal()
local or stack element |
(package private) boolean |
isRefType()
is reference type |
(package private) static boolean |
isRefType(int tcode)
|
(package private) boolean |
isWordType()
is word type |
(package private) static boolean |
isWordType(int tcode)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final boolean kind
private final char num
private final byte tcode
private final long value
private final Object ref
Constructor Detail |
---|
public VariableElement(boolean what_kind, int which_num, byte type, int ibits)
public VariableElement(boolean what_kind, int which_num, byte type, long lbits)
public VariableElement(boolean what_kind, int which_num, byte type, Object ref)
public VariableElement(boolean what_kind, int which_num, byte type, Word word)
Method Detail |
---|
static boolean isIBitsType(int tcode)
static boolean isLBitsType(int tcode)
static boolean isRefType(int tcode)
static boolean isWordType(int tcode)
boolean isLocal()
byte getTypeCode()
char getNumber()
boolean isRefType()
Object getObject()
boolean isWordType()
Word getWord()
int getIntBits()
long getLongBits()
public String toString()
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |