public class SValue extends Operand
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 SValue |
decode(IRReaderDecoder d) |
void |
encode(IRWriterEncoder e) |
Operand |
getArray() |
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).
|
java.lang.Object |
retrieve(ThreadContext context,
IRubyObject self,
StaticScope currScope,
DynamicScope currDynScope,
java.lang.Object[] temp) |
java.lang.String |
toString() |
void |
visit(IRVisitor visitor) |
canCopyPropagate, getValue
public SValue(Operand array)
public OperandType getOperandType()
getOperandType
in class Operand
public Operand getArray()
public boolean hasKnownValue()
Operand
hasKnownValue
in class Operand
public java.lang.String toString()
toString
in class java.lang.Object
public Operand getSimplifiedOperand(java.util.Map<Operand,Operand> valueMap, boolean force)
getSimplifiedOperand
in class Operand
public void addUsedVariables(java.util.List<Variable> l)
addUsedVariables
in class Operand
public Operand cloneForInlining(CloneInfo ii)
cloneForInlining
in class Operand
public java.lang.Object retrieve(ThreadContext context, IRubyObject self, StaticScope currScope, DynamicScope currDynScope, java.lang.Object[] temp)
public void encode(IRWriterEncoder e)
public static SValue decode(IRReaderDecoder d)
Copyright © 2001-2018 JRuby. All Rights Reserved.