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