public class StoreLocalVarInstr extends Instr implements FixedArityInstr
EMPTY_OPERANDS, operands
Constructor and Description |
---|
StoreLocalVarInstr(Operand value,
IRScope scope,
LocalVariable lvar) |
Modifier and Type | Method and Description |
---|---|
Instr |
clone(CloneInfo ii)
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).
|
void |
decrementLVarScopeDepth() |
LocalVariable |
getLocalVar()
This is the variable that is being stored into in this scope.
|
IRScope |
getScope() |
Operand |
getValue() |
Object |
interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
void |
simplifyOperands(Map<Operand,Operand> valueMap,
boolean force)
getLocalVar is saved for location and should not be simplified so we still know its original
depth/offset.
|
String |
toString() |
void |
visit(IRVisitor visitor) |
canBeDeleted, canRaiseException, cloneOperands, computeScopeFlags, getIPC, getOperands, getOperation, getRPC, getUsedVariables, hasSideEffects, interpretAndGetNewIPC, isDead, markDead, renameVars, setIPC, setRPC, simplifyAndGetResult, transfersControl
public StoreLocalVarInstr(Operand value, IRScope scope, LocalVariable lvar)
public Operand getValue()
public LocalVariable getLocalVar()
public IRScope getScope()
public void decrementLVarScopeDepth()
public void simplifyOperands(Map<Operand,Operand> valueMap, boolean force)
simplifyOperands
in class Instr
public Instr clone(CloneInfo ii)
Instr
public Object interpret(ThreadContext context, StaticScope currScope, DynamicScope currDynScope, IRubyObject self, Object[] temp)
Copyright © 2001-2015 JRuby. All Rights Reserved.