|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jikesrvm.tools.oth.OptTestHarness
class OptTestHarness
A test harness for the optimizing compiler.
The role of this class is to allow the optimizing compiler
to be run as an "application" to enabling selective testing and
debugging of the optimizing compiler.
For example, the following command line:
rvm -X:h=100 org.jikesrvm.tools.oth.OptTestHarness -oc:O2 -oc:phases=true
-class hanoi -er hanoi run -
invokes the opt compiler at Opt level 2 and phases=true to compile
the class hanoi, it then executes the run method of class hanoi.
Any command that can be given to the optimizing compiler via -X:irc:
Nested Class Summary
private static classOptTestHarness.Performance
Field Summary
(package private) static booleanBASELINE
Default value for for compiling opt/baseline
(package private) static Vector<RVMMethod>baselineMethodVector
(package private) static ClassLoadercl
(package private) static booleanDISABLE_CLASS_LOADING
(package private) static booleanEXECUTE_MAIN
(package private) static booleanEXECUTE_WITH_REFLECTION
(package private) static String[]mainArgs
(package private) static RVMClassmainClass
(package private) static OptOptionsoptions
(package private) static Vector<RVMMethod>optMethodVector
(package private) static Vector<OptOptions>optOptionsVector
(package private) static OptTestHarness.Performanceperf
Record and show performance of executed methods, if any
(package private) static booleanPRINT_CODE_ADDRESS
Should we print the address of compiled methods (useful for
debugging)
(package private) static Object[]reflectMethodArgs
(package private) static Vector<Object[]>reflectMethodArgsVector
(package private) static Vector<RVMMethod>reflectMethodVector
(package private) static Methodreflectoid
(package private) static Vector<Method>reflectoidVector
Constructor Summary
OptTestHarness()
Method Summary
private static voidcompileMethodsInVector()
private static voidexecuteCommand()
(package private) static RVMMethodfindDeclaredOrFirstMethod(RVMClass klass,
String methname,
String methdesc)
(package private) static RVMClassloadClass(String s)
static voidmain(String[] args)
(package private) static intparseMethodArgs(TypeReference[] argDesc,
String[] args,
int i,
Object[] methodArgs)
(package private) static voidprintFormatString()
private static voidprocessClass(RVMClass klass,
OptOptions opts)
private static voidprocessMethod(RVMMethod method,
OptOptions opts)
private static voidprocessMethod(RVMMethod method,
OptOptions opts,
boolean isBaseline)
private static voidprocessOptionString(String[] args)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Field Detail
DISABLE_CLASS_LOADING
static boolean DISABLE_CLASS_LOADING
EXECUTE_WITH_REFLECTION
static boolean EXECUTE_WITH_REFLECTION
EXECUTE_MAIN
static boolean EXECUTE_MAIN
BASELINE
static boolean BASELINE
PRINT_CODE_ADDRESS
static boolean PRINT_CODE_ADDRESS
perf
static OptTestHarness.Performance perf
cl
static ClassLoader cl
optMethodVector
static Vector<RVMMethod> optMethodVector
optOptionsVector
static Vector<OptOptions> optOptionsVector
baselineMethodVector
static Vector<RVMMethod> baselineMethodVector
reflectoid
static Method reflectoid
reflectMethodArgs
static Object[] reflectMethodArgs
reflectoidVector
static Vector<Method> reflectoidVector
reflectMethodVector
static Vector<RVMMethod> reflectMethodVector
reflectMethodArgsVector
static Vector<Object[]> reflectMethodArgsVector
mainClass
static RVMClass mainClass
mainArgs
static String[] mainArgs
options
static OptOptions options
Constructor Detail
OptTestHarness
OptTestHarness()
Method Detail
parseMethodArgs
static int parseMethodArgs(TypeReference[] argDesc,
String[] args,
int i,
Object[] methodArgs)
findDeclaredOrFirstMethod
static RVMMethod findDeclaredOrFirstMethod(RVMClass klass,
String methname,
String methdesc)
loadClass
static RVMClass loadClass(String s)
throws ClassNotFoundException
ClassNotFoundException
printFormatString
static void printFormatString()
processClass
private static void processClass(RVMClass klass,
OptOptions opts)
processMethod
private static void processMethod(RVMMethod method,
OptOptions opts)
processMethod
private static void processMethod(RVMMethod method,
OptOptions opts,
boolean isBaseline)
processOptionString
private static void processOptionString(String[] args)
compileMethodsInVector
private static void compileMethodsInVector()
executeCommand
private static void executeCommand()
throws InvocationTargetException,
IllegalAccessException
main
public static void main(String[] args)
throws InvocationTargetException,
IllegalAccessException
Overview
Package
Class
Use
Tree
Serialized
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD