Package org.jruby.ir.instructions
Class CheckArityInstr
java.lang.Object
org.jruby.ir.instructions.Instr
org.jruby.ir.instructions.OneOperandInstr
org.jruby.ir.instructions.CheckArityInstr
- All Implemented Interfaces:
FixedArityInstr
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intfinal intfinal booleanfinal intFields inherited from class org.jruby.ir.instructions.Instr
EMPTY_OPERANDS -
Constructor Summary
ConstructorsConstructorDescriptionCheckArityInstr(int required, int opt, boolean rest, int restKey, Operand keywords) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckArity(ThreadContext context, IRubyObject self, StaticScope scope, DynamicScope dynamicScope, IRubyObject[] args, Block block, Object[] temp) 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.OneOperandInstr
getOperand1, getOperands, setOperand, setOperand1Methods inherited from class org.jruby.ir.instructions.Instr
canBeDeletedFromScope, canRaiseException, cloneOperands, computeScopeFlags, dumpableFields, getOperation, getUsedVariables, hasSideEffects, interpret, interpretAndGetNewIPC, isDead, isDeletable, markDead, renameVars, simplifyInstr, simplifyOperands, simplifyOperands, toString, transfersControl
-
Field Details
-
required
public final int required -
opt
public final int opt -
rest
public final boolean rest -
restKey
public final int restKey
-
-
Constructor Details
-
CheckArityInstr
-
-
Method Details
-
getKeywords
-
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
public void checkArity(ThreadContext context, IRubyObject self, StaticScope scope, DynamicScope dynamicScope, IRubyObject[] args, Block block, Object[] temp) -
visit
-