public final class RopMethod
extends java.lang.Object
| Constructor and Description |
|---|
RopMethod(BasicBlockList blocks,
int firstLabel)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
BasicBlockList |
getBlocks()
Gets the basic block list for this method.
|
IntList |
getExitPredecessors()
Gets the exit predecessors for this instance.
|
int |
getFirstLabel()
Gets the label for the first block in the method that this list
represents.
|
IntList |
labelToPredecessors(int label)
Gets the predecessors associated with the given block.
|
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.
|
public RopMethod(BasicBlockList blocks, int firstLabel)
blocks - non-null; basic block list of the methodfirstLabel - >= 0; the label of the first block to executepublic BasicBlockList getBlocks()
non-null; the listpublic int getFirstLabel()
>= 0; the first-block labelpublic IntList labelToPredecessors(int label)
label - >= 0; the label of the block in questionnon-null; the predecessors of that blockpublic IntList getExitPredecessors()
non-null; the exit predecessorspublic RopMethod withRegisterOffset(int delta)
delta - the amount to offset register numbers bynon-null; an appropriately-constructed instanceCopyright © 2020. All Rights Reserved.