| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Instr | clone(CloneInfo
This object manages renaming of variables and labels, handles
args and return values. ii)Implements abstract org. 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). |
| public static StoreLocalVarInstr | |
| public void | |
| public void | |
| public LocalVariable | |
| public IRScope | |
| public Operand | |
| public Object | interpret(ThreadContext context, StaticScope currScope, DynamicScope currDynScope, IRubyObject self, Object[] temp)
Overrides org.
|
| protected void | simplifyOperands(Map<Operand, Operand> valueMap, boolean force)
Overrides org. getLocalVar is saved for location and should not be simplified so we still know its original depth/offset. |
| public String[] | |
| public void |
| scope | back to summary |
|---|---|
| private final IRScope scope | |
| StoreLocalVarInstr | back to summary |
|---|---|
| public StoreLocalVarInstr(IRScope scope, Operand value, LocalVariable lvar) | |
| clone | back to summary |
|---|---|
| public Instr clone(CloneInfo ii) Implements abstract org. Doc from org. 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. | |
| decode | back to summary |
|---|---|
| public static StoreLocalVarInstr decode(IRReaderDecoder d) | |
| decrementLVarScopeDepth | back to summary |
|---|---|
| public void decrementLVarScopeDepth() | |
| encode | back to summary |
|---|---|
| public void encode(IRWriterEncoder e) Overrides org.
| |
| getLocalVar | back to summary |
|---|---|
| public LocalVariable getLocalVar() This is the variable that is being stored into in this scope. This variable doesn't participate in the computation itself. We just use it as a proxy for its (a) name (b) offset (c) scope-depth. | |
| getScope | back to summary |
|---|---|
| public IRScope getScope() | |
| getValue | back to summary |
|---|---|
| public Operand getValue() | |
| interpret | back to summary |
|---|---|
| public Object interpret(ThreadContext context, StaticScope currScope, DynamicScope currDynScope, IRubyObject self, Object[] temp) Overrides org.
| |
| simplifyOperands | back to summary |
|---|---|
| protected void simplifyOperands(Map<Operand, Operand> valueMap, boolean force) Overrides org. getLocalVar is saved for location and should not be simplified so we still know its original depth/offset.
| |
| toStringNonOperandArgs | back to summary |
|---|---|
| public String[] toStringNonOperandArgs() Overrides org.
| |
| visit | back to summary |
|---|---|
| public void visit(IRVisitor visitor) Overrides org.
| |