EMPTY_ARRAY| Modifier and Type | Method and Description |
|---|---|
void |
addUsedVariables(java.util.List<Variable> l)
Append the list of variables used in this operand to the input list
|
Operand |
cloneForInlining(CloneInfo ii) |
static Array |
decode(IRReaderDecoder d) |
void |
encode(IRWriterEncoder e) |
Operand |
get(int i) |
Operand[] |
getElts() |
OperandType |
getOperandType() |
Operand |
getSimplifiedOperand(java.util.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() |
java.util.Iterator<Operand> |
iterator() |
java.lang.Object |
retrieve(ThreadContext context,
IRubyObject self,
StaticScope currScope,
DynamicScope currDynScope,
java.lang.Object[] temp) |
IRubyObject[] |
retrieveArrayElts(ThreadContext context,
IRubyObject self,
StaticScope currScope,
DynamicScope currDynScope,
java.lang.Object[] temp) |
int |
size() |
Operand |
toArray() |
java.lang.String |
toString() |
void |
visit(IRVisitor visitor) |
canCopyPropagate, getValuepublic Array()
public Array(Operand[] elts)
public OperandType getOperandType()
getOperandType in class Operandpublic boolean isBlank()
public int size()
public Operand get(int i)
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean hasKnownValue()
OperandhasKnownValue in class Operandpublic Operand getSimplifiedOperand(java.util.Map<Operand,Operand> valueMap, boolean force)
getSimplifiedOperand in class Operandpublic Operand toArray()
public void addUsedVariables(java.util.List<Variable> l)
addUsedVariables in class Operandpublic Operand cloneForInlining(CloneInfo ii)
cloneForInlining in class Operandpublic void encode(IRWriterEncoder e)
public static Array decode(IRReaderDecoder d)
public IRubyObject[] retrieveArrayElts(ThreadContext context, IRubyObject self, StaticScope currScope, DynamicScope currDynScope, java.lang.Object[] temp)
public java.lang.Object retrieve(ThreadContext context, IRubyObject self, StaticScope currScope, DynamicScope currDynScope, java.lang.Object[] temp)
public Operand[] getElts()
Copyright © 2001-2019 JRuby. All Rights Reserved.