|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.util.backend.Optimizer
This class is the entry point for the peephole byte code optimizer
| Field Summary | |
private InstructionHandle |
codeStart
|
private HandlerInfo[] |
handlers
|
private LocalVariableInfo[] |
localVariables
|
| Constructor Summary | |
Optimizer(CodeInfo codeInfo)
Constructs a new optimizer object. |
|
| Method Summary | |
private void |
buildBasicBlocks(InstructionHandle start)
|
private Instruction[] |
buildInstructionArray()
Build the array of the instructions resulting from the optimization process. |
private LineNumberInfo[] |
buildLineNumberInfo()
Build the array of line number information for the optimized instruction sequence. |
private void |
cleanCode(InstructionHandle start)
|
private void |
dumpCode(Instruction[] insns)
|
CodeInfo |
getCodeInfo()
Returns a new, optimized code info structure. |
InstructionHandle |
getCodeStart()
|
private InstructionHandle |
installInstructionHandles(CodeInfo info)
Install handles around instructions. |
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 |
| Field Detail |
private InstructionHandle codeStart
private HandlerInfo[] handlers
private LocalVariableInfo[] localVariables
| Constructor Detail |
public Optimizer(CodeInfo codeInfo)
| Method Detail |
public static CodeInfo optimize(MethodInfo info,
CodeInfo code,
BackendOptions options)
public CodeInfo getCodeInfo()
private void buildBasicBlocks(InstructionHandle start)
private void cleanCode(InstructionHandle start)
private InstructionHandle installInstructionHandles(CodeInfo info)
private void dumpCode(Instruction[] insns)
private Instruction[] buildInstructionArray()
private LineNumberInfo[] buildLineNumberInfo()
public void transformAccessors(AccessorTransformer transformer)
throws BadAccessorException
transformAccessors in interface AccessorContainertransformer - the transformer used to transform accessors
BadAccessorExceptionpublic void setCodeStart(InstructionHandle handle)
public InstructionHandle getCodeStart()
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||