public class org.jruby.java.addons.ArrayJavaAddons
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.java.addons.ArrayJavaAddons
super_class: java.lang.Object
{
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/jruby/java/addons/ArrayJavaAddons;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic org.jruby.java.addons.ArrayJavaAddons.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/java/addons/ArrayJavaAddons;
public static org.jruby.runtime.builtin.IRubyObject copy_data(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, 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;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=11, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
invokeinterface org.jruby.runtime.builtin.IRubyObject.dataGetStruct:()Ljava/lang/Object;
checkcast org.jruby.javasupport.JavaArray
astore 4
start local 4 1: aload 4
invokevirtual org.jruby.javasupport.JavaArray.getLength:()I
istore 5
start local 5 2: aload 4
invokevirtual org.jruby.javasupport.JavaArray.getComponentType:()Ljava/lang/Class;
astore 6
start local 6 3: aconst_null
astore 7
start local 7 4: aload 3
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifne 5
aload 3
aload 6
invokeinterface org.jruby.runtime.builtin.IRubyObject.toJava:(Ljava/lang/Class;)Ljava/lang/Object;
astore 7
5: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject org.jruby.javasupport.JavaArray int java.lang.Class java.lang.Object
StackMap stack:
aconst_null
astore 8
start local 8 6: aload 1
instanceof org.jruby.RubyArray
ifeq 9
7: aload 1
checkcast org.jruby.RubyArray
astore 8
8: goto 10
9: StackMap locals: org.jruby.RubyArray
StackMap stack:
aload 1
aload 6
invokeinterface org.jruby.runtime.builtin.IRubyObject.toJava:(Ljava/lang/Class;)Ljava/lang/Object;
astore 7
10: StackMap locals:
StackMap stack:
iconst_0
istore 9
start local 9 11: aload 8
ifnull 17
12: aload 8
invokevirtual org.jruby.RubyArray.getLength:()I
istore 10
start local 10 13: goto 16
14: StackMap locals: int int
StackMap stack:
aload 4
iload 9
aload 8
iload 9
invokevirtual org.jruby.RubyArray.eltInternal:(I)Lorg/jruby/runtime/builtin/IRubyObject;
aload 6
invokeinterface org.jruby.runtime.builtin.IRubyObject.toJava:(Ljava/lang/Class;)Ljava/lang/Object;
invokevirtual org.jruby.javasupport.JavaArray.setWithExceptionHandling:(ILjava/lang/Object;)V
15: iinc 9 1
StackMap locals:
StackMap stack:
16: iload 9
iload 10
if_icmpge 17
iload 9
iload 5
if_icmplt 14
end local 10 17: StackMap locals:
StackMap stack:
iload 9
iload 5
if_icmpge 19
aload 7
ifnull 19
18: aload 4
iload 9
iload 5
aload 7
invokevirtual org.jruby.javasupport.JavaArray.fillWithExceptionHandling:(IILjava/lang/Object;)V
19: StackMap locals:
StackMap stack:
aload 2
areturn
end local 9 end local 8 end local 7 end local 6 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 20 0 context Lorg/jruby/runtime/ThreadContext;
0 20 1 fromRuby Lorg/jruby/runtime/builtin/IRubyObject;
0 20 2 toJava Lorg/jruby/runtime/builtin/IRubyObject;
0 20 3 fillValue Lorg/jruby/runtime/builtin/IRubyObject;
1 20 4 javaArray Lorg/jruby/javasupport/JavaArray;
2 20 5 javaLength I
3 20 6 targetType Ljava/lang/Class<*>;
4 20 7 fillJavaObject Ljava/lang/Object;
6 20 8 rubyArray Lorg/jruby/RubyArray;
11 20 9 i I
13 17 10 rubyLength I
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"copy_data"})
MethodParameters:
Name Flags
context final
fromRuby final
toJava final
fillValue final
public static org.jruby.runtime.builtin.IRubyObject copy_data(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;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokeinterface org.jruby.runtime.builtin.IRubyObject.dataGetStruct:()Ljava/lang/Object;
checkcast org.jruby.javasupport.JavaArray
astore 3
start local 3 1: aload 1
checkcast org.jruby.RubyArray
astore 4
start local 4 2: aload 4
aload 3
iconst_0
invokestatic org.jruby.java.addons.ArrayJavaAddons.copyDataToJavaArray:(Lorg/jruby/RubyArray;Lorg/jruby/javasupport/JavaArray;I)V
3: aload 2
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 context Lorg/jruby/runtime/ThreadContext;
0 4 1 fromRuby Lorg/jruby/runtime/builtin/IRubyObject;
0 4 2 toJava Lorg/jruby/runtime/builtin/IRubyObject;
1 4 3 javaArray Lorg/jruby/javasupport/JavaArray;
2 4 4 rubyArray Lorg/jruby/RubyArray;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"copy_data", "copy_data_simple"})
MethodParameters:
Name Flags
context final
fromRuby
toJava
public static void copyDataToJavaArray(org.jruby.runtime.ThreadContext, org.jruby.RubyArray, org.jruby.javasupport.JavaArray);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/RubyArray;Lorg/jruby/javasupport/JavaArray;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 2
iconst_0
invokestatic org.jruby.java.addons.ArrayJavaAddons.copyDataToJavaArray:(Lorg/jruby/RubyArray;Lorg/jruby/javasupport/JavaArray;I)V
1: return
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 rubyArray Lorg/jruby/RubyArray;
0 2 2 javaArray Lorg/jruby/javasupport/JavaArray;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
context final
rubyArray final
javaArray final
private static void copyDataToJavaArray(org.jruby.RubyArray, org.jruby.javasupport.JavaArray, int);
descriptor: (Lorg/jruby/RubyArray;Lorg/jruby/javasupport/JavaArray;I)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual org.jruby.javasupport.JavaArray.getLength:()I
istore 3
start local 3 1: iload 3
aload 0
invokevirtual org.jruby.RubyArray.getLength:()I
if_icmple 2
aload 0
invokevirtual org.jruby.RubyArray.getLength:()I
istore 3
2: StackMap locals: int
StackMap stack:
aload 1
invokevirtual org.jruby.javasupport.JavaArray.getComponentType:()Ljava/lang/Class;
astore 4
start local 4 3: iload 2
istore 5
start local 5 4: goto 7
5: StackMap locals: java.lang.Class int
StackMap stack:
aload 1
iload 5
aload 0
iload 5
invokevirtual org.jruby.RubyArray.eltInternal:(I)Lorg/jruby/runtime/builtin/IRubyObject;
aload 4
invokeinterface org.jruby.runtime.builtin.IRubyObject.toJava:(Ljava/lang/Class;)Ljava/lang/Object;
invokevirtual org.jruby.javasupport.JavaArray.setWithExceptionHandling:(ILjava/lang/Object;)V
6: iinc 5 1
StackMap locals:
StackMap stack:
7: iload 5
iload 3
if_icmplt 5
end local 5 8: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 rubyArray Lorg/jruby/RubyArray;
0 9 1 javaArray Lorg/jruby/javasupport/JavaArray;
0 9 2 offset I
1 9 3 length I
3 9 4 targetType Ljava/lang/Class<*>;
4 8 5 i I
MethodParameters:
Name Flags
rubyArray final
javaArray final
offset
public static org.jruby.runtime.builtin.IRubyObject dimensions(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.newEmptyArray:()Lorg/jruby/RubyArray;
invokestatic org.jruby.java.addons.ArrayJavaAddons.dimensions:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
0 1 1 rubyArray Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod()
MethodParameters:
Name Flags
context
rubyArray
public static org.jruby.runtime.builtin.IRubyObject dimensions(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;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 3
start local 3 1: aload 1
instanceof org.jruby.RubyArray
ifne 3
2: aload 3
invokevirtual org.jruby.Ruby.newEmptyArray:()Lorg/jruby/RubyArray;
areturn
3: StackMap locals: org.jruby.Ruby
StackMap stack:
getstatic org.jruby.java.addons.ArrayJavaAddons.$assertionsDisabled:Z
ifne 4
aload 2
instanceof org.jruby.RubyArray
ifne 4
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
4: StackMap locals:
StackMap stack:
aload 3
aload 1
checkcast org.jruby.RubyArray
aload 2
checkcast org.jruby.RubyArray
iconst_0
invokestatic org.jruby.java.addons.ArrayJavaAddons.calcDimensions:(Lorg/jruby/Ruby;Lorg/jruby/RubyArray;Lorg/jruby/RubyArray;I)Lorg/jruby/RubyArray;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 context Lorg/jruby/runtime/ThreadContext;
0 5 1 rubyArray Lorg/jruby/runtime/builtin/IRubyObject;
0 5 2 dims Lorg/jruby/runtime/builtin/IRubyObject;
1 5 3 runtime Lorg/jruby/Ruby;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod()
MethodParameters:
Name Flags
context
rubyArray
dims
public static org.jruby.runtime.builtin.IRubyObject dimensions(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, 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;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 4
start local 4 1: aload 1
instanceof org.jruby.RubyArray
ifne 3
2: aload 4
invokevirtual org.jruby.Ruby.newEmptyArray:()Lorg/jruby/RubyArray;
areturn
3: StackMap locals: org.jruby.Ruby
StackMap stack:
getstatic org.jruby.java.addons.ArrayJavaAddons.$assertionsDisabled:Z
ifne 4
aload 2
instanceof org.jruby.RubyArray
ifne 4
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
4: StackMap locals:
StackMap stack:
getstatic org.jruby.java.addons.ArrayJavaAddons.$assertionsDisabled:Z
ifne 5
aload 3
instanceof org.jruby.RubyFixnum
ifne 5
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
5: StackMap locals:
StackMap stack:
aload 3
checkcast org.jruby.RubyFixnum
invokevirtual org.jruby.RubyFixnum.getLongValue:()J
l2i
istore 5
start local 5 6: aload 4
aload 1
checkcast org.jruby.RubyArray
aload 2
checkcast org.jruby.RubyArray
iload 5
invokestatic org.jruby.java.addons.ArrayJavaAddons.calcDimensions:(Lorg/jruby/Ruby;Lorg/jruby/RubyArray;Lorg/jruby/RubyArray;I)Lorg/jruby/RubyArray;
areturn
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 context Lorg/jruby/runtime/ThreadContext;
0 7 1 rubyArray Lorg/jruby/runtime/builtin/IRubyObject;
0 7 2 dims Lorg/jruby/runtime/builtin/IRubyObject;
0 7 3 index Lorg/jruby/runtime/builtin/IRubyObject;
1 7 4 runtime Lorg/jruby/Ruby;
6 7 5 i I
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod()
MethodParameters:
Name Flags
context
rubyArray
dims
index
private static org.jruby.RubyArray calcDimensions(org.jruby.Ruby, org.jruby.RubyArray, org.jruby.RubyArray, int);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyArray;Lorg/jruby/RubyArray;I)Lorg/jruby/RubyArray;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: goto 2
1: StackMap locals:
StackMap stack:
aload 2
aload 0
invokestatic org.jruby.RubyFixnum.zero:(Lorg/jruby/Ruby;)Lorg/jruby/RubyFixnum;
invokevirtual org.jruby.RubyArray.append:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
pop
2: StackMap locals:
StackMap stack:
aload 2
invokevirtual org.jruby.RubyArray.size:()I
iload 3
if_icmple 1
3: aload 2
iload 3
invokevirtual org.jruby.RubyArray.eltInternal:(I)Lorg/jruby/runtime/builtin/IRubyObject;
checkcast org.jruby.RubyFixnum
invokevirtual org.jruby.RubyFixnum.getLongValue:()J
lstore 4
start local 4 4: aload 1
invokevirtual org.jruby.RubyArray.size:()I
i2l
lload 4
lcmp
ifle 6
5: aload 2
iload 3
aload 0
aload 1
invokevirtual org.jruby.RubyArray.size:()I
i2l
invokestatic org.jruby.RubyFixnum.newFixnum:(Lorg/jruby/Ruby;J)Lorg/jruby/RubyFixnum;
invokevirtual org.jruby.RubyArray.eltInternalSet:(ILorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
6: StackMap locals: long
StackMap stack:
iconst_0
istore 6
start local 6 7: goto 12
8: StackMap locals: int
StackMap stack:
aload 1
iload 6
invokevirtual org.jruby.RubyArray.eltInternal:(I)Lorg/jruby/runtime/builtin/IRubyObject;
astore 7
start local 7 9: aload 7
instanceof org.jruby.RubyArray
ifeq 11
10: aload 0
aload 7
checkcast org.jruby.RubyArray
aload 2
iconst_1
invokestatic org.jruby.java.addons.ArrayJavaAddons.calcDimensions:(Lorg/jruby/Ruby;Lorg/jruby/RubyArray;Lorg/jruby/RubyArray;I)Lorg/jruby/RubyArray;
pop
end local 7 11: StackMap locals:
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
12: iload 6
aload 1
invokevirtual org.jruby.RubyArray.size:()I
if_icmplt 8
end local 6 13: aload 2
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 runtime Lorg/jruby/Ruby;
0 14 1 array Lorg/jruby/RubyArray;
0 14 2 dims Lorg/jruby/RubyArray;
0 14 3 index I
4 14 4 dim J
7 13 6 i I
9 11 7 element Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
runtime final
array final
dims final
index final
}
SourceFile: "ArrayJavaAddons.java"