public class YieldInstr extends ResultBaseInstr implements FixedArityInstr
| Modifier and Type | Field and Description |
|---|---|
boolean |
unwrapArray |
resultEMPTY_OPERANDS, operands| Constructor and Description |
|---|
YieldInstr(Variable result,
Operand block,
Operand arg,
boolean unwrapArray) |
| 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 YieldInstr |
decode(IRReaderDecoder d) |
void |
encode(IRWriterEncoder e) |
Operand |
getBlockArg() |
Operand |
getYieldArg() |
Object |
interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
boolean |
isUnwrapArray() |
String[] |
toStringNonOperandArgs() |
void |
visit(IRVisitor visitor) |
getResult, updateResultcanBeDeleted, canRaiseException, cloneOperands, computeScopeFlags, getIPC, getOperands, getOperation, getRPC, getUsedVariables, hasSideEffects, interpretAndGetNewIPC, isDead, markDead, renameVars, setIPC, setRPC, simplifyAndGetResult, simplifyOperands, toString, transfersControlpublic Operand getBlockArg()
public Operand getYieldArg()
public Instr clone(CloneInfo ii)
Instrpublic String[] toStringNonOperandArgs()
toStringNonOperandArgs in class Instrpublic boolean isUnwrapArray()
public void encode(IRWriterEncoder e)
encode in class ResultBaseInstrpublic static YieldInstr decode(IRReaderDecoder d)
public Object interpret(ThreadContext context, StaticScope currScope, DynamicScope currDynScope, IRubyObject self, Object[] temp)
Copyright © 2001-2015 JRuby. All Rights Reserved.