public class PeepholeOptimizerMethodBodyVisitor extends DelegatingMethodBodyVisitor
| Constructor and Description |
|---|
PeepholeOptimizerMethodBodyVisitor(IMethodBodyVisitor delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
labelCurrent(Label l)
Bind a Label object (not to be confused with the AVM OP_label
instruction) to the last-visited ABC instruction in this method.
|
void |
labelNext(Label l)
Bind a Label object (not to be confused with the AVM OP_label
instruction) to the next ABC instruction that gets visited in this method
|
void |
visitEnd()
Indicates that no further method calls will be made on this visitor
instance.
|
void |
visitInstruction(Instruction instruction)
Vist an instruction
|
void |
visitInstruction(int opcode)
Visit an instruction with no operands.
|
void |
visitInstruction(int opcode,
int immediate_operand)
Visit an instruction with an immediate operand.
|
void |
visitInstruction(int opcode,
Object single_operand)
Visit an instruction with a single operand (convenience method).
|
void |
visitInstruction(int opcode,
Object[] operands)
Visit an instruction.
|
void |
visitInstructionList(InstructionList new_list)
Resets the entire method body at once.
|
visit, visitException, visitTraitspublic PeepholeOptimizerMethodBodyVisitor(IMethodBodyVisitor delegate)
public void visitInstructionList(InstructionList new_list)
visitInstructionList in interface IMethodBodyVisitorvisitInstructionList in class DelegatingMethodBodyVisitornew_list - The new Instructions for the method.public void visitInstruction(int opcode)
IMethodBodyVisitorvisitInstruction in interface IMethodBodyVisitorvisitInstruction in class DelegatingMethodBodyVisitoropcode - - the instruction's opcode.public void visitInstruction(int opcode,
int immediate_operand)
IMethodBodyVisitorvisitInstruction in interface IMethodBodyVisitorvisitInstruction in class DelegatingMethodBodyVisitoropcode - - the instruction's opcode.immediate_operand - - the operand.public void visitInstruction(int opcode,
Object[] operands)
IMethodBodyVisitorvisitInstruction in interface IMethodBodyVisitorvisitInstruction in class DelegatingMethodBodyVisitoropcode - - the instruction's opcode.operands - - the instruction's operands.public void visitInstruction(int opcode,
Object single_operand)
IMethodBodyVisitorvisitInstruction in interface IMethodBodyVisitorvisitInstruction in class DelegatingMethodBodyVisitoropcode - - the instruction's opcode.single_operand - - the instruction's operand.public void visitInstruction(Instruction instruction)
IMethodBodyVisitorvisitInstruction in interface IMethodBodyVisitorvisitInstruction in class DelegatingMethodBodyVisitorinstruction - the Instruction to visitpublic void visitEnd()
IVisitorvisitEnd in interface IVisitorvisitEnd in class DelegatingMethodBodyVisitorpublic void labelCurrent(Label l)
labelCurrent in interface IMethodBodyVisitorlabelCurrent in class DelegatingMethodBodyVisitorpublic void labelNext(Label l)
labelNext in interface IMethodBodyVisitorlabelNext in class DelegatingMethodBodyVisitorCopyright © 2016 The Apache Software Foundation. All rights reserved.