|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.jikesrvm.compilers.opt.OptimizingCompilerException
public class OptimizingCompilerException
Use this exception if we encounter a runtime error in the dynamic optimizing compiler. The caller can recover by calling the non-optimizing compiler instead (or by reverting to the previous version of compiled code).
| Nested Class Summary | |
|---|---|
static class |
OptimizingCompilerException.IllegalUpcast
Capture illegal upcasts from magic types to java.lang.Object |
| Field Summary | |
|---|---|
boolean |
isFatal
When running in the RVM, typically optimizing compiler exceptions are caught, optionally a message is printed, and we fallback to using the baseline compiler. |
(package private) static long |
serialVersionUID
Support for exception serialization |
| Constructor Summary | |
|---|---|
OptimizingCompilerException()
|
|
OptimizingCompilerException(boolean b)
|
|
OptimizingCompilerException(String err)
|
|
OptimizingCompilerException(String err,
boolean b)
|
|
OptimizingCompilerException(String module,
String err)
|
|
OptimizingCompilerException(String module,
String err1,
int val)
|
|
OptimizingCompilerException(String module,
String err1,
Object obj)
|
|
OptimizingCompilerException(String module,
String err1,
String err2)
|
|
OptimizingCompilerException(String module,
String err1,
String err2,
int val)
|
|
OptimizingCompilerException(String module,
String err1,
String err2,
Object obj)
|
|
OptimizingCompilerException(String module,
String err1,
String err2,
String err3)
|
|
| Method Summary | |
|---|---|
static void |
TODO()
Incomplete function in IA32 port. |
static void |
TODO(String module)
Incomplete function in IA32 port. |
String |
trace(int level)
Return a string that is the printout of level stackframes in the stacktrace. |
static void |
UNREACHABLE()
Use the UNREACHABLE methods to mark code that should never execute eg, unexpected cases of switch statments and nested if/then/else |
static void |
UNREACHABLE(String module)
Use the UNREACHABLE methods to mark code that should never execute eg, unexpected cases of switch statments and nested if/then/else |
static void |
UNREACHABLE(String module,
String err1)
Use the UNREACHABLE methods to mark code that should never execute eg, unexpected cases of switch statments and nested if/then/else |
static void |
UNREACHABLE(String module,
String err1,
String err2)
Use the UNREACHABLE methods to mark code that should never execute eg, unexpected cases of switch statments and nested if/then/else |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
static final long serialVersionUID
public boolean isFatal
| Constructor Detail |
|---|
public OptimizingCompilerException()
public OptimizingCompilerException(boolean b)
b - is the exception fatal?public OptimizingCompilerException(String err)
err - message describing reason for exception
public OptimizingCompilerException(String err,
boolean b)
err - message descrining reason for exceptionb - is the exception fatal?
public OptimizingCompilerException(String module,
String err)
module - opt compiler module in which exception was raisederr - message describing reason for exception
public OptimizingCompilerException(String module,
String err1,
String err2)
module - opt compiler module in which exception was raisederr1 - message describing reason for exceptionerr2 - message describing reason for exception
public OptimizingCompilerException(String module,
String err1,
Object obj)
module - opt compiler module in which exception was raisederr1 - message describing reason for exceptionobj - object to print describing reason for exception
public OptimizingCompilerException(String module,
String err1,
int val)
module - opt compiler module in which exception was raisederr1 - message describing reason for exceptionval - integer to print describing reason for exception
public OptimizingCompilerException(String module,
String err1,
String err2,
String err3)
module - opt compiler module in which exception was raisederr1 - message describing reason for exceptionerr2 - message describing reason for exceptionerr3 - message describing reason for exception
public OptimizingCompilerException(String module,
String err1,
String err2,
Object obj)
module - opt compiler module in which exception was raisederr1 - message describing reason for exceptionerr2 - message describing reason for exceptionobj - object to print describing reason for exception
OptimizingCompilerException(String module,
String err1,
String err2,
int val)
module - opt compiler module in which exception was raisederr1 - message describing reason for exceptionerr2 - message describing reason for exceptionval - integer to print describing reason for exception| Method Detail |
|---|
public static void UNREACHABLE()
throws OptimizingCompilerException
OptimizingCompilerException
public static void UNREACHABLE(String module)
throws OptimizingCompilerException
module - module in which exception occured
OptimizingCompilerException
public static void UNREACHABLE(String module,
String err1)
throws OptimizingCompilerException
module - opt compiler module in which exception was raisederr1 - message describing reason for exception
OptimizingCompilerException
public static void UNREACHABLE(String module,
String err1,
String err2)
throws OptimizingCompilerException
module - opt compiler module in which exception was raisederr1 - message describing reason for exceptionerr2 - message describing reason for exception
OptimizingCompilerException
public static void TODO()
throws OptimizingCompilerException
OptimizingCompilerException
public static void TODO(String module)
throws OptimizingCompilerException
module - opt compiler module in which exception was raised
OptimizingCompilerExceptionpublic String trace(int level)
level - the number of levels to print
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||