public class org.jruby.ir.operands.Array extends org.jruby.ir.operands.Operand implements java.lang.Iterable<org.jruby.ir.operands.Operand>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.ir.operands.Array
super_class: org.jruby.ir.operands.Operand
{
private final org.jruby.ir.operands.Operand[] elts;
descriptor: [Lorg/jruby/ir/operands/Operand;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic org.jruby.ir.operands.Array.EMPTY_ARRAY:[Lorg/jruby/ir/operands/Operand;
invokespecial org.jruby.ir.operands.Array.<init>:([Lorg/jruby/ir/operands/Operand;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ir/operands/Array;
public void <init>(org.jruby.ir.operands.Operand[]);
descriptor: ([Lorg/jruby/ir/operands/Operand;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial org.jruby.ir.operands.Operand.<init>:()V
1: aload 0
aload 1
ifnonnull 2
getstatic org.jruby.ir.operands.Array.EMPTY_ARRAY:[Lorg/jruby/ir/operands/Operand;
goto 3
StackMap locals: org.jruby.ir.operands.Array org.jruby.ir.operands.Operand[]
StackMap stack: org.jruby.ir.operands.Array
2: aload 1
StackMap locals: org.jruby.ir.operands.Array org.jruby.ir.operands.Operand[]
StackMap stack: org.jruby.ir.operands.Array org.jruby.ir.operands.Operand[]
3: putfield org.jruby.ir.operands.Array.elts:[Lorg/jruby/ir/operands/Operand;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/ir/operands/Array;
0 5 1 elts [Lorg/jruby/ir/operands/Operand;
MethodParameters:
Name Flags
elts
public org.jruby.ir.operands.OperandType getOperandType();
descriptor: ()Lorg/jruby/ir/operands/OperandType;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: getstatic org.jruby.ir.operands.OperandType.ARRAY:Lorg/jruby/ir/operands/OperandType;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/operands/Array;
public boolean isBlank();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ir.operands.Array.elts:[Lorg/jruby/ir/operands/Operand;
arraylength
ifne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ir/operands/Array;
public int size();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ir.operands.Array.elts:[Lorg/jruby/ir/operands/Operand;
arraylength
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/operands/Array;
public org.jruby.ir.operands.Operand get(int);
descriptor: (I)Lorg/jruby/ir/operands/Operand;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.ir.operands.Array.elts:[Lorg/jruby/ir/operands/Operand;
iload 1
aaload
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/operands/Array;
0 1 1 i I
MethodParameters:
Name Flags
i
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "Array:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual org.jruby.ir.operands.Array.isBlank:()Z
ifeq 1
ldc "[]"
goto 2
StackMap locals:
StackMap stack: java.lang.StringBuilder
1: aload 0
getfield org.jruby.ir.operands.Array.elts:[Lorg/jruby/ir/operands/Operand;
invokestatic java.util.Arrays.toString:([Ljava/lang/Object;)Ljava/lang/String;
StackMap locals: org.jruby.ir.operands.Array
StackMap stack: java.lang.StringBuilder java.lang.String
2: invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ir/operands/Array;
public boolean hasKnownValue();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=1
start local 0 0: aload 0
getfield org.jruby.ir.operands.Array.elts:[Lorg/jruby/ir/operands/Operand;
dup
astore 4
arraylength
istore 3
iconst_0
istore 2
goto 4
StackMap locals: org.jruby.ir.operands.Array top int int org.jruby.ir.operands.Operand[]
StackMap stack:
1: aload 4
iload 2
aaload
astore 1
start local 1 2: aload 1
invokevirtual org.jruby.ir.operands.Operand.hasKnownValue:()Z
ifne 3
iconst_0
ireturn
end local 1 3: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
4: iload 2
iload 3
if_icmplt 1
5: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jruby/ir/operands/Array;
2 3 1 o Lorg/jruby/ir/operands/Operand;
public org.jruby.ir.operands.Operand getSimplifiedOperand(java.util.Map<org.jruby.ir.operands.Operand, org.jruby.ir.operands.Operand>, boolean);
descriptor: (Ljava/util/Map;Z)Lorg/jruby/ir/operands/Operand;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.jruby.ir.operands.Array.elts:[Lorg/jruby/ir/operands/Operand;
arraylength
anewarray org.jruby.ir.operands.Operand
astore 3
start local 3 1: iconst_0
istore 4
start local 4 2: goto 5
3: StackMap locals: org.jruby.ir.operands.Operand[] int
StackMap stack:
aload 3
iload 4
aload 0
getfield org.jruby.ir.operands.Array.elts:[Lorg/jruby/ir/operands/Operand;
iload 4
aaload
aload 1
iload 2
invokevirtual org.jruby.ir.operands.Operand.getSimplifiedOperand:(Ljava/util/Map;Z)Lorg/jruby/ir/operands/Operand;
aastore
4: iinc 4 1
StackMap locals:
StackMap stack:
5: iload 4
aload 0
getfield org.jruby.ir.operands.Array.elts:[Lorg/jruby/ir/operands/Operand;
arraylength
if_icmplt 3
end local 4 6: new org.jruby.ir.operands.Array
dup
aload 3
invokespecial org.jruby.ir.operands.Array.<init>:([Lorg/jruby/ir/operands/Operand;)V
areturn
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/operands/Array;
0 7 1 valueMap Ljava/util/Map<Lorg/jruby/ir/operands/Operand;Lorg/jruby/ir/operands/Operand;>;
0 7 2 force Z
1 7 3 newElts [Lorg/jruby/ir/operands/Operand;
2 6 4 i I
Signature: (Ljava/util/Map<Lorg/jruby/ir/operands/Operand;Lorg/jruby/ir/operands/Operand;>;Z)Lorg/jruby/ir/operands/Operand;
MethodParameters:
Name Flags
valueMap
force
public org.jruby.ir.operands.Operand toArray();
descriptor: ()Lorg/jruby/ir/operands/Operand;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/operands/Array;
public void addUsedVariables(java.util.List<org.jruby.ir.operands.Variable>);
descriptor: (Ljava/util/List;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.ir.operands.Array.elts:[Lorg/jruby/ir/operands/Operand;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 4
StackMap locals: org.jruby.ir.operands.Array java.util.List top int int org.jruby.ir.operands.Operand[]
StackMap stack:
1: aload 5
iload 3
aaload
astore 2
start local 2 2: aload 2
aload 1
invokevirtual org.jruby.ir.operands.Operand.addUsedVariables:(Ljava/util/List;)V
end local 2 3: iinc 3 1
StackMap locals:
StackMap stack:
4: iload 3
iload 4
if_icmplt 1
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jruby/ir/operands/Array;
0 6 1 l Ljava/util/List<Lorg/jruby/ir/operands/Variable;>;
2 3 2 o Lorg/jruby/ir/operands/Operand;
Signature: (Ljava/util/List<Lorg/jruby/ir/operands/Variable;>;)V
MethodParameters:
Name Flags
l
public org.jruby.ir.operands.Operand cloneForInlining(org.jruby.ir.transformations.inlining.CloneInfo);
descriptor: (Lorg/jruby/ir/transformations/inlining/CloneInfo;)Lorg/jruby/ir/operands/Operand;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.ir.operands.Array.hasKnownValue:()Z
ifeq 1
aload 0
areturn
1: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.ir.operands.Array.elts:[Lorg/jruby/ir/operands/Operand;
arraylength
anewarray org.jruby.ir.operands.Operand
astore 2
start local 2 2: iconst_0
istore 3
start local 3 3: goto 6
4: StackMap locals: org.jruby.ir.operands.Operand[] int
StackMap stack:
aload 2
iload 3
aload 0
getfield org.jruby.ir.operands.Array.elts:[Lorg/jruby/ir/operands/Operand;
iload 3
aaload
aload 1
invokevirtual org.jruby.ir.operands.Operand.cloneForInlining:(Lorg/jruby/ir/transformations/inlining/CloneInfo;)Lorg/jruby/ir/operands/Operand;
aastore
5: iinc 3 1
StackMap locals:
StackMap stack:
6: iload 3
aload 0
getfield org.jruby.ir.operands.Array.elts:[Lorg/jruby/ir/operands/Operand;
arraylength
if_icmplt 4
end local 3 7: new org.jruby.ir.operands.Array
dup
aload 2
invokespecial org.jruby.ir.operands.Array.<init>:([Lorg/jruby/ir/operands/Operand;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/jruby/ir/operands/Array;
0 8 1 ii Lorg/jruby/ir/transformations/inlining/CloneInfo;
2 8 2 newElts [Lorg/jruby/ir/operands/Operand;
3 7 3 i I
MethodParameters:
Name Flags
ii
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.operands.Operand.encode:(Lorg/jruby/ir/persistence/IRWriterEncoder;)V
1: aload 1
aload 0
invokevirtual org.jruby.ir.operands.Array.getElts:()[Lorg/jruby/ir/operands/Operand;
invokeinterface org.jruby.ir.persistence.IRWriterEncoder.encode:([Lorg/jruby/ir/operands/Operand;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ir/operands/Array;
0 3 1 e Lorg/jruby/ir/persistence/IRWriterEncoder;
MethodParameters:
Name Flags
e
public static org.jruby.ir.operands.Array decode(org.jruby.ir.persistence.IRReaderDecoder);
descriptor: (Lorg/jruby/ir/persistence/IRReaderDecoder;)Lorg/jruby/ir/operands/Array;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new org.jruby.ir.operands.Array
dup
aload 0
invokeinterface org.jruby.ir.persistence.IRReaderDecoder.decodeOperandArray:()[Lorg/jruby/ir/operands/Operand;
invokespecial org.jruby.ir.operands.Array.<init>:([Lorg/jruby/ir/operands/Operand;)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[] retrieveArrayElts(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.parser.StaticScope, org.jruby.runtime.DynamicScope, java.lang.Object[]);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/parser/StaticScope;Lorg/jruby/runtime/DynamicScope;[Ljava/lang/Object;)[Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=8, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
getfield org.jruby.ir.operands.Array.elts:[Lorg/jruby/ir/operands/Operand;
arraylength
anewarray org.jruby.runtime.builtin.IRubyObject
astore 6
start local 6 1: iconst_0
istore 7
start local 7 2: goto 5
3: StackMap locals: org.jruby.runtime.builtin.IRubyObject[] int
StackMap stack:
aload 6
iload 7
aload 0
getfield org.jruby.ir.operands.Array.elts:[Lorg/jruby/ir/operands/Operand;
iload 7
aaload
aload 1
aload 2
aload 3
aload 4
aload 5
invokevirtual org.jruby.ir.operands.Operand.retrieve:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/parser/StaticScope;Lorg/jruby/runtime/DynamicScope;[Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.jruby.runtime.builtin.IRubyObject
aastore
4: iinc 7 1
StackMap locals:
StackMap stack:
5: iload 7
aload 6
arraylength
if_icmplt 3
end local 7 6: aload 6
areturn
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 7 0 this Lorg/jruby/ir/operands/Array;
0 7 1 context Lorg/jruby/runtime/ThreadContext;
0 7 2 self Lorg/jruby/runtime/builtin/IRubyObject;
0 7 3 currScope Lorg/jruby/parser/StaticScope;
0 7 4 currDynScope Lorg/jruby/runtime/DynamicScope;
0 7 5 temp [Ljava/lang/Object;
1 7 6 elements [Lorg/jruby/runtime/builtin/IRubyObject;
2 6 7 i I
MethodParameters:
Name Flags
context
self
currScope
currDynScope
temp
public java.lang.Object retrieve(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.parser.StaticScope, org.jruby.runtime.DynamicScope, java.lang.Object[]);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/parser/StaticScope;Lorg/jruby/runtime/DynamicScope;[Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, 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
getfield org.jruby.ir.operands.Array.elts:[Lorg/jruby/ir/operands/Operand;
arraylength
tableswitch { // 0 - 2
0: 1
1: 2
2: 3
default: 6
}
1: StackMap locals:
StackMap stack:
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.newEmptyArray:()Lorg/jruby/RubyArray;
areturn
2: StackMap locals:
StackMap stack:
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
getfield org.jruby.ir.operands.Array.elts:[Lorg/jruby/ir/operands/Operand;
iconst_0
aaload
aload 1
aload 2
aload 3
aload 4
aload 5
invokevirtual org.jruby.ir.operands.Operand.retrieve:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/parser/StaticScope;Lorg/jruby/runtime/DynamicScope;[Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.jruby.runtime.builtin.IRubyObject
invokevirtual org.jruby.Ruby.newArray:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
areturn
3: StackMap locals:
StackMap stack:
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
getfield org.jruby.ir.operands.Array.elts:[Lorg/jruby/ir/operands/Operand;
iconst_0
aaload
aload 1
aload 2
aload 3
aload 4
aload 5
invokevirtual org.jruby.ir.operands.Operand.retrieve:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/parser/StaticScope;Lorg/jruby/runtime/DynamicScope;[Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.jruby.runtime.builtin.IRubyObject
4: aload 0
getfield org.jruby.ir.operands.Array.elts:[Lorg/jruby/ir/operands/Operand;
iconst_1
aaload
aload 1
aload 2
aload 3
aload 4
aload 5
invokevirtual org.jruby.ir.operands.Operand.retrieve:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/parser/StaticScope;Lorg/jruby/runtime/DynamicScope;[Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.jruby.runtime.builtin.IRubyObject
5: invokevirtual org.jruby.Ruby.newArray:(Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
areturn
6: StackMap locals:
StackMap stack:
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
aload 1
aload 2
aload 3
aload 4
aload 5
invokevirtual org.jruby.ir.operands.Array.retrieveArrayElts:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/parser/StaticScope;Lorg/jruby/runtime/DynamicScope;[Ljava/lang/Object;)[Lorg/jruby/runtime/builtin/IRubyObject;
invokestatic org.jruby.RubyArray.newArrayMayCopy:(Lorg/jruby/Ruby;[Lorg/jruby/runtime/builtin/IRubyObject;)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 this Lorg/jruby/ir/operands/Array;
0 7 1 context Lorg/jruby/runtime/ThreadContext;
0 7 2 self Lorg/jruby/runtime/builtin/IRubyObject;
0 7 3 currScope Lorg/jruby/parser/StaticScope;
0 7 4 currDynScope Lorg/jruby/runtime/DynamicScope;
0 7 5 temp [Ljava/lang/Object;
MethodParameters:
Name Flags
context
self
currScope
currDynScope
temp
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.Array:(Lorg/jruby/ir/operands/Array;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ir/operands/Array;
0 2 1 visitor Lorg/jruby/ir/IRVisitor;
MethodParameters:
Name Flags
visitor
public org.jruby.ir.operands.Operand[] getElts();
descriptor: ()[Lorg/jruby/ir/operands/Operand;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ir.operands.Array.elts:[Lorg/jruby/ir/operands/Operand;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/operands/Array;
public java.util.Iterator<org.jruby.ir.operands.Operand> iterator();
descriptor: ()Ljava/util/Iterator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ir.operands.Array.elts:[Lorg/jruby/ir/operands/Operand;
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/operands/Array;
Signature: ()Ljava/util/Iterator<Lorg/jruby/ir/operands/Operand;>;
}
Signature: Lorg/jruby/ir/operands/Operand;Ljava/lang/Iterable<Lorg/jruby/ir/operands/Operand;>;
SourceFile: "Array.java"