org.jikesrvm.compilers.common
Class BootImageCompiler

java.lang.Object
  extended by org.jikesrvm.compilers.common.BootImageCompiler
Direct Known Subclasses:
BaselineBootImageCompiler, OptimizingBootImageCompiler

public abstract class BootImageCompiler
extends Object

Abstract superclass to interface bootimage compiler to the rest of the VM. Individual compilers provide concrete implementations, one of which is instantiated by BootImageCompiler.init.


Field Summary
protected static BootImageCompiler baseCompiler
           
protected static BootImageCompiler compiler
           
protected static BootImageCompiler optCompiler
           
 
Constructor Summary
BootImageCompiler()
           
 
Method Summary
static CompiledMethod compile(NativeMethod method)
          Compile a native method.
static CompiledMethod compile(NormalMethod method)
           
static CompiledMethod compile(NormalMethod method, TypeReference[] params)
           
protected abstract  CompiledMethod compileMethod(NormalMethod method, TypeReference[] params)
          Compile a method with bytecodes.
static void init(String[] args)
          Initialize boot image compiler.
protected abstract  void initCompiler(String[] args)
          Initialize boot image compiler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

baseCompiler

protected static BootImageCompiler baseCompiler

optCompiler

protected static BootImageCompiler optCompiler

compiler

protected static BootImageCompiler compiler
Constructor Detail

BootImageCompiler

public BootImageCompiler()
Method Detail

initCompiler

protected abstract void initCompiler(String[] args)
Initialize boot image compiler.

Parameters:
args - command line arguments to the bootimage compiler

compileMethod

protected abstract CompiledMethod compileMethod(NormalMethod method,
                                                TypeReference[] params)
Compile a method with bytecodes.

Parameters:
method - the method to compile
Returns:
the compiled method

init

public static void init(String[] args)
Initialize boot image compiler.

Parameters:
args - command line arguments to the bootimage compiler

compile

public static CompiledMethod compile(NormalMethod method,
                                     TypeReference[] params)

compile

public static CompiledMethod compile(NormalMethod method)

compile

public static CompiledMethod compile(NativeMethod method)
Compile a native method.

Parameters:
method - the method to compile
Returns:
the compiled method