public final class org.graalvm.compiler.lir.LIRInsertionBuffer
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.graalvm.compiler.lir.LIRInsertionBuffer
super_class: java.lang.Object
{
private java.util.List<org.graalvm.compiler.lir.LIRInstruction> lir;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Lorg/graalvm/compiler/lir/LIRInstruction;>;
private int[] indexAndCount;
descriptor: [I
flags: (0x0002) ACC_PRIVATE
private int indexAndCountSize;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private final java.util.List<org.graalvm.compiler.lir.LIRInstruction> ops;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Lorg/graalvm/compiler/lir/LIRInstruction;>;
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/graalvm/compiler/lir/LIRInsertionBuffer;
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.graalvm.compiler.lir.LIRInsertionBuffer.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
bipush 8
newarray 10
putfield org.graalvm.compiler.lir.LIRInsertionBuffer.indexAndCount:[I
2: aload 0
new java.util.ArrayList
dup
iconst_4
invokespecial java.util.ArrayList.<init>:(I)V
putfield org.graalvm.compiler.lir.LIRInsertionBuffer.ops:Ljava/util/List;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/graalvm/compiler/lir/LIRInsertionBuffer;
public void init(java.util.List<org.graalvm.compiler.lir.LIRInstruction>);
descriptor: (Ljava/util/List;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: getstatic org.graalvm.compiler.lir.LIRInsertionBuffer.$assertionsDisabled:Z
ifne 1
aload 0
invokevirtual org.graalvm.compiler.lir.LIRInsertionBuffer.initialized:()Z
ifeq 1
new java.lang.AssertionError
dup
ldc "already initialized"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
1: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.lir.LIRInsertionBuffer.$assertionsDisabled:Z
ifne 3
aload 0
getfield org.graalvm.compiler.lir.LIRInsertionBuffer.indexAndCountSize:I
ifne 2
aload 0
getfield org.graalvm.compiler.lir.LIRInsertionBuffer.ops:Ljava/util/List;
invokeinterface java.util.List.size:()I
ifeq 3
StackMap locals:
StackMap stack:
2: new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield org.graalvm.compiler.lir.LIRInsertionBuffer.lir:Ljava/util/List;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/graalvm/compiler/lir/LIRInsertionBuffer;
0 5 1 newLir Ljava/util/List<Lorg/graalvm/compiler/lir/LIRInstruction;>;
Signature: (Ljava/util/List<Lorg/graalvm/compiler/lir/LIRInstruction;>;)V
MethodParameters:
Name Flags
newLir
public boolean initialized();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.graalvm.compiler.lir.LIRInsertionBuffer.lir:Ljava/util/List;
ifnull 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/graalvm/compiler/lir/LIRInsertionBuffer;
public java.util.List<org.graalvm.compiler.lir.LIRInstruction> lirList();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.graalvm.compiler.lir.LIRInsertionBuffer.lir:Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/lir/LIRInsertionBuffer;
Signature: ()Ljava/util/List<Lorg/graalvm/compiler/lir/LIRInstruction;>;
public void append(int, org.graalvm.compiler.lir.LIRInstruction);
descriptor: (ILorg/graalvm/compiler/lir/LIRInstruction;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.graalvm.compiler.lir.LIRInsertionBuffer.numberOfInsertionPoints:()I
iconst_1
isub
istore 3
start local 3 1: iload 3
iflt 2
aload 0
iload 3
invokevirtual org.graalvm.compiler.lir.LIRInsertionBuffer.indexAt:(I)I
iload 1
if_icmpge 4
2: StackMap locals: int
StackMap stack:
aload 0
iload 1
iconst_1
invokevirtual org.graalvm.compiler.lir.LIRInsertionBuffer.appendNew:(II)V
3: goto 7
4: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.lir.LIRInsertionBuffer.$assertionsDisabled:Z
ifne 5
aload 0
iload 3
invokevirtual org.graalvm.compiler.lir.LIRInsertionBuffer.indexAt:(I)I
iload 1
if_icmpeq 5
new java.lang.AssertionError
dup
ldc "can append LIROps in ascending order only"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
5: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.lir.LIRInsertionBuffer.$assertionsDisabled:Z
ifne 6
aload 0
iload 3
invokevirtual org.graalvm.compiler.lir.LIRInsertionBuffer.countAt:(I)I
ifgt 6
new java.lang.AssertionError
dup
ldc "check"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
6: StackMap locals:
StackMap stack:
aload 0
iload 3
aload 0
iload 3
invokevirtual org.graalvm.compiler.lir.LIRInsertionBuffer.countAt:(I)I
iconst_1
iadd
invokevirtual org.graalvm.compiler.lir.LIRInsertionBuffer.setCountAt:(II)V
7: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.compiler.lir.LIRInsertionBuffer.ops:Ljava/util/List;
aload 2
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
8: getstatic org.graalvm.compiler.lir.LIRInsertionBuffer.$assertionsDisabled:Z
ifne 9
aload 0
invokevirtual org.graalvm.compiler.lir.LIRInsertionBuffer.verify:()Z
ifne 9
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
9: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/graalvm/compiler/lir/LIRInsertionBuffer;
0 10 1 index I
0 10 2 op Lorg/graalvm/compiler/lir/LIRInstruction;
1 10 3 i I
MethodParameters:
Name Flags
index
op
public void finish();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=8, args_size=1
start local 0 0: aload 0
getfield org.graalvm.compiler.lir.LIRInsertionBuffer.ops:Ljava/util/List;
invokeinterface java.util.List.size:()I
ifle 25
1: aload 0
getfield org.graalvm.compiler.lir.LIRInsertionBuffer.lir:Ljava/util/List;
invokeinterface java.util.List.size:()I
istore 1
start local 1 2: iconst_0
istore 2
start local 2 3: goto 6
4: StackMap locals: int int
StackMap stack:
aload 0
getfield org.graalvm.compiler.lir.LIRInsertionBuffer.lir:Ljava/util/List;
aconst_null
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
5: iinc 2 1
StackMap locals:
StackMap stack:
6: iload 2
aload 0
getfield org.graalvm.compiler.lir.LIRInsertionBuffer.ops:Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmplt 4
end local 2 7: aload 0
getfield org.graalvm.compiler.lir.LIRInsertionBuffer.ops:Ljava/util/List;
invokeinterface java.util.List.size:()I
iconst_1
isub
istore 2
start local 2 8: aload 0
invokevirtual org.graalvm.compiler.lir.LIRInsertionBuffer.numberOfInsertionPoints:()I
iconst_1
isub
istore 3
start local 3 9: iload 1
iconst_1
isub
istore 4
start local 4 10: aload 0
getfield org.graalvm.compiler.lir.LIRInsertionBuffer.lir:Ljava/util/List;
invokeinterface java.util.List.size:()I
iconst_1
isub
istore 5
start local 5 11: goto 22
12: StackMap locals: int int int
StackMap stack:
aload 0
iload 3
invokevirtual org.graalvm.compiler.lir.LIRInsertionBuffer.indexAt:(I)I
istore 6
start local 6 13: goto 15
14: StackMap locals: int
StackMap stack:
aload 0
getfield org.graalvm.compiler.lir.LIRInsertionBuffer.lir:Ljava/util/List;
iload 5
iinc 5 -1
aload 0
getfield org.graalvm.compiler.lir.LIRInsertionBuffer.lir:Ljava/util/List;
iload 4
iinc 4 -1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.graalvm.compiler.lir.LIRInstruction
invokeinterface java.util.List.set:(ILjava/lang/Object;)Ljava/lang/Object;
pop
15: StackMap locals:
StackMap stack:
iload 4
iload 6
if_icmpge 14
16: aload 0
iload 3
invokevirtual org.graalvm.compiler.lir.LIRInsertionBuffer.countAt:(I)I
istore 7
start local 7 17: goto 20
18: StackMap locals: int
StackMap stack:
aload 0
getfield org.graalvm.compiler.lir.LIRInsertionBuffer.lir:Ljava/util/List;
iload 5
iinc 5 -1
aload 0
getfield org.graalvm.compiler.lir.LIRInsertionBuffer.ops:Ljava/util/List;
iload 2
iinc 2 -1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.graalvm.compiler.lir.LIRInstruction
invokeinterface java.util.List.set:(ILjava/lang/Object;)Ljava/lang/Object;
pop
19: iinc 7 -1
StackMap locals:
StackMap stack:
20: iload 7
ifgt 18
end local 7 21: iinc 3 -1
end local 6 22: StackMap locals:
StackMap stack:
iload 3
ifge 12
23: aload 0
iconst_0
putfield org.graalvm.compiler.lir.LIRInsertionBuffer.indexAndCountSize:I
24: aload 0
getfield org.graalvm.compiler.lir.LIRInsertionBuffer.ops:Ljava/util/List;
invokeinterface java.util.List.clear:()V
end local 5 end local 4 end local 3 end local 2 end local 1 25: StackMap locals: org.graalvm.compiler.lir.LIRInsertionBuffer
StackMap stack:
aload 0
aconst_null
putfield org.graalvm.compiler.lir.LIRInsertionBuffer.lir:Ljava/util/List;
26: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Lorg/graalvm/compiler/lir/LIRInsertionBuffer;
2 25 1 n I
3 7 2 i I
8 25 2 opIndex I
9 25 3 ipIndex I
10 25 4 fromIndex I
11 25 5 toIndex I
13 22 6 index I
17 21 7 i I
private void appendNew(int, int);
descriptor: (II)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.graalvm.compiler.lir.LIRInsertionBuffer.indexAndCountSize:I
istore 3
start local 3 1: iload 3
iconst_2
iadd
istore 4
start local 4 2: iload 4
aload 0
getfield org.graalvm.compiler.lir.LIRInsertionBuffer.indexAndCount:[I
arraylength
if_icmple 4
3: aload 0
aload 0
getfield org.graalvm.compiler.lir.LIRInsertionBuffer.indexAndCount:[I
iload 4
iconst_2
imul
invokestatic java.util.Arrays.copyOf:([II)[I
putfield org.graalvm.compiler.lir.LIRInsertionBuffer.indexAndCount:[I
4: StackMap locals: int int
StackMap stack:
aload 0
getfield org.graalvm.compiler.lir.LIRInsertionBuffer.indexAndCount:[I
iload 3
iload 1
iastore
5: aload 0
getfield org.graalvm.compiler.lir.LIRInsertionBuffer.indexAndCount:[I
iload 3
iconst_1
iadd
iload 2
iastore
6: aload 0
iload 4
putfield org.graalvm.compiler.lir.LIRInsertionBuffer.indexAndCountSize:I
7: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/graalvm/compiler/lir/LIRInsertionBuffer;
0 8 1 index I
0 8 2 count I
1 8 3 oldSize I
2 8 4 newSize I
MethodParameters:
Name Flags
index
count
private void setCountAt(int, int);
descriptor: (II)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.graalvm.compiler.lir.LIRInsertionBuffer.indexAndCount:[I
iload 1
iconst_1
ishl
iconst_1
iadd
iload 2
iastore
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/lir/LIRInsertionBuffer;
0 2 1 i I
0 2 2 value I
MethodParameters:
Name Flags
i
value
private int numberOfInsertionPoints();
descriptor: ()I
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: getstatic org.graalvm.compiler.lir.LIRInsertionBuffer.$assertionsDisabled:Z
ifne 1
aload 0
getfield org.graalvm.compiler.lir.LIRInsertionBuffer.indexAndCount:[I
arraylength
iconst_2
irem
ifeq 1
new java.lang.AssertionError
dup
ldc "must have a count for each index"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.compiler.lir.LIRInsertionBuffer.indexAndCountSize:I
iconst_1
ishr
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/lir/LIRInsertionBuffer;
private int indexAt(int);
descriptor: (I)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.graalvm.compiler.lir.LIRInsertionBuffer.indexAndCount:[I
iload 1
iconst_1
ishl
iaload
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/lir/LIRInsertionBuffer;
0 1 1 i I
MethodParameters:
Name Flags
i
private int countAt(int);
descriptor: (I)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.graalvm.compiler.lir.LIRInsertionBuffer.indexAndCount:[I
iload 1
iconst_1
ishl
iconst_1
iadd
iaload
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/lir/LIRInsertionBuffer;
0 1 1 i I
MethodParameters:
Name Flags
i
private boolean verify();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: iconst_m1
istore 2
start local 2 2: iconst_0
istore 3
start local 3 3: goto 7
4: StackMap locals: int int int
StackMap stack:
getstatic org.graalvm.compiler.lir.LIRInsertionBuffer.$assertionsDisabled:Z
ifne 5
iload 2
aload 0
iload 3
invokevirtual org.graalvm.compiler.lir.LIRInsertionBuffer.indexAt:(I)I
if_icmplt 5
new java.lang.AssertionError
dup
ldc "index must be ordered ascending"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
5: StackMap locals:
StackMap stack:
iload 1
aload 0
iload 3
invokevirtual org.graalvm.compiler.lir.LIRInsertionBuffer.countAt:(I)I
iadd
istore 1
6: iinc 3 1
StackMap locals:
StackMap stack:
7: iload 3
aload 0
invokevirtual org.graalvm.compiler.lir.LIRInsertionBuffer.numberOfInsertionPoints:()I
if_icmplt 4
end local 3 8: getstatic org.graalvm.compiler.lir.LIRInsertionBuffer.$assertionsDisabled:Z
ifne 9
iload 1
aload 0
getfield org.graalvm.compiler.lir.LIRInsertionBuffer.ops:Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmpeq 9
new java.lang.AssertionError
dup
ldc "wrong total sum"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
9: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/graalvm/compiler/lir/LIRInsertionBuffer;
1 10 1 sum I
2 10 2 prevIdx I
3 8 3 i I
}
SourceFile: "LIRInsertionBuffer.java"