Package org.jruby.ir.operands
Class Splat
java.lang.Object
org.jruby.ir.operands.Operand
org.jruby.ir.operands.Splat
- All Implemented Interfaces:
DepthCloneable
-
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 listcloneForDepth(int n) When fixing up splats in nested closure we need to tweak the operand if it is a LocalVariablestatic SplatvoidgetArray()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
-
Splat
-
-
Method Details
-
getOperandType
- Specified by:
getOperandTypein classOperand
-
toString
-
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.
-
getArray
-
getSimplifiedOperand
- Overrides:
getSimplifiedOperandin classOperand
-
addUsedVariables
Append the list of variables used in this operand to the input list- Specified by:
addUsedVariablesin classOperand
-
cloneForDepth
When fixing up splats in nested closure we need to tweak the operand if it is a LocalVariable- Specified by:
cloneForDepthin interfaceDepthCloneable
-
cloneForInlining
- Specified by:
cloneForInliningin classOperand
-
retrieve
public Object retrieve(ThreadContext context, IRubyObject self, StaticScope currScope, DynamicScope currDynScope, Object[] temp) -
encode
-
decode
-
visit
-