public class ReceivePostReqdArgInstr extends ReceiveArgBase implements FixedArityInstr
Modifier and Type | Field and Description |
---|---|
int |
optArgsCount
The method/block parameter list has a maximum of this many optional arguments
|
int |
postReqdArgsCount
The method/block parameter list has these many required parameters after opt+rest args
|
int |
preReqdArgsCount
The method/block parameter list has these many required parameters before opt+rest args
|
boolean |
restArg
Does this method/block accept a rest argument
|
argIndex
result
EMPTY_OPERANDS
Constructor and Description |
---|
ReceivePostReqdArgInstr(Variable result,
int argIndex,
int preReqdArgsCount,
int optArgCount,
boolean restArg,
int postReqdArgsCount) |
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 ReceivePostReqdArgInstr |
decode(IRReaderDecoder d) |
void |
encode(IRWriterEncoder e) |
IRubyObject |
receivePostReqdArg(ThreadContext context,
IRubyObject[] args,
boolean acceptsKeywordArgument) |
java.lang.String[] |
toStringNonOperandArgs() |
void |
visit(IRVisitor visitor) |
getArgIndex, receiveArg
getOperands, setOperand
getResult, updateResult
canBeDeletedFromScope, canRaiseException, cloneOperands, computeScopeFlags, dumpableFields, getOperation, getUsedVariables, hasSideEffects, interpret, interpretAndGetNewIPC, isDead, isDeletable, markDead, renameVars, simplifyAndGetResult, simplifyOperands, toString, transfersControl
public final int preReqdArgsCount
public final int optArgsCount
public final boolean restArg
public final int postReqdArgsCount
public ReceivePostReqdArgInstr(Variable result, int argIndex, int preReqdArgsCount, int optArgCount, boolean restArg, int postReqdArgsCount)
public java.lang.String[] toStringNonOperandArgs()
toStringNonOperandArgs
in class ReceiveArgBase
public Instr clone(CloneInfo info)
Instr
public void encode(IRWriterEncoder e)
encode
in class ResultBaseInstr
public static ReceivePostReqdArgInstr decode(IRReaderDecoder d)
public IRubyObject receivePostReqdArg(ThreadContext context, IRubyObject[] args, boolean acceptsKeywordArgument)
Copyright © 2001-2022 JRuby. All Rights Reserved.