public class StoreLocalVarInstr extends Instr implements FixedArityInstr
EMPTY_OPERANDS, operands
Constructor and Description |
---|
StoreLocalVarInstr(IRScope scope,
Operand value,
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).
|
static StoreLocalVarInstr |
decode(IRReaderDecoder d) |
void |
decrementLVarScopeDepth() |
void |
encode(IRWriterEncoder e) |
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[] |
toStringNonOperandArgs() |
void |
visit(IRVisitor visitor) |
canBeDeleted, canRaiseException, cloneOperands, computeScopeFlags, getIPC, getOperands, getOperation, getRPC, getUsedVariables, hasSideEffects, interpretAndGetNewIPC, isDead, markDead, renameVars, setIPC, setRPC, simplifyAndGetResult, toString, transfersControl
public StoreLocalVarInstr(IRScope scope, Operand value, LocalVariable lvar)
public Operand getValue()
public LocalVariable getLocalVar()
public IRScope getScope()
public String[] toStringNonOperandArgs()
toStringNonOperandArgs
in class Instr
public void decrementLVarScopeDepth()
public void simplifyOperands(Map<Operand,Operand> valueMap, boolean force)
simplifyOperands
in class Instr
public Instr clone(CloneInfo ii)
Instr
public void encode(IRWriterEncoder e)
public static StoreLocalVarInstr decode(IRReaderDecoder d)
public Object interpret(ThreadContext context, StaticScope currScope, DynamicScope currDynScope, IRubyObject self, Object[] temp)
Copyright © 2001-2015 JRuby. All Rights Reserved.