public class CheckArityInstr extends NoOperandInstr implements FixedArityInstr
Modifier and Type | Field and Description |
---|---|
int |
opt |
boolean |
receivesKeywords |
int |
required |
boolean |
rest |
int |
restKey |
EMPTY_OPERANDS
Constructor and Description |
---|
CheckArityInstr(int required,
int opt,
boolean rest,
boolean receivesKeywords,
int restKey) |
Modifier and Type | Method and Description |
---|---|
void |
checkArity(ThreadContext context,
StaticScope scope,
java.lang.Object[] args,
Block block) |
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 CheckArityInstr |
decode(IRReaderDecoder d) |
void |
encode(IRWriterEncoder e) |
java.lang.String[] |
toStringNonOperandArgs() |
void |
visit(IRVisitor visitor) |
getOperands, setOperand
canBeDeletedFromScope, canRaiseException, cloneOperands, computeScopeFlags, dumpableFields, getOperation, getUsedVariables, hasSideEffects, interpret, interpretAndGetNewIPC, isDead, isDeletable, markDead, renameVars, simplifyAndGetResult, simplifyOperands, toString, transfersControl
public final int required
public final int opt
public final boolean rest
public final boolean receivesKeywords
public final int restKey
public CheckArityInstr(int required, int opt, boolean rest, boolean receivesKeywords, int restKey)
public java.lang.String[] toStringNonOperandArgs()
toStringNonOperandArgs
in class Instr
public Instr clone(CloneInfo info)
Instr
public void encode(IRWriterEncoder e)
public static CheckArityInstr decode(IRReaderDecoder d)
public void checkArity(ThreadContext context, StaticScope scope, java.lang.Object[] args, Block block)
Copyright © 2001-2022 JRuby. All Rights Reserved.