Package org.jruby.ir.operands
Class UnexecutableNil
java.lang.Object
org.jruby.ir.operands.Operand
org.jruby.ir.operands.ImmutableLiteral
org.jruby.ir.operands.Nil
org.jruby.ir.operands.UnexecutableNil
-
Field Summary
FieldsFields inherited from class org.jruby.ir.operands.Operand
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionretrieve(ThreadContext context, IRubyObject self, StaticScope currScope, DynamicScope currDynScope, Object[] temp) retrieve the live value represented by this immutable literal.toString()voidMethods inherited from class org.jruby.ir.operands.Nil
createCacheObject, isFalseyImmediateMethods inherited from class org.jruby.ir.operands.ImmutableLiteral
addUsedVariables, cachedObject, canCopyPropagate, cloneForInlining, hasKnownValue, isCachedMethods inherited from class org.jruby.ir.operands.Operand
encode, getSimplifiedOperand, getValue, isTruthyImmediate
-
Field Details
-
U_NIL
-
-
Constructor Details
-
UnexecutableNil
private UnexecutableNil()
-
-
Method Details
-
getOperandType
- Overrides:
getOperandTypein classNil
-
toString
-
retrieve
public Object retrieve(ThreadContext context, IRubyObject self, StaticScope currScope, DynamicScope currDynScope, Object[] temp) Description copied from class:ImmutableLiteralretrieve the live value represented by this immutable literal. An interesting property of knowing something cannot change at compile time is that all information necessary to construct it is also known at compile time. We don't pre-create these since we don't want to assume the cost of constructing literals which may never be used.- Overrides:
retrievein classImmutableLiteral
-
visit
-