public class ReceiveOptArgInstr extends ReceiveArgBase implements FixedArityInstr
| Modifier and Type | Field and Description |
|---|---|
int |
preArgs
opt args follow pre args
|
int |
requiredArgs
total number of required args (pre + post)
|
argIndexresultEMPTY_OPERANDS, operands| Constructor and Description |
|---|
ReceiveOptArgInstr(Variable result,
int requiredArgs,
int preArgs,
int optArgIndex) |
| Modifier and Type | Method and Description |
|---|---|
Instr |
clone(CloneInfo info)
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 ReceiveOptArgInstr |
decode(IRReaderDecoder d) |
void |
encode(IRWriterEncoder e) |
int |
getPreArgs() |
int |
getRequiredArgs() |
IRubyObject |
receiveArg(ThreadContext context,
IRubyObject[] args,
boolean acceptsKeywordArgument) |
String[] |
toStringNonOperandArgs() |
void |
visit(IRVisitor visitor) |
getArgIndexgetResult, updateResultcanBeDeleted, canRaiseException, cloneOperands, computeScopeFlags, getIPC, getOperands, getOperation, getRPC, getUsedVariables, hasSideEffects, interpret, interpretAndGetNewIPC, isDead, markDead, renameVars, setIPC, setRPC, simplifyAndGetResult, simplifyOperands, toString, transfersControlpublic final int preArgs
public final int requiredArgs
public ReceiveOptArgInstr(Variable result, int requiredArgs, int preArgs, int optArgIndex)
public String[] toStringNonOperandArgs()
toStringNonOperandArgs in class Instrpublic int getPreArgs()
public int getRequiredArgs()
public Instr clone(CloneInfo info)
Instrpublic void encode(IRWriterEncoder e)
encode in class ResultBaseInstrpublic static ReceiveOptArgInstr decode(IRReaderDecoder d)
public IRubyObject receiveArg(ThreadContext context, IRubyObject[] args, boolean acceptsKeywordArgument)
receiveArg in class ReceiveArgBaseCopyright © 2001-2015 JRuby. All Rights Reserved.