public final class StackBrowser extends Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
StackBrowser() |
Modifier and Type | Method and Description |
---|---|
int |
getBytecodeIndex() |
ClassLoader |
getClassLoader() |
CompiledMethod |
getCompiledMethod() |
RVMClass |
getCurrentClass() |
int |
getInlineEncodingIndex()
Get the inline encoding associated with the current stack location.
|
RVMMethod |
getMethod() |
boolean |
hasMoreFrames() |
void |
init()
Initialise state of browser
|
void |
setBytecodeIndex(int bytecodeIndex) |
void |
setCompiledMethod(CompiledMethod cm) |
void |
setInlineEncodingIndex(int index)
Set the inline encoding.
|
void |
setMethod(RVMMethod method) |
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
|
private RVMMethod currentMethod
private int currentBytecodeIndex
private Address currentFramePointer
private Offset currentInstructionPointer
private CompiledMethod currentCompiledMethod
private int currentInlineEncodingIndex
public StackBrowser()
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 setCompiledMethod(CompiledMethod cm)
public void setInlineEncodingIndex(int index)
index
- the inline encoding indexpublic int getBytecodeIndex()
public CompiledMethod getCompiledMethod()
public RVMClass getCurrentClass()
public ClassLoader getClassLoader()
public int getInlineEncodingIndex()