Package org.jruby.ir.operands
Class TemporaryLocalReplacementVariable
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.TemporaryLocalReplacementVariable
- All Implemented Interfaces:
DepthCloneable
public class TemporaryLocalReplacementVariable
extends TemporaryLocalVariable
implements DepthCloneable
When we optimize full local variables to be temporary ones we like to keep the name
of what we renamed them as. This is just enough wrapper for us to maintain a nice
debug string.
-
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) cloneForDepth
(int n) How deep is this operand from where it is defined?getId()
Methods inherited from class org.jruby.ir.operands.TemporaryLocalVariable
decode, encode, getOffset, getType, retrieve, visit
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
-
TemporaryLocalReplacementVariable
-
-
Method Details
-
clone
- Overrides:
clone
in classTemporaryLocalVariable
-
getPrefix
- Overrides:
getPrefix
in classTemporaryLocalVariable
-
getId
- Overrides:
getId
in classTemporaryLocalVariable
-
cloneForDepth
Description copied from interface:DepthCloneable
How deep is this operand from where it is defined?- Specified by:
cloneForDepth
in interfaceDepthCloneable
-