public class ScopeModule extends Operand
EMPTY_ARRAY
Constructor and Description |
---|
ScopeModule(IRScope scope) |
Modifier and Type | Method and Description |
---|---|
void |
addUsedVariables(List<Variable> l)
Append the list of variables used in this operand to the input list -- force every operand
to implement this because a missing implementation can cause bad failures.
|
boolean |
canCopyPropagate()
Can we replace every use of a variable 'v' that contains the value of this operand
with the operand itself? This takes importance when there are at least two uses
of 'v' within this scope.
|
Operand |
cloneForInlining(InlinerInfo ii) |
IRScope |
getScope() |
Object |
retrieve(ThreadContext context,
IRubyObject self,
DynamicScope currDynScope,
Object[] temp) |
String |
toString() |
void |
visit(IRVisitor visitor) |
fetchCompileTimeArrayElement, getSimplifiedOperand, getValue, hasKnownValue
public ScopeModule(IRScope scope)
public void addUsedVariables(List<Variable> l)
Operand
addUsedVariables
in class Operand
public Operand cloneForInlining(InlinerInfo ii)
cloneForInlining
in class Operand
public boolean canCopyPropagate()
Operand
canCopyPropagate
in class Operand
public IRScope getScope()
public Object retrieve(ThreadContext context, IRubyObject self, DynamicScope currDynScope, Object[] temp)
Copyright © 2001-2015 JRuby. All Rights Reserved.