|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.dms.backend.Optimizer
public class Optimizer
This class is the entry point for the peephole byte code optimizer
Constructor Summary | |
---|---|
Optimizer(CodeInfo codeInfo)
Constructs a new optimizer object. |
Method Summary | |
---|---|
CodeInfo |
getCodeInfo()
Returns a new, optimized code info structure. |
InstructionHandle |
getCodeStart()
|
static CodeInfo |
optimize(CodeInfo code)
Optimizes the byte code for a single method. |
static CodeInfo |
optimize(MethodInfo info,
CodeInfo code,
BackendOptions options)
Optimizes the byte code for a single method. |
void |
setCodeStart(InstructionHandle handle)
|
void |
transformAccessors(AccessorTransformer transformer)
Transforms targets (deferences to actual instructions). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Optimizer(CodeInfo codeInfo)
Method Detail |
---|
public static CodeInfo optimize(MethodInfo info, CodeInfo code, BackendOptions options)
public static CodeInfo optimize(CodeInfo code)
public CodeInfo getCodeInfo()
public void transformAccessors(AccessorTransformer transformer) throws BadAccessorException
transformAccessors
in interface AccessorContainer
transformer
- the transformer used to transform accessors
BadAccessorException
public void setCodeStart(InstructionHandle handle)
public InstructionHandle getCodeStart()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |