Modifier and Type | Method and Description |
---|---|
Variable |
IRScopeImpl.getNewInlineVariable() |
Variable |
IRScopeImpl.getNewTemporaryClosureVariable(int closureId) |
Variable |
IRClosure.getNewTemporaryVariable() |
Variable |
IRScope.getNewTemporaryVariable()
create a new temporary variable
|
Variable |
IRScopeImpl.getNewTemporaryVariable() |
Variable |
IRExecutionScope.getSelf() |
Modifier and Type | Method and Description |
---|---|
Variable |
LiveVariablesProblem.getVariable(int id) |
Modifier and Type | Method and Description |
---|---|
java.util.Set<Variable> |
LiveVariablesProblem.allDefinedOrUsedVariables() |
java.util.Set<Variable> |
LiveVariablesProblem.getAllVars() |
java.util.Set<Variable> |
BindingLoadPlacementProblem.getLoadsOnScopeExit() |
java.util.List<Variable> |
LiveVariablesProblem.getVarsLiveOnEntry()
Get variables that are live on entry to the cfg.
|
java.util.Collection<Variable> |
LiveVariablesProblem.getVarsLiveOnExit() |
Modifier and Type | Method and Description |
---|---|
void |
LiveVariablesProblem.addDFVar(Variable v) |
DataFlowVar |
LiveVariablesProblem.getDFVar(Variable v) |
boolean |
LiveVariablesProblem.isDefinedOrUsed(Variable v) |
boolean |
BindingLoadPlacementProblem.scopeDefinesVariable(Variable v) |
boolean |
BindingStorePlacementProblem.scopeDefinesVariable(Variable v) |
boolean |
BindingLoadPlacementProblem.scopeUsesVariable(Variable v) |
boolean |
BindingStorePlacementProblem.scopeUsesVariable(Variable v) |
Modifier and Type | Method and Description |
---|---|
void |
BindingLoadPlacementProblem.initLoadsOnScopeExit(java.util.Set<Variable> loads) |
void |
LiveVariablesProblem.initVarsLiveOnExit(java.util.Collection<Variable> vars)
Initialize the exit cfg with variables that are live on exit
This is the case for closures where vars defined in the closure (or accessed from the surrounding scope)
can be used outside the closure.
|
Modifier and Type | Field and Description |
---|---|
Variable |
Instr.result |
Modifier and Type | Method and Description |
---|---|
Variable |
JUMP_INDIRECT_Instr.getJumpTarget() |
Variable |
Instr.getResult() |
Modifier and Type | Method and Description |
---|---|
java.util.List<Variable> |
Instr.getUsedVariables() |
Modifier and Type | Class and Description |
---|---|
class |
GlobalVariable |
class |
LocalVariable |
class |
RenamedVariable
Generic variable with a custom prefix -- mostly used during optimization passes
where we need to rename existing variables
|
class |
TemporaryClosureVariable |
class |
TemporaryVariable
A set of variables which are only used in a particular scope and never
visible to Ruby itself.
|
Modifier and Type | Method and Description |
---|---|
void |
Array.addUsedVariables(java.util.List<Variable> l)
Append the list of variables used in this operand to the input list
|
void |
BacktickString.addUsedVariables(java.util.List<Variable> l)
Append the list of variables used in this operand to the input list
|
void |
BoxedValue.addUsedVariables(java.util.List<Variable> l) |
void |
CompoundArray.addUsedVariables(java.util.List<Variable> l)
Append the list of variables used in this operand to the input list
|
void |
CompoundString.addUsedVariables(java.util.List<Variable> l)
Append the list of variables used in this operand to the input list
|
void |
DynamicReference.addUsedVariables(java.util.List<Variable> l)
Append the list of variables used in this operand to the input list
|
void |
Hash.addUsedVariables(java.util.List<Variable> l)
Append the list of variables used in this operand to the input list
|
void |
Operand.addUsedVariables(java.util.List<Variable> l)
Append the list of variables used in this operand to the input list
|
void |
Range.addUsedVariables(java.util.List<Variable> l)
Append the list of variables used in this operand to the input list
|
void |
Regexp.addUsedVariables(java.util.List<Variable> l)
Append the list of variables used in this operand to the input list
|
void |
SValue.addUsedVariables(java.util.List<Variable> l)
Append the list of variables used in this operand to the input list
|
void |
Splat.addUsedVariables(java.util.List<Variable> l)
Append the list of variables used in this operand to the input list
|
void |
UnboxedValue.addUsedVariables(java.util.List<Variable> l) |
void |
Variable.addUsedVariables(java.util.List<Variable> l)
Append the list of variables used in this operand to the input list
|
Modifier and Type | Method and Description |
---|---|
Variable |
InlinerInfo.getCallResultVariable() |
Variable |
InlinerInfo.getRenamedVariable(Variable v) |
Modifier and Type | Method and Description |
---|---|
java.util.Set<Variable> |
CFG.definedLocalVarsFromClosures() |
java.util.Set<Variable> |
CFG.usedLocalVarsFromClosures() |
Modifier and Type | Method and Description |
---|---|
boolean |
CFG.definesLocalVariable(Variable v) |
Variable |
InlinerInfo.getRenamedVariable(Variable v) |
boolean |
CFG.usesLocalVariable(Variable v) |
Modifier and Type | Method and Description |
---|---|
void |
JVM.emit(Variable variable) |
Copyright © 2002-2009 JRuby Team. All Rights Reserved.