public class org.jruby.ir.instructions.CheckArityInstr extends org.jruby.ir.instructions.NoOperandInstr implements org.jruby.ir.instructions.FixedArityInstr
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.ir.instructions.CheckArityInstr
super_class: org.jruby.ir.instructions.NoOperandInstr
{
public final int required;
descriptor: I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
public final int opt;
descriptor: I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
public final boolean rest;
descriptor: Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
public final boolean receivesKeywords;
descriptor: Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
public final int restKey;
descriptor: I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
public void <init>(int, int, boolean, boolean, int);
descriptor: (IIZZI)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
getstatic org.jruby.ir.Operation.CHECK_ARITY:Lorg/jruby/ir/Operation;
invokespecial org.jruby.ir.instructions.NoOperandInstr.<init>:(Lorg/jruby/ir/Operation;)V
1: aload 0
iload 1
putfield org.jruby.ir.instructions.CheckArityInstr.required:I
2: aload 0
iload 2
putfield org.jruby.ir.instructions.CheckArityInstr.opt:I
3: aload 0
iload 3
putfield org.jruby.ir.instructions.CheckArityInstr.rest:Z
4: aload 0
iload 4
putfield org.jruby.ir.instructions.CheckArityInstr.receivesKeywords:Z
5: aload 0
iload 5
putfield org.jruby.ir.instructions.CheckArityInstr.restKey:I
6: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/jruby/ir/instructions/CheckArityInstr;
0 7 1 required I
0 7 2 opt I
0 7 3 rest Z
0 7 4 receivesKeywords Z
0 7 5 restKey I
MethodParameters:
Name Flags
required
opt
rest
receivesKeywords
restKey
public java.lang.String[] toStringNonOperandArgs();
descriptor: ()[Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: iconst_4
anewarray java.lang.String
dup
iconst_0
new java.lang.StringBuilder
dup
ldc "req: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.jruby.ir.instructions.CheckArityInstr.required:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aastore
dup
iconst_1
new java.lang.StringBuilder
dup
ldc "opt: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.jruby.ir.instructions.CheckArityInstr.opt:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aastore
dup
iconst_2
new java.lang.StringBuilder
dup
ldc "*r: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.jruby.ir.instructions.CheckArityInstr.rest:Z
invokevirtual java.lang.StringBuilder.append:(Z)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aastore
dup
iconst_3
new java.lang.StringBuilder
dup
ldc "kw: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.jruby.ir.instructions.CheckArityInstr.receivesKeywords:Z
invokevirtual java.lang.StringBuilder.append:(Z)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aastore
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/instructions/CheckArityInstr;
public org.jruby.ir.instructions.Instr clone(org.jruby.ir.transformations.inlining.CloneInfo);
descriptor: (Lorg/jruby/ir/transformations/inlining/CloneInfo;)Lorg/jruby/ir/instructions/Instr;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=4, args_size=2
start local 0 start local 1 0: aload 1
instanceof org.jruby.ir.transformations.inlining.SimpleCloneInfo
ifeq 1
new org.jruby.ir.instructions.CheckArityInstr
dup
aload 0
getfield org.jruby.ir.instructions.CheckArityInstr.required:I
aload 0
getfield org.jruby.ir.instructions.CheckArityInstr.opt:I
aload 0
getfield org.jruby.ir.instructions.CheckArityInstr.rest:Z
aload 0
getfield org.jruby.ir.instructions.CheckArityInstr.receivesKeywords:Z
aload 0
getfield org.jruby.ir.instructions.CheckArityInstr.restKey:I
invokespecial org.jruby.ir.instructions.CheckArityInstr.<init>:(IIZZI)V
areturn
1: StackMap locals:
StackMap stack:
aload 1
checkcast org.jruby.ir.transformations.inlining.InlineCloneInfo
astore 2
start local 2 2: aload 2
invokevirtual org.jruby.ir.transformations.inlining.InlineCloneInfo.canMapArgsStatically:()Z
ifeq 7
3: aload 2
invokevirtual org.jruby.ir.transformations.inlining.InlineCloneInfo.getArgsCount:()I
istore 3
start local 3 4: iload 3
aload 0
getfield org.jruby.ir.instructions.CheckArityInstr.required:I
if_icmplt 5
aload 0
getfield org.jruby.ir.instructions.CheckArityInstr.rest:Z
ifne 6
iload 3
aload 0
getfield org.jruby.ir.instructions.CheckArityInstr.required:I
aload 0
getfield org.jruby.ir.instructions.CheckArityInstr.opt:I
iadd
if_icmple 6
5: StackMap locals: org.jruby.ir.transformations.inlining.InlineCloneInfo int
StackMap stack:
new org.jruby.ir.instructions.RaiseArgumentErrorInstr
dup
aload 0
getfield org.jruby.ir.instructions.CheckArityInstr.required:I
aload 0
getfield org.jruby.ir.instructions.CheckArityInstr.opt:I
aload 0
getfield org.jruby.ir.instructions.CheckArityInstr.rest:Z
iload 3
invokespecial org.jruby.ir.instructions.RaiseArgumentErrorInstr.<init>:(IIZI)V
areturn
6: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 3 7: StackMap locals:
StackMap stack:
new org.jruby.ir.instructions.CheckArgsArrayArityInstr
dup
aload 2
invokevirtual org.jruby.ir.transformations.inlining.InlineCloneInfo.getArgs:()Lorg/jruby/ir/operands/Operand;
aload 0
getfield org.jruby.ir.instructions.CheckArityInstr.required:I
aload 0
getfield org.jruby.ir.instructions.CheckArityInstr.opt:I
aload 0
getfield org.jruby.ir.instructions.CheckArityInstr.rest:Z
invokespecial org.jruby.ir.instructions.CheckArgsArrayArityInstr.<init>:(Lorg/jruby/ir/operands/Operand;IIZ)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/jruby/ir/instructions/CheckArityInstr;
0 8 1 info Lorg/jruby/ir/transformations/inlining/CloneInfo;
2 8 2 ii Lorg/jruby/ir/transformations/inlining/InlineCloneInfo;
4 7 3 numArgs I
MethodParameters:
Name Flags
info
public void encode(org.jruby.ir.persistence.IRWriterEncoder);
descriptor: (Lorg/jruby/ir/persistence/IRWriterEncoder;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial org.jruby.ir.instructions.NoOperandInstr.encode:(Lorg/jruby/ir/persistence/IRWriterEncoder;)V
1: aload 1
aload 0
getfield org.jruby.ir.instructions.CheckArityInstr.required:I
invokeinterface org.jruby.ir.persistence.IRWriterEncoder.encode:(I)V
2: aload 1
aload 0
getfield org.jruby.ir.instructions.CheckArityInstr.opt:I
invokeinterface org.jruby.ir.persistence.IRWriterEncoder.encode:(I)V
3: aload 1
aload 0
getfield org.jruby.ir.instructions.CheckArityInstr.rest:Z
invokeinterface org.jruby.ir.persistence.IRWriterEncoder.encode:(Z)V
4: aload 1
aload 0
getfield org.jruby.ir.instructions.CheckArityInstr.receivesKeywords:Z
invokeinterface org.jruby.ir.persistence.IRWriterEncoder.encode:(Z)V
5: aload 1
aload 0
getfield org.jruby.ir.instructions.CheckArityInstr.restKey:I
invokeinterface org.jruby.ir.persistence.IRWriterEncoder.encode:(I)V
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/jruby/ir/instructions/CheckArityInstr;
0 7 1 e Lorg/jruby/ir/persistence/IRWriterEncoder;
MethodParameters:
Name Flags
e
public static org.jruby.ir.instructions.CheckArityInstr decode(org.jruby.ir.persistence.IRReaderDecoder);
descriptor: (Lorg/jruby/ir/persistence/IRReaderDecoder;)Lorg/jruby/ir/instructions/CheckArityInstr;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=1, args_size=1
start local 0 0: new org.jruby.ir.instructions.CheckArityInstr
dup
aload 0
invokeinterface org.jruby.ir.persistence.IRReaderDecoder.decodeInt:()I
aload 0
invokeinterface org.jruby.ir.persistence.IRReaderDecoder.decodeInt:()I
aload 0
invokeinterface org.jruby.ir.persistence.IRReaderDecoder.decodeBoolean:()Z
aload 0
invokeinterface org.jruby.ir.persistence.IRReaderDecoder.decodeBoolean:()Z
aload 0
invokeinterface org.jruby.ir.persistence.IRReaderDecoder.decodeInt:()I
invokespecial org.jruby.ir.instructions.CheckArityInstr.<init>:(IIZZI)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 d Lorg/jruby/ir/persistence/IRReaderDecoder;
MethodParameters:
Name Flags
d
public void checkArity(org.jruby.runtime.ThreadContext, org.jruby.parser.StaticScope, java.lang.Object[], org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/parser/StaticScope;[Ljava/lang/Object;Lorg/jruby/runtime/Block;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 1
aload 2
aload 3
aload 0
getfield org.jruby.ir.instructions.CheckArityInstr.required:I
aload 0
getfield org.jruby.ir.instructions.CheckArityInstr.opt:I
aload 0
getfield org.jruby.ir.instructions.CheckArityInstr.rest:Z
aload 0
getfield org.jruby.ir.instructions.CheckArityInstr.receivesKeywords:Z
aload 0
getfield org.jruby.ir.instructions.CheckArityInstr.restKey:I
aload 4
invokestatic org.jruby.ir.runtime.IRRuntimeHelpers.checkArity:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/parser/StaticScope;[Ljava/lang/Object;IIZZILorg/jruby/runtime/Block;)V
1: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ir/instructions/CheckArityInstr;
0 2 1 context Lorg/jruby/runtime/ThreadContext;
0 2 2 scope Lorg/jruby/parser/StaticScope;
0 2 3 args [Ljava/lang/Object;
0 2 4 block Lorg/jruby/runtime/Block;
MethodParameters:
Name Flags
context
scope
args
block
public void visit(org.jruby.ir.IRVisitor);
descriptor: (Lorg/jruby/ir/IRVisitor;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokevirtual org.jruby.ir.IRVisitor.CheckArityInstr:(Lorg/jruby/ir/instructions/CheckArityInstr;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ir/instructions/CheckArityInstr;
0 2 1 visitor Lorg/jruby/ir/IRVisitor;
MethodParameters:
Name Flags
visitor
}
SourceFile: "CheckArityInstr.java"