public class Cfg
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
Cfg.DfsVisitor |
static interface |
Cfg.FrameVisitor<T> |
static interface |
Cfg.OnAssignCallBack |
static interface |
Cfg.OnUseCallBack |
static interface |
Cfg.TravelCallBack |
Constructor and Description |
---|
Cfg() |
Modifier and Type | Method and Description |
---|---|
static void |
collectTos(Stmt stmt,
java.util.Set<Stmt> tos) |
static int[] |
countLocalReads(IrMethod method) |
static void |
createCFG(IrMethod jm) |
static void |
createCfgWithoutEx(IrMethod jm) |
static <T> void |
dfs(StmtList stmts,
Cfg.FrameVisitor<T> sv) |
static void |
dfsVisit(IrMethod method,
Cfg.DfsVisitor visitor) |
static boolean |
isThrow(Stmt s) |
static boolean |
notThrow(Stmt s) |
static int |
reIndexLocal(IrMethod method) |
static void |
reIndexLocalAndLabel(IrMethod irMethod) |
static void |
travel(Stmt p,
Cfg.TravelCallBack callback,
boolean travelPhi) |
static void |
travel(StmtList stmts,
Cfg.TravelCallBack callback,
boolean travelPhi) |
static void |
travel(Value value,
Cfg.OnUseCallBack callback) |
static void |
travelMod(Stmt p,
Cfg.TravelCallBack callback,
boolean travelPhi) |
static void |
travelMod(StmtList stmts,
Cfg.TravelCallBack callback,
boolean travelPhi) |
static Value |
travelMod(Value value,
Cfg.OnUseCallBack callback) |
public static int[] countLocalReads(IrMethod method)
public static void reIndexLocalAndLabel(IrMethod irMethod)
public static boolean notThrow(Stmt s)
public static boolean isThrow(Stmt s)
public static void createCfgWithoutEx(IrMethod jm)
public static void createCFG(IrMethod jm)
public static void dfsVisit(IrMethod method, Cfg.DfsVisitor visitor)
public static <T> void dfs(StmtList stmts, Cfg.FrameVisitor<T> sv)
public static Value travelMod(Value value, Cfg.OnUseCallBack callback)
public static void travel(Value value, Cfg.OnUseCallBack callback)
public static void travelMod(Stmt p, Cfg.TravelCallBack callback, boolean travelPhi)
public static void travel(Stmt p, Cfg.TravelCallBack callback, boolean travelPhi)
public static void travel(StmtList stmts, Cfg.TravelCallBack callback, boolean travelPhi)
public static void travelMod(StmtList stmts, Cfg.TravelCallBack callback, boolean travelPhi)
public static int reIndexLocal(IrMethod method)
method
-