Package org.jruby.ir.util
Class IGVInstrListener
java.lang.Object
org.jruby.ir.util.IGVInstrListener
- All Implemented Interfaces:
InstructionsListener
Created by enebo on 1/28/17.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jruby.ir.listeners.InstructionsListener
InstructionsListener.OperationType -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinstrChanged(BasicBlock basicBlock, Instr oldInstr, Instr newInstr, int index, InstructionsListener.OperationType op) listen to a change of a list of instructions, right before the change going to take placeremovedList(BasicBlock basicBlock) voidreset()
-
Field Details
-
removedInstrs
-
removedEdges
-
-
Constructor Details
-
IGVInstrListener
public IGVInstrListener()
-
-
Method Details
-
getRemovedEdges
-
removedList
-
instrChanged
public void instrChanged(BasicBlock basicBlock, Instr oldInstr, Instr newInstr, int index, InstructionsListener.OperationType op) Description copied from interface:InstructionsListenerlisten to a change of a list of instructions, right before the change going to take place- Specified by:
instrChangedin interfaceInstructionsListener- Parameters:
basicBlock- List of instructions before the change happensoldInstr- If possible, specify which instruction is the old one at indexnewInstr- If possible, this the new element inserted at indexindex- where the manipulation takes placeop- the operation type can be an ADD, REMOVE or UPDATE
-
reset
public void reset()
-