Modifier and Type | Field and Description |
---|---|
private int |
blockId |
private ArrayList<Integer> |
patchPositions
References to instructions that jump to this unresolved label.
|
private int |
position |
Modifier and Type | Method and Description |
---|---|
void |
addPatchAt(int branchLocation) |
protected void |
bind(int pos)
Binds the label to the specified position.
|
int |
getBlockId() |
boolean |
isBound() |
protected void |
patchInstructions(Assembler masm) |
int |
position()
Returns the position of this label in the code buffer.
|
void |
reset() |
String |
toString() |
private int position
private int blockId
private ArrayList<Integer> patchPositions
patchInstructions(Assembler)
method.public int position()
public int getBlockId()
protected void bind(int pos)
pos
- the positionpublic boolean isBound()
public void addPatchAt(int branchLocation)
protected void patchInstructions(Assembler masm)
public void reset()