Package org.jruby.ir.instructions
Class InlinedLineNumberInstr
java.lang.Object
org.jruby.ir.instructions.Instr
org.jruby.ir.instructions.NoOperandInstr
org.jruby.ir.instructions.LineNumberInstr
org.jruby.ir.instructions.InlinedLineNumberInstr
- All Implemented Interfaces:
FixedArityInstr
This represents a linenumber instr that has been inlined into another method/closure.
It's purpose is to record the scope so that if we are debugging we can know where this
instr originally came from.
-
Field Summary
Fields inherited from class org.jruby.ir.instructions.LineNumberInstr
coverage, lineNumber, oneshot
Fields inherited from class org.jruby.ir.instructions.Instr
EMPTY_OPERANDS
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.jruby.ir.instructions.LineNumberInstr
decode, encode, getLineNumber, isCoverage, isOneshot, visit
Methods inherited from class org.jruby.ir.instructions.NoOperandInstr
getOperands, setOperand
Methods inherited from class org.jruby.ir.instructions.Instr
canBeDeletedFromScope, canRaiseException, cloneOperands, computeScopeFlags, dumpableFields, getOperation, getUsedVariables, hasSideEffects, interpret, interpretAndGetNewIPC, isDead, isDeletable, markDead, renameVars, simplifyInstr, simplifyOperands, simplifyOperands, toString, transfersControl
-
Constructor Details
-
InlinedLineNumberInstr
-
-
Method Details
-
toStringNonOperandArgs
- Overrides:
toStringNonOperandArgs
in classLineNumberInstr
-
clone
Description copied from class:Instr
Clone the instruction for use in an inlining context (either when a scope is inlined into another scope, or when a block has to be cloned because its associated call belongs to an inlined scope). This might renaming variables and labels to eliminate naming conflicts. The implementation might vary on the cloning mode.- Overrides:
clone
in classLineNumberInstr
- Parameters:
ii
- This object manages renaming of variables and labels, handles args and return values.- Returns:
- a new instruction that can be used in the target scope.
-
getScope
-