Package org.jruby.ir.operands
Class TemporaryIntVariable
java.lang.Object
org.jruby.ir.operands.Operand
org.jruby.ir.operands.Variable
org.jruby.ir.operands.TemporaryVariable
org.jruby.ir.operands.TemporaryLocalVariable
org.jruby.ir.operands.TemporaryIntVariable
Represents a temporary variable for an unboxed int operand.
FIXME: this does not mesh with the specialized types like TemporaryFixnum and TemporaryFloat and is added solely to
support primitive integer operations during pattern matching.
-
Field Summary
FieldsFields inherited from class org.jruby.ir.operands.TemporaryLocalVariable
offset
Fields inherited from class org.jruby.ir.operands.Operand
EMPTY_ARRAY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone
(SimpleCloneInfo ii) static TemporaryIntVariable
getType()
Differentiates between different types of TemporaryVariables (useful for switch and persistence).void
Methods inherited from class org.jruby.ir.operands.TemporaryLocalVariable
encode, getId, getOffset, retrieve
Methods inherited from class org.jruby.ir.operands.TemporaryVariable
equals, getOperandType, hashCode, toString
Methods inherited from class org.jruby.ir.operands.Variable
addUsedVariables, canCopyPropagate, cloneForInlining, getSimplifiedOperand, getValue, isSelf
Methods inherited from class org.jruby.ir.operands.Operand
hasKnownValue, isFalseyImmediate, isTruthyImmediate
-
Field Details
-
PREFIX
- See Also:
-
-
Constructor Details
-
TemporaryIntVariable
public TemporaryIntVariable(int offset)
-
-
Method Details
-
getType
Description copied from class:TemporaryVariable
Differentiates between different types of TemporaryVariables (useful for switch and persistence).- Overrides:
getType
in classTemporaryLocalVariable
-
getPrefix
- Overrides:
getPrefix
in classTemporaryLocalVariable
-
clone
- Overrides:
clone
in classTemporaryLocalVariable
-
visit
- Overrides:
visit
in classTemporaryLocalVariable
-
decode
-