|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.util.optimize.Patterns
This class is the entry point for the peephole byte code optimizer
| Field Summary |
| Constructor Summary | |
Patterns()
|
|
| Method Summary | |
private static int |
getReverseOpcode(int opcode)
|
static boolean |
optimize(InstructionHandle handle)
Optimizes the byte code for a single method. |
private static boolean |
optimize5(InstructionHandle handle,
int opcode)
Optimize a block of 5 instructions Return true if an optimization is made This method should not modify other instructions |
private static boolean |
optimizeFieldRefInstruction(InstructionHandle handle,
int opcode)
Optimizes the byte code for a single method. |
static boolean |
optimizeJump(InstructionHandle handle,
int opcode)
Optimizes the byte code for a single method. |
private static boolean |
optimizeLocalVarInstruction(InstructionHandle handle,
int opcode)
Optimizes the byte code for a single method. |
static boolean |
optimizeNoArgInstruction(InstructionHandle handle,
int opcode)
Optimizes the byte code for a single method. |
static boolean |
optimizePushLiteralInstruction(InstructionHandle handle,
int opcode)
Optimizes the byte code for a single method. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Patterns()
| Method Detail |
public static boolean optimize(InstructionHandle handle)
public static boolean optimizeJump(InstructionHandle handle,
int opcode)
public static boolean optimizeNoArgInstruction(InstructionHandle handle,
int opcode)
public static boolean optimizePushLiteralInstruction(InstructionHandle handle,
int opcode)
private static int getReverseOpcode(int opcode)
private static boolean optimize5(InstructionHandle handle,
int opcode)
private static boolean optimizeLocalVarInstruction(InstructionHandle handle,
int opcode)
private static boolean optimizeFieldRefInstruction(InstructionHandle handle,
int opcode)
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||