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
offsetFields 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, visitMethods inherited from class org.jruby.ir.operands.TemporaryVariable
equals, getOperandType, hashCode, toStringMethods inherited from class org.jruby.ir.operands.Variable
addUsedVariables, canCopyPropagate, cloneForInlining, getSimplifiedOperand, getValue, isSelfMethods inherited from class org.jruby.ir.operands.Operand
hasKnownValue, isFalseyImmediate, isTruthyImmediate
-
Field Details
-
PREFIX
- See Also:
-
-
Constructor Details
-
TemporaryLocalReplacementVariable
-
-
Method Details
-
clone
- Overrides:
clonein classTemporaryLocalVariable
-
getPrefix
- Overrides:
getPrefixin classTemporaryLocalVariable
-
getId
- Overrides:
getIdin classTemporaryLocalVariable
-
cloneForDepth
Description copied from interface:DepthCloneableHow deep is this operand from where it is defined?- Specified by:
cloneForDepthin interfaceDepthCloneable
-