public class DagSnippit
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DagSnippit.Modifier |
Modifier and Type | Field and Description |
---|---|
java.util.Vector |
bbs |
int |
blflags |
static java.lang.String |
JbetLogFacility |
DagMethodInfo |
method |
Node.param[] |
params |
Constructor and Description |
---|
DagSnippit()
constructor.
|
Modifier and Type | Method and Description |
---|---|
BasicBlock |
blockAt(int i) |
void |
clearTmps()
clearTmps sets clocal to -1 for each Node.
|
void |
findLabels()
Search for label nodes in all blocks.
|
void |
findRoles()
findRoles sets sb.es.role for each basic block
|
static DagSnippit |
graphify(MethodInfo mi)
Convert one method's InstrBlocks to BasicBlocks.
|
static DagSnippit |
graphify(MethodInfo mi,
ClassFilter fixcons)
Convert one method's InstrBlocks to BasicBlocks.
|
static DagSnippit |
graphify(MethodInfo mi,
ClassFilter fixcons,
DagSnippit inme,
int[] permutation) |
void |
printinfo(LineWriter out)
Display a DAG on the output stream
|
void |
replace_cfe(java.util.Hashtable subs,
Node.SubMethod sm) |
void |
replace(java.util.Hashtable subs,
Node.SubMethod sm)
replace
|
public static java.lang.String JbetLogFacility
public java.util.Vector bbs
public DagMethodInfo method
public Node.param[] params
public int blflags
public BasicBlock blockAt(int i)
public static DagSnippit graphify(MethodInfo mi) throws ClassFileException, DataFlowException, ElementNotFoundException
mi
- The method to convertClassFileException
DataFlowException
ElementNotFoundException
public static DagSnippit graphify(MethodInfo mi, ClassFilter fixcons) throws ClassFileException, DataFlowException, ElementNotFoundException
mi
- The method to graphifyfixcons
- Function that says whether to replace new with invokeinitClassFileException
DataFlowException
ElementNotFoundException
public static DagSnippit graphify(MethodInfo mi, ClassFilter fixcons, DagSnippit inme, int[] permutation) throws ClassFileException, DataFlowException, ElementNotFoundException
public void printinfo(LineWriter out)
out
- stream to write onpublic void replace(java.util.Hashtable subs, Node.SubMethod sm) throws java.lang.Throwable
subs
- sm
- java.lang.Throwable
public void replace_cfe(java.util.Hashtable subs, Node.SubMethod sm) throws ClassFileException
ClassFileException
public void findLabels()
public void clearTmps()
public void findRoles()