|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jikesrvm.compilers.common.CompiledMethod org.jikesrvm.compilers.common.HardwareTrapCompiledMethod
final class HardwareTrapCompiledMethod
Information associated with artificial stackframe inserted by hardware trap handler.
Field Summary |
---|
Fields inherited from class org.jikesrvm.compilers.common.CompiledMethod |
---|
BASELINE, cmid, compilationTime, instructions, JNI, method, NUM_COMPILER_TYPES, OPT, osrJTOCoffset, TRAP |
Constructor Summary | |
---|---|
HardwareTrapCompiledMethod(int id,
RVMMethod m)
|
Method Summary | |
---|---|
int |
findCatchBlockForInstruction(Offset instructionOffset,
RVMType exceptionType)
Find "catch" block for a machine instruction of this method that might be guarded against specified class of exceptions by a "try" block. |
String |
getCompilerName()
|
int |
getCompilerType()
Identify the compiler that produced this compiled method. |
void |
getDynamicLink(DynamicLink dynamicLink,
Offset instructionOffset)
Fetch symbolic reference to a method that's called by one of this method's instructions. |
ExceptionDeliverer |
getExceptionDeliverer()
Get handler to deal with stack unwinding and exception delivery for this compiled method's stackframes. |
boolean |
isWithinUninterruptibleCode(Offset instructionOffset)
Return whether or not the given address (which is purported to be inside of the compiled method's code array) corresponds to an uninterruptible context. |
void |
printStackTrace(Offset instructionOffset,
PrintLN out)
Print this compiled method's portion of a stack trace |
void |
set(StackBrowser browser,
Offset instr)
Set the stack browser to the innermost logical stack frame of this method |
boolean |
up(StackBrowser browser)
Advance the StackBrowser up one internal stack frame, if possible |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HardwareTrapCompiledMethod(int id, RVMMethod m)
Method Detail |
---|
public int getCompilerType()
CompiledMethod
getCompilerType
in class CompiledMethod
public String getCompilerName()
getCompilerName
in class CompiledMethod
public ExceptionDeliverer getExceptionDeliverer()
CompiledMethod
getExceptionDeliverer
in class CompiledMethod
public int findCatchBlockForInstruction(Offset instructionOffset, RVMType exceptionType)
CompiledMethod
Notes:
null
pointer dereference, array bounds check,
or divide by zero) on a machine architecture with variable length
instructions.
In such situations we'd have no idea how far to back up the
instruction pointer
to point to the "call site" or "exception site".
findCatchBlockForInstruction
in class CompiledMethod
instructionOffset
- offset of machine instruction from start of this method, in bytesexceptionType
- type of exception being thrown - something like "NullPointerException"
public void getDynamicLink(DynamicLink dynamicLink, Offset instructionOffset)
CompiledMethod
Notes:
getDynamicLink
in class CompiledMethod
dynamicLink
- place to put return informationinstructionOffset
- offset of machine instruction from start of
this method, in bytespublic boolean isWithinUninterruptibleCode(Offset instructionOffset)
CompiledMethod
isWithinUninterruptibleCode
in class CompiledMethod
instructionOffset
- of addr from start of instructions in bytes
true
if the IP is within an Uninterruptible method, false
otherwise.public void printStackTrace(Offset instructionOffset, PrintLN out)
CompiledMethod
printStackTrace
in class CompiledMethod
instructionOffset
- offset of machine instruction from start of methodout
- the PrintLN to print the stack trace to.public void set(StackBrowser browser, Offset instr)
CompiledMethod
set
in class CompiledMethod
public boolean up(StackBrowser browser)
CompiledMethod
up
in class CompiledMethod
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |