Package org.jruby.ir.instructions
Class CheckArityInstr
java.lang.Object
org.jruby.ir.instructions.Instr
org.jruby.ir.instructions.NoOperandInstr
org.jruby.ir.instructions.CheckArityInstr
- All Implemented Interfaces:
FixedArityInstr
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intfinal booleanfinal intfinal booleanfinal intFields inherited from class org.jruby.ir.instructions.Instr
EMPTY_OPERANDS -
Constructor Summary
ConstructorsConstructorDescriptionCheckArityInstr(int required, int opt, boolean rest, boolean receivesKeywords, int restKey) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckArity(ThreadContext context, StaticScope scope, Object[] args, Block block) 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 CheckArityInstrvoidString[]voidMethods inherited from class org.jruby.ir.instructions.NoOperandInstr
getOperands, setOperandMethods inherited from class org.jruby.ir.instructions.Instr
canBeDeletedFromScope, canRaiseException, cloneOperands, computeScopeFlags, dumpableFields, getOperation, getUsedVariables, hasSideEffects, interpret, interpretAndGetNewIPC, isDead, isDeletable, markDead, renameVars, simplifyAndGetResult, simplifyOperands, toString, transfersControl
-
Field Details
-
required
public final int required -
opt
public final int opt -
rest
public final boolean rest -
receivesKeywords
public final boolean receivesKeywords -
restKey
public final int restKey
-
-
Constructor Details
-
CheckArityInstr
public CheckArityInstr(int required, int opt, boolean rest, boolean receivesKeywords, int restKey)
-
-
Method Details
-
toStringNonOperandArgs
- Overrides:
toStringNonOperandArgsin classInstr
-
clone
Description copied from class:InstrClone 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). This might renaming variables and labels to eliminate naming conflicts. The implementation might vary on the cloning mode. -
encode
-
decode
-
checkArity
-
visit
-