| Modifier and Type | Field and Description |
|---|---|
| private final HashMap | |
| private final HashSet | |
| public static final String | |
| private final HashMap | |
| private final Collection |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public LiveVariableNode | buildFlowGraphNode(BasicBlock bb)
Implements abstract org.
|
| public boolean | |
| public Set | |
| public String | |
| public Integer | |
| public Collection | |
| public String | |
| public Set | |
| public Variable | |
| public Collection | |
| public void | |
| public void |
| dfVarMap | back to summary |
|---|---|
| private final HashMap<Variable, Integer> dfVarMap | |
| localVars | back to summary |
|---|---|
| private final HashSet<LocalVariable> localVars | |
| NAME | back to summary |
|---|---|
| public static final String NAME | |
| varDfVarMap | back to summary |
|---|---|
| private final HashMap<Integer, Variable> varDfVarMap | |
| varsLiveOnScopeExit | back to summary |
|---|---|
| private final Collection<LocalVariable> varsLiveOnScopeExit | |
| LiveVariablesProblem | back to summary |
|---|---|
| public LiveVariablesProblem(FullInterpreterContext fic) | |
| addDFVar | back to summary |
|---|---|
| public void addDFVar(Variable v) | |
| buildFlowGraphNode | back to summary |
|---|---|
| public LiveVariableNode buildFlowGraphNode(BasicBlock bb) Implements abstract org.
| |
| dfVarExists | back to summary |
|---|---|
| public boolean dfVarExists(Variable v) | |
| getAllVars | back to summary |
|---|---|
| public Set | |
| getDataFlowVarsForOutput | back to summary |
|---|---|
| public String getDataFlowVarsForOutput() Overrides org.
| |
| getDFVar | back to summary |
|---|---|
| public Integer getDFVar(Variable v) | |
| getLocalVarsLiveOnScopeEntry | back to summary |
|---|---|
| public Collection Get variables that are live on entry to the cfg. This is the case for closures which access variables from the parent scope. sum = 0; a.each { |i| sum += i }; return sum In the code snippet above, 'sum' is live on entry to the closure | |
| getName | back to summary |
|---|---|
| public String getName() Implements abstract org.
| |
| getNonSelfLocalVars | back to summary |
|---|---|
| public Set | |
| getVariable | back to summary |
|---|---|
| public Variable getVariable(int id) | |
| getVarsLiveOnScopeExit | back to summary |
|---|---|
| public Collection | |
| markDeadInstructions | back to summary |
|---|---|
| public void markDeadInstructions() | |
| setVarsLiveOnScopeExit | back to summary |
|---|---|
| public void setVarsLiveOnScopeExit(Collection<LocalVariable> vars) | |