Package org.jruby.ir.operands
Class IRException
java.lang.Object
org.jruby.ir.operands.Operand
org.jruby.ir.operands.IRException
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IRExceptionstatic final IRExceptionstatic final IRExceptionstatic final IRExceptionstatic final IRExceptionFields inherited from class org.jruby.ir.operands.Operand
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAppend the list of variables used in this operand to the input list -- force every operand to implement this because a missing implementation can cause bad failures.booleanCan we replace every use of a variable 'v' that contains the value of this operand with the operand itself? This takes importance when there are at least two uses of 'v' within this scope.static IRExceptionvoidgetException(Ruby runtime) static IRExceptiongetExceptionFromOrdinal(int ordinal) getType()toString()voidMethods inherited from class org.jruby.ir.operands.Operand
getSimplifiedOperand, getValue, hasKnownValue, isFalseyImmediate, isTruthyImmediate, retrieve
-
Field Details
-
RETRY_LocalJumpError
-
NEXT_LocalJumpError
-
BREAK_LocalJumpError
-
RETURN_LocalJumpError
-
REDO_LocalJumpError
-
-
Constructor Details
-
IRException
-
-
Method Details
-
getOperandType
- Specified by:
getOperandTypein classOperand
-
getType
-
getExceptionFromOrdinal
-
addUsedVariables
Description copied from class:OperandAppend the list of variables used in this operand to the input list -- force every operand to implement this because a missing implementation can cause bad failures.- Specified by:
addUsedVariablesin classOperand
-
cloneForInlining
- Specified by:
cloneForInliningin classOperand
-
canCopyPropagate
public boolean canCopyPropagate()Description copied from class:OperandCan we replace every use of a variable 'v' that contains the value of this operand with the operand itself? This takes importance when there are at least two uses of 'v' within this scope. Ex: v = [1,2,3]; x = v; y = v In this case, we cannot replace the occurrences of 'v' because we would then get x = [1,2,3]; y = [1,2,3] which would then result in two different array objects being constructed instead of a single one.- Overrides:
canCopyPropagatein classOperand- Returns:
- true if it is safe to copy-propagate the operand.
-
getException
-
visit
-
encode
-
decode
-
toString
-