public class GetGlobalVariableInstr extends OneOperandResultBaseInstr implements FixedArityInstr
result
EMPTY_OPERANDS
Constructor and Description |
---|
GetGlobalVariableInstr(Variable dest,
GlobalVariable gvar) |
GetGlobalVariableInstr(Variable dest,
RubySymbol gvarName) |
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).
|
boolean |
computeScopeFlags(java.util.EnumSet<IRFlags> flags) |
static GetGlobalVariableInstr |
decode(IRReaderDecoder d) |
void |
encode(IRWriterEncoder e) |
GlobalVariable |
getTarget() |
java.lang.Object |
interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
java.lang.Object[] temp) |
void |
visit(IRVisitor visitor) |
getOperand1, getOperands, setOperand, setOperand1
getResult, updateResult
canBeDeletedFromScope, canRaiseException, cloneOperands, computeScopeFlags, dumpableFields, getOperation, getUsedVariables, hasSideEffects, interpretAndGetNewIPC, isDead, isDeletable, markDead, renameVars, simplifyAndGetResult, simplifyOperands, toString, toStringNonOperandArgs, transfersControl
public GetGlobalVariableInstr(Variable dest, RubySymbol gvarName)
public GetGlobalVariableInstr(Variable dest, GlobalVariable gvar)
public GlobalVariable getTarget()
public boolean computeScopeFlags(java.util.EnumSet<IRFlags> flags)
public Instr clone(CloneInfo ii)
Instr
public void encode(IRWriterEncoder e)
encode
in class ResultBaseInstr
public static GetGlobalVariableInstr decode(IRReaderDecoder d)
public java.lang.Object interpret(ThreadContext context, StaticScope currScope, DynamicScope currDynScope, IRubyObject self, java.lang.Object[] temp)
Copyright © 2001-2022 JRuby. All Rights Reserved.