public class org.jruby.RubyArray$DefaultComparator implements java.util.Comparator<org.jruby.runtime.builtin.IRubyObject>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.RubyArray$DefaultComparator
super_class: java.lang.Object
{
final org.jruby.runtime.ThreadContext context;
descriptor: Lorg/jruby/runtime/ThreadContext;
flags: (0x0010) ACC_FINAL
private final boolean fixnumBypass;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean stringBypass;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_1
invokespecial org.jruby.RubyArray$DefaultComparator.<init>:(Lorg/jruby/runtime/ThreadContext;Z)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/RubyArray$DefaultComparator;
0 2 1 context Lorg/jruby/runtime/ThreadContext;
MethodParameters:
Name Flags
context
void <init>(org.jruby.runtime.ThreadContext, boolean);
descriptor: (Lorg/jruby/runtime/ThreadContext;Z)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.jruby.RubyArray$DefaultComparator.context:Lorg/jruby/runtime/ThreadContext;
2: iload 2
ifeq 10
aload 1
ifnull 10
3: aload 0
iload 2
ifeq 4
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getFixnum:()Lorg/jruby/RubyClass;
ldc "<=>"
invokevirtual org.jruby.RubyClass.isMethodBuiltin:(Ljava/lang/String;)Z
ifne 4
iconst_0
goto 5
StackMap locals: org.jruby.RubyArray$DefaultComparator org.jruby.runtime.ThreadContext int
StackMap stack: org.jruby.RubyArray$DefaultComparator
4: iconst_1
StackMap locals: org.jruby.RubyArray$DefaultComparator org.jruby.runtime.ThreadContext int
StackMap stack: org.jruby.RubyArray$DefaultComparator int
5: putfield org.jruby.RubyArray$DefaultComparator.fixnumBypass:Z
6: aload 0
iload 2
ifeq 7
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getString:()Lorg/jruby/RubyClass;
ldc "<=>"
invokevirtual org.jruby.RubyClass.isMethodBuiltin:(Ljava/lang/String;)Z
ifne 7
iconst_0
goto 8
StackMap locals:
StackMap stack: org.jruby.RubyArray$DefaultComparator
7: iconst_1
StackMap locals: org.jruby.RubyArray$DefaultComparator org.jruby.runtime.ThreadContext int
StackMap stack: org.jruby.RubyArray$DefaultComparator int
8: putfield org.jruby.RubyArray$DefaultComparator.stringBypass:Z
9: goto 12
10: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield org.jruby.RubyArray$DefaultComparator.fixnumBypass:Z
11: aload 0
iconst_0
putfield org.jruby.RubyArray$DefaultComparator.stringBypass:Z
12: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/jruby/RubyArray$DefaultComparator;
0 13 1 context Lorg/jruby/runtime/ThreadContext;
0 13 2 honorOverride Z
MethodParameters:
Name Flags
context
honorOverride final
public int compare(org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.jruby.RubyArray$DefaultComparator.fixnumBypass:Z
ifeq 2
aload 1
instanceof org.jruby.RubyFixnum
ifeq 2
aload 2
instanceof org.jruby.RubyFixnum
ifeq 2
1: aload 1
checkcast org.jruby.RubyFixnum
aload 2
checkcast org.jruby.RubyFixnum
invokestatic org.jruby.RubyArray$DefaultComparator.compareInteger:(Lorg/jruby/RubyFixnum;Lorg/jruby/RubyFixnum;)I
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.RubyArray$DefaultComparator.stringBypass:Z
ifeq 4
aload 1
instanceof org.jruby.RubyString
ifeq 4
aload 2
instanceof org.jruby.RubyString
ifeq 4
3: aload 1
checkcast org.jruby.RubyString
aload 2
checkcast org.jruby.RubyString
invokestatic org.jruby.RubyArray$DefaultComparator.compareString:(Lorg/jruby/RubyString;Lorg/jruby/RubyString;)I
ireturn
4: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
invokevirtual org.jruby.RubyArray$DefaultComparator.compareGeneric:(Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)I
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/RubyArray$DefaultComparator;
0 5 1 obj1 Lorg/jruby/runtime/builtin/IRubyObject;
0 5 2 obj2 Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
obj1
obj2
protected int compareGeneric(org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.jruby.RubyArray$DefaultComparator.context:()Lorg/jruby/runtime/ThreadContext;
astore 3
start local 3 1: aload 3
aload 3
invokestatic org.jruby.RubyArray.sites:(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/JavaSites$ArraySites;
getfield org.jruby.runtime.JavaSites$ArraySites.op_cmp_sort:Lorg/jruby/runtime/CallSite;
aload 1
aload 2
invokestatic org.jruby.RubyArray$DefaultComparator.compareGeneric:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/CallSite;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)I
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/RubyArray$DefaultComparator;
0 2 1 o1 Lorg/jruby/runtime/builtin/IRubyObject;
0 2 2 o2 Lorg/jruby/runtime/builtin/IRubyObject;
1 2 3 context Lorg/jruby/runtime/ThreadContext;
MethodParameters:
Name Flags
o1
o2
protected org.jruby.runtime.ThreadContext context();
descriptor: ()Lorg/jruby/runtime/ThreadContext;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.RubyArray$DefaultComparator.context:Lorg/jruby/runtime/ThreadContext;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyArray$DefaultComparator;
public static int compareInteger(org.jruby.RubyFixnum, org.jruby.RubyFixnum);
descriptor: (Lorg/jruby/RubyFixnum;Lorg/jruby/RubyFixnum;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.RubyFixnum.getLongValue:()J
lstore 2
start local 2 1: aload 1
invokevirtual org.jruby.RubyFixnum.getLongValue:()J
lstore 4
start local 4 2: lload 2
lload 4
lcmp
ifle 3
iconst_1
goto 5
StackMap locals: long long
StackMap stack:
3: lload 2
lload 4
lcmp
ifne 4
iconst_0
goto 5
StackMap locals:
StackMap stack:
4: iconst_m1
StackMap locals:
StackMap stack: int
5: ireturn
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 o1 Lorg/jruby/RubyFixnum;
0 6 1 o2 Lorg/jruby/RubyFixnum;
1 6 2 a J
2 6 4 b J
MethodParameters:
Name Flags
o1
o2
public static int compareString(org.jruby.RubyString, org.jruby.RubyString);
descriptor: (Lorg/jruby/RubyString;Lorg/jruby/RubyString;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.jruby.RubyString.op_cmp:(Lorg/jruby/RubyString;)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 o1 Lorg/jruby/RubyString;
0 1 1 o2 Lorg/jruby/RubyString;
MethodParameters:
Name Flags
o1
o2
public static int compareGeneric(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 0
invokestatic org.jruby.RubyArray.sites:(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/JavaSites$ArraySites;
getfield org.jruby.runtime.JavaSites$ArraySites.op_cmp_sort:Lorg/jruby/runtime/CallSite;
aload 1
aload 2
invokestatic org.jruby.RubyArray$DefaultComparator.compareGeneric:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/CallSite;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)I
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
0 1 1 o1 Lorg/jruby/runtime/builtin/IRubyObject;
0 1 2 o2 Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
context
o1
o2
public static int compareGeneric(org.jruby.runtime.ThreadContext, org.jruby.runtime.CallSite, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/CallSite;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
aload 0
aload 2
aload 2
aload 3
invokevirtual org.jruby.runtime.CallSite.call:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 4
start local 4 1: aload 0
aload 4
aload 2
aload 3
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
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 context Lorg/jruby/runtime/ThreadContext;
0 2 1 op_cmp_sort Lorg/jruby/runtime/CallSite;
0 2 2 o1 Lorg/jruby/runtime/builtin/IRubyObject;
0 2 3 o2 Lorg/jruby/runtime/builtin/IRubyObject;
1 2 4 ret Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
context
op_cmp_sort
o1
o2
public int compare(java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)I
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
checkcast org.jruby.runtime.builtin.IRubyObject
aload 2
checkcast org.jruby.runtime.builtin.IRubyObject
invokevirtual org.jruby.RubyArray$DefaultComparator.compare:(Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)I
ireturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Ljava/util/Comparator<Lorg/jruby/runtime/builtin/IRubyObject;>;
SourceFile: "RubyArray.java"
NestHost: org.jruby.RubyArray
InnerClasses:
public DefaultComparator = org.jruby.RubyArray$DefaultComparator of org.jruby.RubyArray
public ArraySites = org.jruby.runtime.JavaSites$ArraySites of org.jruby.runtime.JavaSites