public abstract class BootImageCompiler extends Object
Modifier and Type | Field and Description |
---|---|
protected static BootImageCompiler |
baseCompiler |
protected static BootImageCompiler |
compiler |
protected static BootImageCompiler |
optCompiler |
Constructor and Description |
---|
BootImageCompiler() |
Modifier and Type | Method and Description |
---|---|
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)
Compiles a method with bytecodes.
|
static void |
init(String[] args)
Initialize boot image compiler.
|
protected abstract void |
initCompiler(String[] args)
Initialize boot image compiler.
|
protected static final BootImageCompiler baseCompiler
protected static final BootImageCompiler optCompiler
protected static final BootImageCompiler compiler
public BootImageCompiler()
protected abstract void initCompiler(String[] args)
args
- command line arguments to the bootimage compilerprotected abstract CompiledMethod compileMethod(NormalMethod method, TypeReference[] params)
method
- the method to compileparams
- the specialized types of the method's parameters.
This will be null
if the types from the method's signature are used.public static void init(String[] args)
args
- command line arguments to the bootimage compilerpublic static CompiledMethod compile(NormalMethod method, TypeReference[] params)
public static CompiledMethod compile(NormalMethod method)
public static CompiledMethod compile(NativeMethod method)
method
- the method to compile