InstructionHandle, Instruction, InstructionList
| Modifier and Type | Field and Description |
|---|---|
| private InstructionBranch |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static final BranchHandle | |
| public int | |
| public InstructionHandle | |
| public void | setInstruction(Instruction i)
Overrides org. |
| pack-priv void | setPosition(int pos)
Overrides org. |
| public void | |
| protected int | Returns: additional offset caused by possible change of this instruction's lengthadditional offset caused by preceding (variable length) instructions offset, int the maximum offset that may be caused by these instructions max_offset)Called by InstructionList.setPositions when setting the position for every instruction. |
| public void |
| bi | back to summary |
|---|---|
| private InstructionBranch bi | |
| BranchHandle | back to summary |
|---|---|
| private BranchHandle(InstructionBranch i) | |
| getBranchHandle | back to summary |
|---|---|
| pack-priv static final BranchHandle getBranchHandle(InstructionBranch i) | |
| getPosition | back to summary |
|---|---|
| public int getPosition() Overrides org.
| |
| getTarget | back to summary |
|---|---|
public InstructionHandle getTarget()
| |
| setInstruction | back to summary |
|---|---|
| public void setInstruction(Instruction i) Overrides org. Set new contents. Old instruction is disposed and may not be used anymore. | |
| setPosition | back to summary |
|---|---|
| pack-priv void setPosition(int pos) Overrides org. Doc from org. Set the position, i.e., the byte code offset of the contained instruction. | |
| setTarget | back to summary |
|---|---|
| public void setTarget(InstructionHandle ih) Pass new target to instruction. | |
| updatePosition | back to summary |
|---|---|
| protected int updatePosition(int offset, int max_offset) Called by InstructionList.setPositions when setting the position for every instruction. In the presence of variable length instructions 'setPositions()' performs multiple passes over the instruction list to calculate the correct (byte) positions and offsets by calling this function.
| |
| updateTarget | back to summary |
|---|---|
| public void updateTarget(InstructionHandle old_ih, InstructionHandle new_ih) Update target of instruction. | |