class org.jruby.RubyEnumerable$35 implements org.jruby.RubyEnumerator$SizeFn
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.jruby.RubyEnumerable$35
super_class: java.lang.Object
{
private final org.jruby.runtime.ThreadContext val$context;
descriptor: Lorg/jruby/runtime/ThreadContext;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final org.jruby.runtime.builtin.IRubyObject val$self;
descriptor: Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
void <init>(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 // org.jruby.RubyEnumerable$35 this
0: .line 1379
aload 0 /* this */
aload 1
putfield org.jruby.RubyEnumerable$35.val$context:Lorg/jruby/runtime/ThreadContext;
aload 0 /* this */
aload 2
putfield org.jruby.RubyEnumerable$35.val$self:Lorg/jruby/runtime/builtin/IRubyObject;
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
return
end local 0 // org.jruby.RubyEnumerable$35 this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyEnumerable$35;
MethodParameters:
Name Flags
val$context final
val$self final
public org.jruby.runtime.builtin.IRubyObject size(org.jruby.runtime.builtin.IRubyObject[]);
descriptor: ([Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=8, args_size=2
start local 0 // org.jruby.RubyEnumerable$35 this
start local 1 // org.jruby.runtime.builtin.IRubyObject[] args
0: .line 1382
aload 0 /* this */
getfield org.jruby.RubyEnumerable$35.val$context:Lorg/jruby/runtime/ThreadContext;
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 2 /* runtime */
start local 2 // org.jruby.Ruby runtime
1: .line 1383
getstatic org.jruby.RubyEnumerable.$assertionsDisabled:Z
ifne 3
aload 1 /* args */
ifnull 2
aload 1 /* args */
arraylength
ifle 2
aload 1 /* args */
iconst_0
aaload
instanceof org.jruby.RubyNumeric
ifne 3
StackMap locals: org.jruby.Ruby
StackMap stack:
2: new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: .line 1384
StackMap locals:
StackMap stack:
aload 1 /* args */
iconst_0
aaload
checkcast org.jruby.RubyNumeric
invokevirtual org.jruby.RubyNumeric.getLongValue:()J
lstore 3 /* consSize */
start local 3 // long consSize
4: .line 1385
lload 3 /* consSize */
lconst_0
lcmp
ifgt 6
5: .line 1386
aload 2 /* runtime */
ldc "invalid size"
invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
6: .line 1389
StackMap locals: long
StackMap stack:
aload 0 /* this */
getfield org.jruby.RubyEnumerable$35.val$context:Lorg/jruby/runtime/ThreadContext;
aload 0 /* this */
getfield org.jruby.RubyEnumerable$35.val$self:Lorg/jruby/runtime/builtin/IRubyObject;
invokestatic org.jruby.RubyEnumerable.enumSizeFn:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyEnumerator$SizeFn;
aload 1 /* args */
invokeinterface org.jruby.RubyEnumerator$SizeFn.size:([Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 5 /* size */
start local 5 // org.jruby.runtime.builtin.IRubyObject size
7: .line 1390
aload 5 /* size */
ifnull 8
aload 5 /* size */
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifeq 9
8: .line 1391
StackMap locals: org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 2 /* runtime */
invokevirtual org.jruby.Ruby.getNil:()Lorg/jruby/runtime/builtin/IRubyObject;
areturn
9: .line 1394
StackMap locals:
StackMap stack:
aload 5 /* size */
aload 0 /* this */
getfield org.jruby.RubyEnumerable$35.val$context:Lorg/jruby/runtime/ThreadContext;
ldc "+"
aload 2 /* runtime */
lconst_1
lload 3 /* consSize */
lsub
invokestatic org.jruby.RubyFixnum.newFixnum:(Lorg/jruby/Ruby;J)Lorg/jruby/RubyFixnum;
invokeinterface org.jruby.runtime.builtin.IRubyObject.callMethod:(Lorg/jruby/runtime/ThreadContext;Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 6 /* n */
start local 6 // org.jruby.runtime.builtin.IRubyObject n
10: .line 1395
aload 2 /* runtime */
invokestatic org.jruby.RubyFixnum.zero:(Lorg/jruby/Ruby;)Lorg/jruby/RubyFixnum;
astore 7 /* zero */
start local 7 // org.jruby.RubyFixnum zero
11: .line 1396
aload 0 /* this */
getfield org.jruby.RubyEnumerable$35.val$context:Lorg/jruby/runtime/ThreadContext;
aload 6 /* n */
aload 0 /* this */
getfield org.jruby.RubyEnumerable$35.val$context:Lorg/jruby/runtime/ThreadContext;
ldc "<=>"
aload 7 /* zero */
invokeinterface org.jruby.runtime.builtin.IRubyObject.callMethod:(Lorg/jruby/runtime/ThreadContext;Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
aload 6 /* n */
aload 7 /* zero */
invokestatic org.jruby.RubyComparable.cmpint:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)I
iconst_m1
if_icmpne 12
aload 7 /* zero */
goto 13
StackMap locals: org.jruby.runtime.builtin.IRubyObject org.jruby.RubyFixnum
StackMap stack:
12: aload 6 /* n */
StackMap locals:
StackMap stack: org.jruby.runtime.builtin.IRubyObject
13: areturn
end local 7 // org.jruby.RubyFixnum zero
end local 6 // org.jruby.runtime.builtin.IRubyObject n
end local 5 // org.jruby.runtime.builtin.IRubyObject size
end local 3 // long consSize
end local 2 // org.jruby.Ruby runtime
end local 1 // org.jruby.runtime.builtin.IRubyObject[] args
end local 0 // org.jruby.RubyEnumerable$35 this
LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/jruby/RubyEnumerable$35;
0 14 1 args [Lorg/jruby/runtime/builtin/IRubyObject;
1 14 2 runtime Lorg/jruby/Ruby;
4 14 3 consSize J
7 14 5 size Lorg/jruby/runtime/builtin/IRubyObject;
10 14 6 n Lorg/jruby/runtime/builtin/IRubyObject;
11 14 7 zero Lorg/jruby/RubyFixnum;
MethodParameters:
Name Flags
args
}
SourceFile: "RubyEnumerable.java"
EnclosingMethod: org.jruby.RubyEnumerable.eachConsSizeFn:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyEnumerator$SizeFn;
NestHost: org.jruby.RubyEnumerable
InnerClasses:
org.jruby.RubyEnumerable$35
public abstract SizeFn = org.jruby.RubyEnumerator$SizeFn of org.jruby.RubyEnumerator