public class ReceiveRestArgInstr extends ReceiveArgBase implements FixedArityInstr
Modifier and Type | Field and Description |
---|---|
int |
required
Number of arguments already accounted for
|
argIndex
result
EMPTY_OPERANDS, operands
Constructor and Description |
---|
ReceiveRestArgInstr(Variable result,
int required,
int argIndex) |
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 ReceiveRestArgInstr |
decode(IRReaderDecoder d) |
void |
encode(IRWriterEncoder e) |
IRubyObject |
receiveArg(ThreadContext context,
IRubyObject[] args,
boolean acceptsKeywordArguments) |
String[] |
toStringNonOperandArgs() |
void |
visit(IRVisitor visitor) |
getArgIndex
getResult, updateResult
canBeDeleted, canRaiseException, cloneOperands, computeScopeFlags, getIPC, getOperands, getOperation, getRPC, getUsedVariables, hasSideEffects, interpret, interpretAndGetNewIPC, isDead, markDead, renameVars, setIPC, setRPC, simplifyAndGetResult, simplifyOperands, toString, transfersControl
public ReceiveRestArgInstr(Variable result, int required, int argIndex)
public String[] toStringNonOperandArgs()
toStringNonOperandArgs
in class Instr
public Instr clone(CloneInfo info)
Instr
public void encode(IRWriterEncoder e)
encode
in class ResultBaseInstr
public static ReceiveRestArgInstr decode(IRReaderDecoder d)
public IRubyObject receiveArg(ThreadContext context, IRubyObject[] args, boolean acceptsKeywordArguments)
receiveArg
in class ReceiveArgBase
Copyright © 2001-2015 JRuby. All Rights Reserved.