Package org.jruby.ir.operands
Class SValue
java.lang.Object
org.jruby.ir.operands.Operand
org.jruby.ir.operands.SValue
-
Field Summary
Fields inherited from class org.jruby.ir.operands.Operand
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAppend the list of variables used in this operand to the input liststatic SValuevoidgetArray()getSimplifiedOperand(Map<Operand, Operand> valueMap, boolean force) booleanDo 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).retrieve(ThreadContext context, IRubyObject self, StaticScope currScope, DynamicScope currDynScope, Object[] temp) toString()voidMethods inherited from class org.jruby.ir.operands.Operand
canCopyPropagate, getValue, isFalseyImmediate, isTruthyImmediate
-
Constructor Details
-
SValue
-
-
Method Details
-
getOperandType
- Specified by:
getOperandTypein classOperand
-
getArray
-
hasKnownValue
public boolean hasKnownValue()Description copied from class:OperandDo 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).- Overrides:
hasKnownValuein classOperand- Returns:
- true if a known compile-time value.
-
toString
-
getSimplifiedOperand
- Overrides:
getSimplifiedOperandin classOperand
-
addUsedVariables
Append the list of variables used in this operand to the input list- Specified by:
addUsedVariablesin classOperand
-
cloneForInlining
- Specified by:
cloneForInliningin classOperand
-
retrieve
public Object retrieve(ThreadContext context, IRubyObject self, StaticScope currScope, DynamicScope currDynScope, Object[] temp) -
encode
-
decode
-
visit
-