Package org.jruby.ir.listeners
Interface InstructionsListener
- All Known Implementing Classes:
IGVInstrListener
public interface InstructionsListener
-
Nested Class Summary
Nested Classes -
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 place
-
Method Details
-
instrChanged
void instrChanged(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 place- 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
-