org.jruby.compiler.ir.representations
Class BasicBlock

java.lang.Object
  extended by org.jruby.compiler.ir.representations.BasicBlock

public class BasicBlock
extends java.lang.Object


Constructor Summary
BasicBlock(CFG c, Label l)
           
 
Method Summary
 void addInstr(Instr i)
           
 BasicBlock cloneForInlining(InlinerInfo ii)
           
 int getID()
           
 java.util.List<Instr> getInstrs()
           
 Instr[] getInstrsArray()
           
 Label getLabel()
           
 Instr getLastInstr()
           
 void insertInstr(Instr i)
           
 boolean isEmpty()
           
 void processClosureArgAndReturnInstrs(InlinerInfo ii, YieldInstr yi)
           
 boolean removeInstr(Instr i)
           
 BasicBlock splitAtInstruction(Instr splitPoint, Label newLabel, boolean includeSplitPointInstr)
           
 void swallowBB(BasicBlock foodBB)
           
 java.lang.String toString()
           
 java.lang.String toStringInstrs()
           
 void updateCFG(CFG c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BasicBlock

public BasicBlock(CFG c,
                  Label l)
Method Detail

updateCFG

public void updateCFG(CFG c)

getID

public int getID()

getLabel

public Label getLabel()

addInstr

public void addInstr(Instr i)

insertInstr

public void insertInstr(Instr i)

getInstrs

public java.util.List<Instr> getInstrs()

getInstrsArray

public Instr[] getInstrsArray()

getLastInstr

public Instr getLastInstr()

removeInstr

public boolean removeInstr(Instr i)

isEmpty

public boolean isEmpty()

splitAtInstruction

public BasicBlock splitAtInstruction(Instr splitPoint,
                                     Label newLabel,
                                     boolean includeSplitPointInstr)

swallowBB

public void swallowBB(BasicBlock foodBB)

cloneForInlining

public BasicBlock cloneForInlining(InlinerInfo ii)

processClosureArgAndReturnInstrs

public void processClosureArgAndReturnInstrs(InlinerInfo ii,
                                             YieldInstr yi)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toStringInstrs

public java.lang.String toStringInstrs()


Copyright © 2002-2009 JRuby Team. All Rights Reserved.