| Modifier and Type | Field and Description |
|---|---|
| public static final ScopeModule[] | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addUsedVariables(List<Variable> l)
Implements abstract org. Append 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. |
| public boolean | canCopyPropagate()
Overrides org. Can we replace every use of a variable 'v' that contains the value of this operand with the operand itself? |
| public Operand | |
| public static ScopeModule | |
| public void | |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. Indicates whether some other object is "equal to" this one. |
| public OperandType | |
| public int | |
| public int | |
| public static ScopeModule | |
| public Object | retrieve(ThreadContext context, IRubyObject self, StaticScope currScope, DynamicScope currDynScope, Object[] temp)
Overrides org.
|
| public String | |
| public void |
| SCOPE_MODULE | back to summary |
|---|---|
| public static final ScopeModule[] SCOPE_MODULE | |
| scopeModuleDepth | back to summary |
|---|---|
| private final int scopeModuleDepth | |
| ScopeModule | back to summary |
|---|---|
| public ScopeModule(int scopeModuleDepth) | |
| addUsedVariables | back to summary |
|---|---|
| public void addUsedVariables(List<Variable> l) Implements abstract org. Doc from org. Append 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.
| |
| canCopyPropagate | back to summary |
|---|---|
| public boolean canCopyPropagate() Overrides org. Doc from org. Can 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.
| |
| cloneForInlining | back to summary |
|---|---|
| public Operand cloneForInlining(CloneInfo ii) Implements abstract org.
| |
| decode | back to summary |
|---|---|
| public static ScopeModule decode(IRReaderDecoder d) | |
| encode | back to summary |
|---|---|
| public void encode(IRWriterEncoder e) Overrides org.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getOperandType | back to summary |
|---|---|
| public OperandType getOperandType() Implements abstract org.
| |
| getScopeModuleDepth | back to summary |
|---|---|
| public int getScopeModuleDepth() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| ModuleFor | back to summary |
|---|---|
| public static ScopeModule ModuleFor(int depth) | |
| retrieve | back to summary |
|---|---|
| public Object retrieve(ThreadContext context, IRubyObject self, StaticScope currScope, DynamicScope currDynScope, Object[] temp) Overrides org.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| visit | back to summary |
|---|---|
| public void visit(IRVisitor visitor) Overrides org.
| |