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,
Object[] args,
Block.Type blockType) |
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) |
String[] |
toStringNonOperandArgs() |
void |
visit(IRVisitor visitor) |
getOperands, setOperandcanBeDeletedFromScope, canRaiseException, cloneOperands, computeScopeFlags, getIPC, getOperation, getRPC, getUsedVariables, hasSideEffects, interpret, interpretAndGetNewIPC, isDead, isDeletable, markDead, renameVars, setIPC, setRPC, simplifyAndGetResult, simplifyOperands, toString, transfersControlpublic 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 String[] toStringNonOperandArgs()
toStringNonOperandArgs in class Instrpublic Instr clone(CloneInfo info)
Instrpublic void encode(IRWriterEncoder e)
public static CheckArityInstr decode(IRReaderDecoder d)
public void checkArity(ThreadContext context, Object[] args, Block.Type blockType)
Copyright © 2001-2015 JRuby. All Rights Reserved.