|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jikesrvm.osr.OSRMapIterator
public class OSRMapIterator
An iterator over an encoded OSR map. It is a bit odd to used now.
while (it.hasMore()) { it.getKind(); it.getNumber(); it.getMethodId(); it.getBcIndex(); .... it.moveToNext(); }
Field Summary | |
---|---|
private int |
curidx
|
private int |
curmid
|
private int |
curmpc
|
private int[] |
maps
|
private boolean |
moreElemnt
|
private boolean |
moreMethId
|
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 | |
---|---|
OSRMapIterator(int[] mapcode,
int index)
|
Method Summary | |
---|---|
int |
getBcIndex()
current pc |
boolean |
getKind()
what kind. |
int |
getMethodId()
current mid |
char |
getNumber()
number |
byte |
getTypeCode()
type code. |
int |
getValue()
value |
byte |
getValueType()
value type |
boolean |
hasMore()
|
private boolean |
hasMoreElements()
has next element of this method id to iterate? |
private boolean |
hasMoreMethodId()
has next method id to iterate? |
void |
moveToNext()
Moves the index to the next element, update more first because we use last element's bit to indicate whether this element is available. |
private void |
moveToNextMethodId()
after finishing iteration of one method, move to the next, it if is empty, move further. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int curidx
private final int[] maps
private int curmid
private int curmpc
private boolean moreMethId
private boolean moreElemnt
Constructor Detail |
---|
public OSRMapIterator(int[] mapcode, int index)
Method Detail |
---|
public boolean hasMore()
private void moveToNextMethodId()
private boolean hasMoreMethodId()
private boolean hasMoreElements()
public void moveToNext()
public boolean getKind()
public byte getTypeCode()
public char getNumber()
public byte getValueType()
public int getValue()
public int getMethodId()
public int getBcIndex()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |