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
-
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()
void
Methods inherited from class org.jruby.ir.operands.Nil
createCacheObject, isFalseyImmediate
Methods inherited from class org.jruby.ir.operands.ImmutableLiteral
addUsedVariables, cachedObject, canCopyPropagate, cloneForInlining, hasKnownValue, isCached
Methods inherited from class org.jruby.ir.operands.Operand
encode, getSimplifiedOperand, getValue, isTruthyImmediate
-
Field Details
-
U_NIL
-
-
Method Details
-
getOperandType
- Overrides:
getOperandType
in classNil
-
toString
-
retrieve
public Object retrieve(ThreadContext context, IRubyObject self, StaticScope currScope, DynamicScope currDynScope, Object[] temp) Description copied from class:ImmutableLiteral
retrieve 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:
retrieve
in classImmutableLiteral
-
visit
-