public class Array extends Operand
Modifier and Type | Field and Description |
---|---|
Operand[] |
elts |
EMPTY_ARRAY
Constructor and Description |
---|
Array() |
Array(List<Operand> elts) |
Array(Operand[] elts) |
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 |
get(int i) |
Operand[] |
getElts() |
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 |
isBlank() |
Object |
retrieve(ThreadContext context,
IRubyObject self,
DynamicScope currDynScope,
Object[] temp) |
int |
size() |
Operand |
toArray() |
String |
toString() |
void |
visit(IRVisitor visitor) |
canCopyPropagate, getValue
public final Operand[] elts
public Array()
public Array(Operand[] elts)
public boolean isBlank()
public int size()
public Operand get(int i)
public boolean hasKnownValue()
Operand
hasKnownValue
in class Operand
public Operand getSimplifiedOperand(Map<Operand,Operand> valueMap, boolean force)
getSimplifiedOperand
in class Operand
public Operand fetchCompileTimeArrayElement(int argIndex, boolean getSubArray)
fetchCompileTimeArrayElement
in class Operand
public Operand toArray()
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)
public Operand[] getElts()
Copyright © 2001-2013 JRuby. All Rights Reserved.