| Modifier and Type | Field and Description |
|---|---|
| private final BasicBlockList | blocks
|
| private IntList | exitPredecessors
|
| private final int | firstLabel
|
| private IntList[] | predecessors
|
| Access | Constructor and Description |
|---|---|
| public | RopMethod(BasicBlockList
non-null; basic block list of the method>= 0; the label of the first block to executeConstructs an instance. |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public BasicBlockList | |
| public IntList | Returns: non-null; the exit predecessorsGets the exit predecessors for this instance. |
| public int | Returns: >= 0; the first-block labelGets the label for the first block in the method that this list represents. |
| public IntList | Returns: non-null; the predecessors of that block>= 0; the label of the block in questionGets the predecessors associated with the given block. |
| public RopMethod | Returns: non-null; an appropriately-constructed instancethe amount to offset register numbers by delta)Returns an instance that is identical to this one, except that the registers in each instruction are offset by the given amount. |
| blocks | back to summary |
|---|---|
| private final BasicBlockList blocks
| |
| exitPredecessors | back to summary |
|---|---|
| private IntList exitPredecessors
| |
| firstLabel | back to summary |
|---|---|
| private final int firstLabel
| |
| predecessors | back to summary |
|---|---|
| private IntList[] predecessors
| |
| RopMethod | back to summary |
|---|---|
| public RopMethod(BasicBlockList blocks, int firstLabel) Constructs an instance.
| |
| calcPredecessors | back to summary |
|---|---|
| private void calcPredecessors() Calculates the predecessor sets for each block as well as for the exit. | |
| getBlocks | back to summary |
|---|---|
| public BasicBlockList getBlocks() Gets the basic block list for this method.
| |
| getExitPredecessors | back to summary |
|---|---|
| public IntList getExitPredecessors() Gets the exit predecessors for this instance.
| |
| getFirstLabel | back to summary |
|---|---|
| public int getFirstLabel() Gets the label for the first block in the method that this list represents.
| |
| labelToPredecessors | back to summary |
|---|---|
| public IntList labelToPredecessors(int label) Gets the predecessors associated with the given block. This throws an exception if there is no block with the given label.
| |
| withRegisterOffset | back to summary |
|---|---|
| public RopMethod withRegisterOffset(int delta) Returns an instance that is identical to this one, except that the registers in each instruction are offset by the given amount.
| |