All Packages Class Hierarchy This Package Previous Next Index
Class BIT.highBIT.BasicBlock
java.lang.Object
|
+----BIT.highBIT.BasicBlock
- public class BasicBlock
- extends Object
- implements Cloneable
Represents a basic block.
Basic block is a section of code that has only one entry and exit point.
-
end_address
-
Represents the ending address (in # of instructions) of this basic block.
-
routine
- Represents the routine that this basic block is defined in.
-
start_address
-
Represents the start address (in # of instructions) of this basic block.
-
BasicBlock(Routine, int)
- Constructor for BasicBlock class.
-
addAfter(String, String, Object)
- Add a call to classname.methodname after this basic block.
-
addBefore(String, String, Object)
- Add a call to classname.methodname before this basic block.
-
clone()
-
-
getClassName()
-
-
getEndAddress()
- Returns the ending offset of this basic block.
-
getMethodName()
-
-
getOldEndAddress()
-
-
getOldStartAddress()
-
-
getStartAddress()
- Returns the starting offset of this basic block.
-
setEndAddress(int)
- This method is used to adjust the end address of a basic block
after insertion of instructions.
-
setStartAddress(int)
- This method is used to adjust the start address of a basic block
after insertion of instructions.
-
size()
- This method retuns the size of this basic block.
-
split(Routine, int)
- Splitting a BasicBlock.
start_address
protected int start_address
- Represents the start address (in # of instructions) of this basic block.
This value can be read by invoking getStart() method.
- See Also:
- getStart
end_address
protected int end_address
- Represents the ending address (in # of instructions) of this basic block.
This value can be read by invoking getEnd() method.
- See Also:
- getEnd
routine
public Routine routine
- Represents the routine that this basic block is defined in.
BasicBlock
public BasicBlock(Routine r,
int start)
- Constructor for BasicBlock class.
split
public void split(Routine r,
int inst_index)
- Splitting a BasicBlock.
getStartAddress
public int getStartAddress()
- Returns the starting offset of this basic block.
getOldStartAddress
public int getOldStartAddress()
setStartAddress
public void setStartAddress(int addr)
- This method is used to adjust the start address of a basic block
after insertion of instructions.
getEndAddress
public int getEndAddress()
- Returns the ending offset of this basic block.
getOldEndAddress
public int getOldEndAddress()
setEndAddress
public void setEndAddress(int addr)
- This method is used to adjust the end address of a basic block
after insertion of instructions.
size
public int size()
- This method retuns the size of this basic block.
addBefore
public void addBefore(String classname,
String methodname,
Object arg)
- Add a call to classname.methodname before this basic block.
addAfter
public void addAfter(String classname,
String methodname,
Object arg)
- Add a call to classname.methodname after this basic block.
clone
protected Object clone() throws CloneNotSupportedException
- Overrides:
- clone in class Object
getClassName
public String getClassName()
getMethodName
public String getMethodName()
All Packages Class Hierarchy This Package Previous Next Index