public class Range extends Operand
EMPTY_ARRAY
Constructor and Description |
---|
Range(Operand begin,
Operand end,
boolean exclusive) |
Modifier and Type | Method and Description |
---|---|
void |
addUsedVariables(List<Variable> l)
Append the list of variables used in this operand to the input list
|
Operand |
cloneForInlining(InlinerInfo ii) |
Operand |
fetchCompileTimeArrayElement(int argIndex,
boolean getSubArray) |
Operand |
getBegin() |
Operand |
getEnd() |
Operand |
getSimplifiedOperand(Map<Operand,Operand> valueMap,
boolean force) |
boolean |
hasKnownValue()
Do we know the value of this operand at compile-time?
If we do then it may be possible to constant propagate (one case:
We also know it is also an ImmutableLiteral).
|
boolean |
isExclusive() |
Object |
retrieve(ThreadContext context,
IRubyObject self,
DynamicScope currDynScope,
Object[] temp) |
String |
toString() |
void |
visit(IRVisitor visitor) |
canCopyPropagate, getValue
public Operand getBegin()
public Operand getEnd()
public boolean isExclusive()
public boolean hasKnownValue()
Operand
hasKnownValue
in class Operand
public Operand fetchCompileTimeArrayElement(int argIndex, boolean getSubArray)
fetchCompileTimeArrayElement
in class Operand
public Operand getSimplifiedOperand(Map<Operand,Operand> valueMap, boolean force)
getSimplifiedOperand
in class Operand
public void addUsedVariables(List<Variable> l)
addUsedVariables
in class Operand
public Operand cloneForInlining(InlinerInfo ii)
cloneForInlining
in class Operand
public Object retrieve(ThreadContext context, IRubyObject self, DynamicScope currDynScope, Object[] temp)
Copyright © 2001-2015 JRuby. All Rights Reserved.