|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectproguard.classfile.util.SimplifiedVisitor
proguard.optimize.peephole.PeepholeOptimizer
public class PeepholeOptimizer
This AttributeVisitor sets up and applies the peephole optimizations of its instruction visitor. The instruction visitor should be using the same (optional) branch target finder and code attribute editor.
| Constructor Summary | |
|---|---|
PeepholeOptimizer(BranchTargetFinder branchTargetFinder,
CodeAttributeEditor codeAttributeEditor,
InstructionVisitor instructionVisitor)
Creates a new PeepholeOptimizer. |
|
PeepholeOptimizer(CodeAttributeEditor codeAttributeEditor,
InstructionVisitor instructionVisitor)
Creates a new PeepholeOptimizer. |
|
| Method Summary | |
|---|---|
void |
visitAnyAttribute(Clazz clazz,
Attribute attribute)
Visit any type of attribute. |
void |
visitCodeAttribute(Clazz clazz,
Method method,
CodeAttribute codeAttribute)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PeepholeOptimizer(CodeAttributeEditor codeAttributeEditor,
InstructionVisitor instructionVisitor)
codeAttributeEditor - the code attribute editor that will be reset
and then executed.instructionVisitor - the instruction visitor that performs
peephole optimizations using the above code
attribute editor.
public PeepholeOptimizer(BranchTargetFinder branchTargetFinder,
CodeAttributeEditor codeAttributeEditor,
InstructionVisitor instructionVisitor)
branchTargetFinder - branch target finder that will be initialized
to indicate branch targets in the visited code.codeAttributeEditor - the code attribute editor that will be reset
and then executed.instructionVisitor - the instruction visitor that performs
peephole optimizations using the above code
attribute editor.| Method Detail |
|---|
public void visitAnyAttribute(Clazz clazz,
Attribute attribute)
SimplifiedVisitor
visitAnyAttribute in class SimplifiedVisitor
public void visitCodeAttribute(Clazz clazz,
Method method,
CodeAttribute codeAttribute)
visitCodeAttribute in interface AttributeVisitorvisitCodeAttribute in class SimplifiedVisitor
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||