public class BasicBlock extends java.lang.Object implements ExplicitVertexID
| Modifier and Type | Field and Description |
|---|---|
private CFG |
cfg |
private int |
id |
private java.util.List<Instr> |
instrs |
private Instr[] |
instrsArray |
private boolean |
isRescueEntry |
private Label |
label |
| Constructor and Description |
|---|
BasicBlock(CFG c,
Label l) |
| Modifier and Type | Method and Description |
|---|---|
void |
addInstr(Instr i) |
BasicBlock |
cloneForInlinedClosure(InlinerInfo ii) |
BasicBlock |
cloneForInlinedMethod(InlinerInfo ii) |
int |
getID() |
java.util.List<Instr> |
getInstrs() |
Instr[] |
getInstrsArray() |
Label |
getLabel() |
Instr |
getLastInstr() |
void |
insertInstr(Instr i) |
int |
instrCount() |
boolean |
isEmpty() |
boolean |
isRescueEntry() |
void |
markRescueEntryBB() |
boolean |
removeInstr(Instr i) |
BasicBlock |
splitAtInstruction(Instr splitPoint,
Label newLabel,
boolean includeSplitPointInstr) |
void |
swallowBB(BasicBlock foodBB) |
java.lang.String |
toString() |
java.lang.String |
toStringInstrs() |
private int id
private CFG cfg
private Label label
private java.util.List<Instr> instrs
private boolean isRescueEntry
private Instr[] instrsArray
public int getID()
getID in interface ExplicitVertexIDpublic Label getLabel()
public void markRescueEntryBB()
public boolean isRescueEntry()
public void addInstr(Instr i)
public void insertInstr(Instr i)
public java.util.List<Instr> getInstrs()
public int instrCount()
public Instr[] getInstrsArray()
public Instr getLastInstr()
public boolean removeInstr(Instr i)
public boolean isEmpty()
public BasicBlock splitAtInstruction(Instr splitPoint, Label newLabel, boolean includeSplitPointInstr)
public void swallowBB(BasicBlock foodBB)
public BasicBlock cloneForInlinedMethod(InlinerInfo ii)
public BasicBlock cloneForInlinedClosure(InlinerInfo ii)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toStringInstrs()