public class org.jruby.ir.instructions.ReceiveOptArgInstr extends org.jruby.ir.instructions.ReceiveArgBase 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.ReceiveOptArgInstr
super_class: org.jruby.ir.instructions.ReceiveArgBase
{
public final int preArgs;
descriptor: I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
public final int requiredArgs;
descriptor: I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
public void <init>(org.jruby.ir.operands.Variable, int, int, int);
descriptor: (Lorg/jruby/ir/operands/Variable;III)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
getstatic org.jruby.ir.Operation.RECV_OPT_ARG:Lorg/jruby/ir/Operation;
aload 1
iload 4
invokespecial org.jruby.ir.instructions.ReceiveArgBase.<init>:(Lorg/jruby/ir/Operation;Lorg/jruby/ir/operands/Variable;I)V
1: aload 0
iload 3
putfield org.jruby.ir.instructions.ReceiveOptArgInstr.preArgs:I
2: aload 0
iload 2
putfield org.jruby.ir.instructions.ReceiveOptArgInstr.requiredArgs:I
3: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/ir/instructions/ReceiveOptArgInstr;
0 4 1 result Lorg/jruby/ir/operands/Variable;
0 4 2 requiredArgs I
0 4 3 preArgs I
0 4 4 optArgIndex I
MethodParameters:
Name Flags
result
requiredArgs
preArgs
optArgIndex
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_3
anewarray java.lang.String
dup
iconst_0
new java.lang.StringBuilder
dup
ldc "index:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual org.jruby.ir.instructions.ReceiveOptArgInstr.getArgIndex:()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 "req: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.jruby.ir.instructions.ReceiveOptArgInstr.requiredArgs: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 "pre: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.jruby.ir.instructions.ReceiveOptArgInstr.preArgs:I
invokevirtual java.lang.StringBuilder.append:(I)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/ReceiveOptArgInstr;
public int getPreArgs();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ir.instructions.ReceiveOptArgInstr.preArgs:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/instructions/ReceiveOptArgInstr;
public int getRequiredArgs();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ir.instructions.ReceiveOptArgInstr.requiredArgs:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/instructions/ReceiveOptArgInstr;
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=6, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.ir.instructions.ReceiveOptArgInstr.argIndex:I
istore 2
start local 2 1: aload 1
instanceof org.jruby.ir.transformations.inlining.SimpleCloneInfo
ifeq 2
new org.jruby.ir.instructions.ReceiveOptArgInstr
dup
aload 1
aload 0
getfield org.jruby.ir.instructions.ReceiveOptArgInstr.result:Lorg/jruby/ir/operands/Variable;
invokevirtual org.jruby.ir.transformations.inlining.CloneInfo.getRenamedVariable:(Lorg/jruby/ir/operands/Variable;)Lorg/jruby/ir/operands/Variable;
aload 0
getfield org.jruby.ir.instructions.ReceiveOptArgInstr.requiredArgs:I
aload 0
getfield org.jruby.ir.instructions.ReceiveOptArgInstr.preArgs:I
iload 2
invokespecial org.jruby.ir.instructions.ReceiveOptArgInstr.<init>:(Lorg/jruby/ir/operands/Variable;III)V
areturn
2: StackMap locals: int
StackMap stack:
aload 1
checkcast org.jruby.ir.transformations.inlining.InlineCloneInfo
astore 3
start local 3 3: iload 2
aload 0
getfield org.jruby.ir.instructions.ReceiveOptArgInstr.requiredArgs:I
iadd
istore 4
start local 4 4: aload 3
invokevirtual org.jruby.ir.transformations.inlining.InlineCloneInfo.canMapArgsStatically:()Z
ifeq 9
5: aload 3
invokevirtual org.jruby.ir.transformations.inlining.InlineCloneInfo.getArgsCount:()I
istore 5
start local 5 6: new org.jruby.ir.instructions.CopyInstr
dup
aload 3
aload 0
getfield org.jruby.ir.instructions.ReceiveOptArgInstr.result:Lorg/jruby/ir/operands/Variable;
invokevirtual org.jruby.ir.transformations.inlining.InlineCloneInfo.getRenamedVariable:(Lorg/jruby/ir/operands/Variable;)Lorg/jruby/ir/operands/Variable;
iload 4
iload 5
if_icmpge 7
aload 3
aload 0
getfield org.jruby.ir.instructions.ReceiveOptArgInstr.preArgs:I
iload 2
iadd
invokevirtual org.jruby.ir.transformations.inlining.InlineCloneInfo.getArg:(I)Lorg/jruby/ir/operands/Operand;
goto 8
StackMap locals: org.jruby.ir.instructions.ReceiveOptArgInstr org.jruby.ir.transformations.inlining.CloneInfo int org.jruby.ir.transformations.inlining.InlineCloneInfo int int
StackMap stack: new 6 new 6 org.jruby.ir.operands.Variable
7: getstatic org.jruby.ir.operands.UndefinedValue.UNDEFINED:Lorg/jruby/ir/operands/UndefinedValue;
StackMap locals: org.jruby.ir.instructions.ReceiveOptArgInstr org.jruby.ir.transformations.inlining.CloneInfo int org.jruby.ir.transformations.inlining.InlineCloneInfo int int
StackMap stack: new 6 new 6 org.jruby.ir.operands.Variable org.jruby.ir.operands.Operand
8: invokespecial org.jruby.ir.instructions.CopyInstr.<init>:(Lorg/jruby/ir/operands/Variable;Lorg/jruby/ir/operands/Operand;)V
areturn
end local 5 9: StackMap locals:
StackMap stack:
new org.jruby.ir.instructions.OptArgMultipleAsgnInstr
dup
aload 3
aload 0
getfield org.jruby.ir.instructions.ReceiveOptArgInstr.result:Lorg/jruby/ir/operands/Variable;
invokevirtual org.jruby.ir.transformations.inlining.InlineCloneInfo.getRenamedVariable:(Lorg/jruby/ir/operands/Variable;)Lorg/jruby/ir/operands/Variable;
aload 3
invokevirtual org.jruby.ir.transformations.inlining.InlineCloneInfo.getArgs:()Lorg/jruby/ir/operands/Operand;
aload 0
getfield org.jruby.ir.instructions.ReceiveOptArgInstr.preArgs:I
iload 2
iadd
iload 4
invokespecial org.jruby.ir.instructions.OptArgMultipleAsgnInstr.<init>:(Lorg/jruby/ir/operands/Variable;Lorg/jruby/ir/operands/Operand;II)V
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/jruby/ir/instructions/ReceiveOptArgInstr;
0 10 1 info Lorg/jruby/ir/transformations/inlining/CloneInfo;
1 10 2 optArgIndex I
3 10 3 ii Lorg/jruby/ir/transformations/inlining/InlineCloneInfo;
4 10 4 minReqdArgs I
6 9 5 n 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.ReceiveArgBase.encode:(Lorg/jruby/ir/persistence/IRWriterEncoder;)V
1: aload 1
aload 0
getfield org.jruby.ir.instructions.ReceiveOptArgInstr.requiredArgs:I
invokeinterface org.jruby.ir.persistence.IRWriterEncoder.encode:(I)V
2: aload 1
aload 0
invokevirtual org.jruby.ir.instructions.ReceiveOptArgInstr.getPreArgs:()I
invokeinterface org.jruby.ir.persistence.IRWriterEncoder.encode:(I)V
3: aload 1
aload 0
invokevirtual org.jruby.ir.instructions.ReceiveOptArgInstr.getArgIndex:()I
invokeinterface org.jruby.ir.persistence.IRWriterEncoder.encode:(I)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/ir/instructions/ReceiveOptArgInstr;
0 5 1 e Lorg/jruby/ir/persistence/IRWriterEncoder;
MethodParameters:
Name Flags
e
public static org.jruby.ir.instructions.ReceiveOptArgInstr decode(org.jruby.ir.persistence.IRReaderDecoder);
descriptor: (Lorg/jruby/ir/persistence/IRReaderDecoder;)Lorg/jruby/ir/instructions/ReceiveOptArgInstr;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: new org.jruby.ir.instructions.ReceiveOptArgInstr
dup
aload 0
invokeinterface org.jruby.ir.persistence.IRReaderDecoder.decodeVariable:()Lorg/jruby/ir/operands/Variable;
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.decodeInt:()I
invokespecial org.jruby.ir.instructions.ReceiveOptArgInstr.<init>:(Lorg/jruby/ir/operands/Variable;III)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 org.jruby.runtime.builtin.IRubyObject receiveArg(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject[], boolean);
descriptor: (Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;Z)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
aload 2
aload 0
getfield org.jruby.ir.instructions.ReceiveOptArgInstr.requiredArgs:I
aload 0
getfield org.jruby.ir.instructions.ReceiveOptArgInstr.preArgs:I
aload 0
getfield org.jruby.ir.instructions.ReceiveOptArgInstr.argIndex:I
iload 3
invokestatic org.jruby.ir.runtime.IRRuntimeHelpers.receiveOptArg:(Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;IIIZ)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/instructions/ReceiveOptArgInstr;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
0 1 3 acceptsKeywordArgument Z
MethodParameters:
Name Flags
context
args
acceptsKeywordArgument
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.ReceiveOptArgInstr:(Lorg/jruby/ir/instructions/ReceiveOptArgInstr;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ir/instructions/ReceiveOptArgInstr;
0 2 1 visitor Lorg/jruby/ir/IRVisitor;
MethodParameters:
Name Flags
visitor
}
SourceFile: "ReceiveOptArgInstr.java"