|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jikesrvm.runtime.StackBrowser
public final class StackBrowser
Use this class to explore the stack. It is sometimes necessary to find out the current context class loader, and other things like that.
Field Summary | |
---|---|
private int |
currentBytecodeIndex
Bytecode associated with current stack location |
private CompiledMethod |
currentCompiledMethod
The current compiled method |
private Address |
currentFramePointer
The frame pointer for the current stack location |
private int |
currentInlineEncodingIndex
The current inline encoding index for opt compiled methods |
private Offset |
currentInstructionPointer
The offset of the current instruction within its method |
private RVMMethod |
currentMethod
Method associated with current stack location |
Constructor Summary | |
---|---|
StackBrowser()
|
Method Summary | |
---|---|
int |
getBytecodeIndex()
The bytecode index associated with the current stack frame |
ClassLoader |
getClassLoader()
The class loader of the method associated with the current stack frame |
CompiledMethod |
getCompiledMethod()
The compiled method associated with the current stack frame |
RVMClass |
getCurrentClass()
The class of the method associated with the current stack frame |
int |
getInlineEncodingIndex()
Get the inline encoding associated with the current stack location, called only by opt compiled methods |
RVMMethod |
getMethod()
The method associated with the current stack frame |
boolean |
hasMoreFrames()
Are there more stack frames? |
void |
init()
Initialise state of browser |
void |
setBytecodeIndex(int bytecodeIndex)
Set the current bytecode index, called only by the appropriate compiled method code |
void |
setCompiledMethod(CompiledMethod cm)
Set the current compiled method, called only by the appropriate compiled method code |
void |
setInlineEncodingIndex(int index)
Set the inline encoding for opt compiled methods only |
void |
setMethod(RVMMethod method)
Set the current method, called only by the appropriate compiled method code |
void |
up()
Browse up one frame eliding native frames |
private void |
upOneFrame()
Browse up one frame failing if we fall off the stack |
private boolean |
upOneFrameInternal(boolean set)
Browse up one frame |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private RVMMethod currentMethod
private int currentBytecodeIndex
private Address currentFramePointer
private Offset currentInstructionPointer
private CompiledMethod currentCompiledMethod
private int currentInlineEncodingIndex
Constructor Detail |
---|
public StackBrowser()
Method Detail |
---|
public void init()
private boolean upOneFrameInternal(boolean set)
set
- should the state of the stack browser be effected?
private void upOneFrame()
public boolean hasMoreFrames()
public void up()
public void setBytecodeIndex(int bytecodeIndex)
public void setMethod(RVMMethod method)
public void setCompiledMethod(CompiledMethod cm)
public void setInlineEncodingIndex(int index)
public int getBytecodeIndex()
public RVMMethod getMethod()
public CompiledMethod getCompiledMethod()
public RVMClass getCurrentClass()
public ClassLoader getClassLoader()
public int getInlineEncodingIndex()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |