public class org.graalvm.compiler.hotspot.phases.WriteBarrierAdditionPhase extends org.graalvm.compiler.phases.Phase
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.hotspot.phases.WriteBarrierAdditionPhase
super_class: org.graalvm.compiler.phases.Phase
{
private org.graalvm.compiler.hotspot.GraalHotSpotVMConfig config;
descriptor: Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;
flags: (0x0002) ACC_PRIVATE
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
private static volatile int[] $SWITCH_TABLE$org$graalvm$compiler$nodes$memory$HeapAccess$BarrierType;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/graalvm/compiler/hotspot/phases/WriteBarrierAdditionPhase;
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.hotspot.phases.WriteBarrierAdditionPhase.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.graalvm.compiler.hotspot.GraalHotSpotVMConfig);
descriptor: (Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial org.graalvm.compiler.phases.Phase.<init>:()V
1: aload 0
aload 1
putfield org.graalvm.compiler.hotspot.phases.WriteBarrierAdditionPhase.config:Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/graalvm/compiler/hotspot/phases/WriteBarrierAdditionPhase;
0 3 1 config Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;
MethodParameters:
Name Flags
config
protected void run(org.graalvm.compiler.nodes.StructuredGraph);
descriptor: (Lorg/graalvm/compiler/nodes/StructuredGraph;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.getNodes:()Lorg/graalvm/compiler/graph/iterators/NodeIterable;
invokeinterface org.graalvm.compiler.graph.iterators.NodeIterable.iterator:()Ljava/util/Iterator;
astore 3
goto 19
StackMap locals: org.graalvm.compiler.hotspot.phases.WriteBarrierAdditionPhase org.graalvm.compiler.nodes.StructuredGraph top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.graph.Node
astore 2
start local 2 2: aload 2
instanceof org.graalvm.compiler.nodes.memory.ReadNode
ifeq 5
3: aload 0
aload 2
checkcast org.graalvm.compiler.nodes.memory.ReadNode
aload 1
invokevirtual org.graalvm.compiler.hotspot.phases.WriteBarrierAdditionPhase.addReadNodeBarriers:(Lorg/graalvm/compiler/nodes/memory/ReadNode;Lorg/graalvm/compiler/nodes/StructuredGraph;)V
4: goto 19
StackMap locals: org.graalvm.compiler.hotspot.phases.WriteBarrierAdditionPhase org.graalvm.compiler.nodes.StructuredGraph org.graalvm.compiler.graph.Node java.util.Iterator
StackMap stack:
5: aload 2
instanceof org.graalvm.compiler.nodes.memory.WriteNode
ifeq 8
6: aload 0
aload 2
checkcast org.graalvm.compiler.nodes.memory.WriteNode
aload 1
invokevirtual org.graalvm.compiler.hotspot.phases.WriteBarrierAdditionPhase.addWriteNodeBarriers:(Lorg/graalvm/compiler/nodes/memory/WriteNode;Lorg/graalvm/compiler/nodes/StructuredGraph;)V
7: goto 19
StackMap locals:
StackMap stack:
8: aload 2
instanceof org.graalvm.compiler.nodes.java.LoweredAtomicReadAndWriteNode
ifeq 12
9: aload 2
checkcast org.graalvm.compiler.nodes.java.LoweredAtomicReadAndWriteNode
astore 4
start local 4 10: aload 0
aload 4
aload 1
invokevirtual org.graalvm.compiler.hotspot.phases.WriteBarrierAdditionPhase.addAtomicReadWriteNodeBarriers:(Lorg/graalvm/compiler/nodes/java/LoweredAtomicReadAndWriteNode;Lorg/graalvm/compiler/nodes/StructuredGraph;)V
end local 4 11: goto 19
StackMap locals:
StackMap stack:
12: aload 2
instanceof org.graalvm.compiler.nodes.java.AbstractCompareAndSwapNode
ifeq 15
13: aload 0
aload 2
checkcast org.graalvm.compiler.nodes.java.AbstractCompareAndSwapNode
aload 1
invokevirtual org.graalvm.compiler.hotspot.phases.WriteBarrierAdditionPhase.addCASBarriers:(Lorg/graalvm/compiler/nodes/java/AbstractCompareAndSwapNode;Lorg/graalvm/compiler/nodes/StructuredGraph;)V
14: goto 19
StackMap locals:
StackMap stack:
15: aload 2
instanceof org.graalvm.compiler.nodes.extended.ArrayRangeWriteNode
ifeq 19
16: aload 2
checkcast org.graalvm.compiler.nodes.extended.ArrayRangeWriteNode
astore 4
start local 4 17: aload 4
invokevirtual org.graalvm.compiler.nodes.extended.ArrayRangeWriteNode.isObjectArray:()Z
ifeq 19
18: aload 0
aload 4
aload 1
invokevirtual org.graalvm.compiler.hotspot.phases.WriteBarrierAdditionPhase.addArrayRangeBarriers:(Lorg/graalvm/compiler/nodes/extended/ArrayRangeWriteNode;Lorg/graalvm/compiler/nodes/StructuredGraph;)V
end local 4 end local 2 19: StackMap locals: org.graalvm.compiler.hotspot.phases.WriteBarrierAdditionPhase org.graalvm.compiler.nodes.StructuredGraph top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
20: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lorg/graalvm/compiler/hotspot/phases/WriteBarrierAdditionPhase;
0 21 1 graph Lorg/graalvm/compiler/nodes/StructuredGraph;
2 19 2 n Lorg/graalvm/compiler/graph/Node;
10 11 4 loweredAtomicReadAndWriteNode Lorg/graalvm/compiler/nodes/java/LoweredAtomicReadAndWriteNode;
17 19 4 node Lorg/graalvm/compiler/nodes/extended/ArrayRangeWriteNode;
MethodParameters:
Name Flags
graph
private void addReadNodeBarriers(org.graalvm.compiler.nodes.memory.ReadNode, org.graalvm.compiler.nodes.StructuredGraph);
descriptor: (Lorg/graalvm/compiler/nodes/memory/ReadNode;Lorg/graalvm/compiler/nodes/StructuredGraph;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual org.graalvm.compiler.nodes.memory.ReadNode.getBarrierType:()Lorg/graalvm/compiler/nodes/memory/HeapAccess$BarrierType;
getstatic org.graalvm.compiler.nodes.memory.HeapAccess$BarrierType.PRECISE:Lorg/graalvm/compiler/nodes/memory/HeapAccess$BarrierType;
if_acmpne 5
1: getstatic org.graalvm.compiler.hotspot.phases.WriteBarrierAdditionPhase.$assertionsDisabled:Z
ifne 2
aload 0
getfield org.graalvm.compiler.hotspot.phases.WriteBarrierAdditionPhase.config:Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;
getfield org.graalvm.compiler.hotspot.GraalHotSpotVMConfig.useG1GC:Z
ifne 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 2
new org.graalvm.compiler.hotspot.nodes.G1ReferentFieldReadBarrier
dup
aload 1
invokevirtual org.graalvm.compiler.nodes.memory.ReadNode.getAddress:()Lorg/graalvm/compiler/nodes/memory/address/AddressNode;
aload 1
iconst_0
invokespecial org.graalvm.compiler.hotspot.nodes.G1ReferentFieldReadBarrier.<init>:(Lorg/graalvm/compiler/nodes/memory/address/AddressNode;Lorg/graalvm/compiler/nodes/ValueNode;Z)V
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.add:(Lorg/graalvm/compiler/graph/Node;)Lorg/graalvm/compiler/graph/Node;
checkcast org.graalvm.compiler.hotspot.nodes.G1ReferentFieldReadBarrier
astore 3
start local 3 3: aload 2
aload 1
aload 3
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.addAfterFixed:(Lorg/graalvm/compiler/nodes/FixedWithNextNode;Lorg/graalvm/compiler/nodes/FixedNode;)V
end local 3 4: goto 6
5: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.hotspot.phases.WriteBarrierAdditionPhase.$assertionsDisabled:Z
ifne 6
aload 1
invokevirtual org.graalvm.compiler.nodes.memory.ReadNode.getBarrierType:()Lorg/graalvm/compiler/nodes/memory/HeapAccess$BarrierType;
getstatic org.graalvm.compiler.nodes.memory.HeapAccess$BarrierType.NONE:Lorg/graalvm/compiler/nodes/memory/HeapAccess$BarrierType;
if_acmpeq 6
new java.lang.AssertionError
dup
ldc "Non precise read barrier has been attached to read node."
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
6: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/graalvm/compiler/hotspot/phases/WriteBarrierAdditionPhase;
0 7 1 node Lorg/graalvm/compiler/nodes/memory/ReadNode;
0 7 2 graph Lorg/graalvm/compiler/nodes/StructuredGraph;
3 4 3 barrier Lorg/graalvm/compiler/hotspot/nodes/G1ReferentFieldReadBarrier;
MethodParameters:
Name Flags
node
graph
protected static void addG1PreWriteBarrier(org.graalvm.compiler.nodes.memory.FixedAccessNode, org.graalvm.compiler.nodes.memory.address.AddressNode, org.graalvm.compiler.nodes.ValueNode, boolean, boolean, org.graalvm.compiler.nodes.StructuredGraph);
descriptor: (Lorg/graalvm/compiler/nodes/memory/FixedAccessNode;Lorg/graalvm/compiler/nodes/memory/address/AddressNode;Lorg/graalvm/compiler/nodes/ValueNode;ZZLorg/graalvm/compiler/nodes/StructuredGraph;)V
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=7, locals=7, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 5
new org.graalvm.compiler.hotspot.nodes.G1PreWriteBarrier
dup
aload 1
aload 2
iload 3
iload 4
invokespecial org.graalvm.compiler.hotspot.nodes.G1PreWriteBarrier.<init>:(Lorg/graalvm/compiler/nodes/memory/address/AddressNode;Lorg/graalvm/compiler/nodes/ValueNode;ZZ)V
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.add:(Lorg/graalvm/compiler/graph/Node;)Lorg/graalvm/compiler/graph/Node;
checkcast org.graalvm.compiler.hotspot.nodes.G1PreWriteBarrier
astore 6
start local 6 1: aload 6
aload 0
invokevirtual org.graalvm.compiler.nodes.memory.FixedAccessNode.stateBefore:()Lorg/graalvm/compiler/nodes/FrameState;
invokevirtual org.graalvm.compiler.hotspot.nodes.G1PreWriteBarrier.setStateBefore:(Lorg/graalvm/compiler/nodes/FrameState;)V
2: aload 0
iconst_0
invokevirtual org.graalvm.compiler.nodes.memory.FixedAccessNode.setNullCheck:(Z)V
3: aload 0
aconst_null
invokevirtual org.graalvm.compiler.nodes.memory.FixedAccessNode.setStateBefore:(Lorg/graalvm/compiler/nodes/FrameState;)V
4: aload 5
aload 0
aload 6
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.addBeforeFixed:(Lorg/graalvm/compiler/nodes/FixedNode;Lorg/graalvm/compiler/nodes/FixedWithNextNode;)V
5: return
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 6 0 node Lorg/graalvm/compiler/nodes/memory/FixedAccessNode;
0 6 1 address Lorg/graalvm/compiler/nodes/memory/address/AddressNode;
0 6 2 value Lorg/graalvm/compiler/nodes/ValueNode;
0 6 3 doLoad Z
0 6 4 nullCheck Z
0 6 5 graph Lorg/graalvm/compiler/nodes/StructuredGraph;
1 6 6 preBarrier Lorg/graalvm/compiler/hotspot/nodes/G1PreWriteBarrier;
MethodParameters:
Name Flags
node
address
value
doLoad
nullCheck
graph
protected void addG1PostWriteBarrier(org.graalvm.compiler.nodes.memory.FixedAccessNode, org.graalvm.compiler.nodes.memory.address.AddressNode, org.graalvm.compiler.nodes.ValueNode, boolean, org.graalvm.compiler.nodes.StructuredGraph);
descriptor: (Lorg/graalvm/compiler/nodes/memory/FixedAccessNode;Lorg/graalvm/compiler/nodes/memory/address/AddressNode;Lorg/graalvm/compiler/nodes/ValueNode;ZLorg/graalvm/compiler/nodes/StructuredGraph;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=9, locals=7, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 3
invokestatic org.graalvm.compiler.nodes.type.StampTool.isPointerAlwaysNull:(Lorg/graalvm/compiler/nodes/ValueNode;)Z
istore 6
start local 6 1: aload 5
aload 1
aload 5
new org.graalvm.compiler.hotspot.nodes.G1PostWriteBarrier
dup
aload 2
aload 3
iload 4
iload 6
invokespecial org.graalvm.compiler.hotspot.nodes.G1PostWriteBarrier.<init>:(Lorg/graalvm/compiler/nodes/memory/address/AddressNode;Lorg/graalvm/compiler/nodes/ValueNode;ZZ)V
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.add:(Lorg/graalvm/compiler/graph/Node;)Lorg/graalvm/compiler/graph/Node;
checkcast org.graalvm.compiler.nodes.FixedNode
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.addAfterFixed:(Lorg/graalvm/compiler/nodes/FixedWithNextNode;Lorg/graalvm/compiler/nodes/FixedNode;)V
2: return
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 3 0 this Lorg/graalvm/compiler/hotspot/phases/WriteBarrierAdditionPhase;
0 3 1 node Lorg/graalvm/compiler/nodes/memory/FixedAccessNode;
0 3 2 address Lorg/graalvm/compiler/nodes/memory/address/AddressNode;
0 3 3 value Lorg/graalvm/compiler/nodes/ValueNode;
0 3 4 precise Z
0 3 5 graph Lorg/graalvm/compiler/nodes/StructuredGraph;
1 3 6 alwaysNull Z
MethodParameters:
Name Flags
node
address
value
precise
graph
protected void addSerialPostWriteBarrier(org.graalvm.compiler.nodes.memory.FixedAccessNode, org.graalvm.compiler.nodes.memory.address.AddressNode, org.graalvm.compiler.nodes.ValueNode, boolean, org.graalvm.compiler.nodes.StructuredGraph);
descriptor: (Lorg/graalvm/compiler/nodes/memory/FixedAccessNode;Lorg/graalvm/compiler/nodes/memory/address/AddressNode;Lorg/graalvm/compiler/nodes/ValueNode;ZLorg/graalvm/compiler/nodes/StructuredGraph;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=7, locals=7, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 3
invokestatic org.graalvm.compiler.nodes.type.StampTool.isPointerAlwaysNull:(Lorg/graalvm/compiler/nodes/ValueNode;)Z
istore 6
start local 6 1: iload 6
ifeq 3
2: return
3: StackMap locals: int
StackMap stack:
aload 5
aload 1
aload 5
new org.graalvm.compiler.hotspot.nodes.SerialWriteBarrier
dup
aload 2
iload 4
invokespecial org.graalvm.compiler.hotspot.nodes.SerialWriteBarrier.<init>:(Lorg/graalvm/compiler/nodes/memory/address/AddressNode;Z)V
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.add:(Lorg/graalvm/compiler/graph/Node;)Lorg/graalvm/compiler/graph/Node;
checkcast org.graalvm.compiler.nodes.FixedNode
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.addAfterFixed:(Lorg/graalvm/compiler/nodes/FixedWithNextNode;Lorg/graalvm/compiler/nodes/FixedNode;)V
4: return
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 5 0 this Lorg/graalvm/compiler/hotspot/phases/WriteBarrierAdditionPhase;
0 5 1 node Lorg/graalvm/compiler/nodes/memory/FixedAccessNode;
0 5 2 address Lorg/graalvm/compiler/nodes/memory/address/AddressNode;
0 5 3 value Lorg/graalvm/compiler/nodes/ValueNode;
0 5 4 precise Z
0 5 5 graph Lorg/graalvm/compiler/nodes/StructuredGraph;
1 5 6 alwaysNull Z
MethodParameters:
Name Flags
node
address
value
precise
graph
private void addWriteNodeBarriers(org.graalvm.compiler.nodes.memory.WriteNode, org.graalvm.compiler.nodes.StructuredGraph);
descriptor: (Lorg/graalvm/compiler/nodes/memory/WriteNode;Lorg/graalvm/compiler/nodes/StructuredGraph;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual org.graalvm.compiler.nodes.memory.WriteNode.getBarrierType:()Lorg/graalvm/compiler/nodes/memory/HeapAccess$BarrierType;
astore 3
start local 3 1: invokestatic org.graalvm.compiler.hotspot.phases.WriteBarrierAdditionPhase.$SWITCH_TABLE$org$graalvm$compiler$nodes$memory$HeapAccess$BarrierType:()[I
aload 3
invokevirtual org.graalvm.compiler.nodes.memory.HeapAccess$BarrierType.ordinal:()I
iaload
tableswitch { // 1 - 3
1: 2
2: 3
3: 3
default: 13
}
2: StackMap locals: org.graalvm.compiler.nodes.memory.HeapAccess$BarrierType
StackMap stack:
goto 14
3: StackMap locals:
StackMap stack:
aload 3
getstatic org.graalvm.compiler.nodes.memory.HeapAccess$BarrierType.PRECISE:Lorg/graalvm/compiler/nodes/memory/HeapAccess$BarrierType;
if_acmpne 4
iconst_1
goto 5
StackMap locals:
StackMap stack:
4: iconst_0
StackMap locals:
StackMap stack: int
5: istore 4
start local 4 6: aload 0
getfield org.graalvm.compiler.hotspot.phases.WriteBarrierAdditionPhase.config:Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;
getfield org.graalvm.compiler.hotspot.GraalHotSpotVMConfig.useG1GC:Z
ifeq 11
7: aload 1
invokevirtual org.graalvm.compiler.nodes.memory.WriteNode.getLocationIdentity:()Lorg/graalvm/word/LocationIdentity;
invokevirtual org.graalvm.word.LocationIdentity.isInit:()Z
ifne 9
8: aload 1
aload 1
invokevirtual org.graalvm.compiler.nodes.memory.WriteNode.getAddress:()Lorg/graalvm/compiler/nodes/memory/address/AddressNode;
aconst_null
iconst_1
aload 1
invokevirtual org.graalvm.compiler.nodes.memory.WriteNode.getNullCheck:()Z
aload 2
invokestatic org.graalvm.compiler.hotspot.phases.WriteBarrierAdditionPhase.addG1PreWriteBarrier:(Lorg/graalvm/compiler/nodes/memory/FixedAccessNode;Lorg/graalvm/compiler/nodes/memory/address/AddressNode;Lorg/graalvm/compiler/nodes/ValueNode;ZZLorg/graalvm/compiler/nodes/StructuredGraph;)V
9: StackMap locals: int
StackMap stack:
aload 0
aload 1
aload 1
invokevirtual org.graalvm.compiler.nodes.memory.WriteNode.getAddress:()Lorg/graalvm/compiler/nodes/memory/address/AddressNode;
aload 1
invokevirtual org.graalvm.compiler.nodes.memory.WriteNode.value:()Lorg/graalvm/compiler/nodes/ValueNode;
iload 4
aload 2
invokevirtual org.graalvm.compiler.hotspot.phases.WriteBarrierAdditionPhase.addG1PostWriteBarrier:(Lorg/graalvm/compiler/nodes/memory/FixedAccessNode;Lorg/graalvm/compiler/nodes/memory/address/AddressNode;Lorg/graalvm/compiler/nodes/ValueNode;ZLorg/graalvm/compiler/nodes/StructuredGraph;)V
10: goto 14
11: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 1
invokevirtual org.graalvm.compiler.nodes.memory.WriteNode.getAddress:()Lorg/graalvm/compiler/nodes/memory/address/AddressNode;
aload 1
invokevirtual org.graalvm.compiler.nodes.memory.WriteNode.value:()Lorg/graalvm/compiler/nodes/ValueNode;
iload 4
aload 2
invokevirtual org.graalvm.compiler.hotspot.phases.WriteBarrierAdditionPhase.addSerialPostWriteBarrier:(Lorg/graalvm/compiler/nodes/memory/FixedAccessNode;Lorg/graalvm/compiler/nodes/memory/address/AddressNode;Lorg/graalvm/compiler/nodes/ValueNode;ZLorg/graalvm/compiler/nodes/StructuredGraph;)V
12: goto 14
end local 4 13: StackMap locals:
StackMap stack:
new org.graalvm.compiler.debug.GraalError
dup
new java.lang.StringBuilder
dup
ldc "unexpected barrier type: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.graalvm.compiler.debug.GraalError.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/graalvm/compiler/hotspot/phases/WriteBarrierAdditionPhase;
0 15 1 node Lorg/graalvm/compiler/nodes/memory/WriteNode;
0 15 2 graph Lorg/graalvm/compiler/nodes/StructuredGraph;
1 15 3 barrierType Lorg/graalvm/compiler/nodes/memory/HeapAccess$BarrierType;
6 13 4 precise Z
MethodParameters:
Name Flags
node
graph
private void addAtomicReadWriteNodeBarriers(org.graalvm.compiler.nodes.java.LoweredAtomicReadAndWriteNode, org.graalvm.compiler.nodes.StructuredGraph);
descriptor: (Lorg/graalvm/compiler/nodes/java/LoweredAtomicReadAndWriteNode;Lorg/graalvm/compiler/nodes/StructuredGraph;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual org.graalvm.compiler.nodes.java.LoweredAtomicReadAndWriteNode.getBarrierType:()Lorg/graalvm/compiler/nodes/memory/HeapAccess$BarrierType;
astore 3
start local 3 1: invokestatic org.graalvm.compiler.hotspot.phases.WriteBarrierAdditionPhase.$SWITCH_TABLE$org$graalvm$compiler$nodes$memory$HeapAccess$BarrierType:()[I
aload 3
invokevirtual org.graalvm.compiler.nodes.memory.HeapAccess$BarrierType.ordinal:()I
iaload
tableswitch { // 1 - 3
1: 2
2: 3
3: 3
default: 12
}
2: StackMap locals: org.graalvm.compiler.nodes.memory.HeapAccess$BarrierType
StackMap stack:
goto 13
3: StackMap locals:
StackMap stack:
aload 3
getstatic org.graalvm.compiler.nodes.memory.HeapAccess$BarrierType.PRECISE:Lorg/graalvm/compiler/nodes/memory/HeapAccess$BarrierType;
if_acmpne 4
iconst_1
goto 5
StackMap locals:
StackMap stack:
4: iconst_0
StackMap locals:
StackMap stack: int
5: istore 4
start local 4 6: aload 0
getfield org.graalvm.compiler.hotspot.phases.WriteBarrierAdditionPhase.config:Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;
getfield org.graalvm.compiler.hotspot.GraalHotSpotVMConfig.useG1GC:Z
ifeq 10
7: aload 1
aload 1
invokevirtual org.graalvm.compiler.nodes.java.LoweredAtomicReadAndWriteNode.getAddress:()Lorg/graalvm/compiler/nodes/memory/address/AddressNode;
aconst_null
iconst_1
aload 1
invokevirtual org.graalvm.compiler.nodes.java.LoweredAtomicReadAndWriteNode.getNullCheck:()Z
aload 2
invokestatic org.graalvm.compiler.hotspot.phases.WriteBarrierAdditionPhase.addG1PreWriteBarrier:(Lorg/graalvm/compiler/nodes/memory/FixedAccessNode;Lorg/graalvm/compiler/nodes/memory/address/AddressNode;Lorg/graalvm/compiler/nodes/ValueNode;ZZLorg/graalvm/compiler/nodes/StructuredGraph;)V
8: aload 0
aload 1
aload 1
invokevirtual org.graalvm.compiler.nodes.java.LoweredAtomicReadAndWriteNode.getAddress:()Lorg/graalvm/compiler/nodes/memory/address/AddressNode;
aload 1
invokevirtual org.graalvm.compiler.nodes.java.LoweredAtomicReadAndWriteNode.getNewValue:()Lorg/graalvm/compiler/nodes/ValueNode;
iload 4
aload 2
invokevirtual org.graalvm.compiler.hotspot.phases.WriteBarrierAdditionPhase.addG1PostWriteBarrier:(Lorg/graalvm/compiler/nodes/memory/FixedAccessNode;Lorg/graalvm/compiler/nodes/memory/address/AddressNode;Lorg/graalvm/compiler/nodes/ValueNode;ZLorg/graalvm/compiler/nodes/StructuredGraph;)V
9: goto 13
10: StackMap locals: int
StackMap stack:
aload 0
aload 1
aload 1
invokevirtual org.graalvm.compiler.nodes.java.LoweredAtomicReadAndWriteNode.getAddress:()Lorg/graalvm/compiler/nodes/memory/address/AddressNode;
aload 1
invokevirtual org.graalvm.compiler.nodes.java.LoweredAtomicReadAndWriteNode.getNewValue:()Lorg/graalvm/compiler/nodes/ValueNode;
iload 4
aload 2
invokevirtual org.graalvm.compiler.hotspot.phases.WriteBarrierAdditionPhase.addSerialPostWriteBarrier:(Lorg/graalvm/compiler/nodes/memory/FixedAccessNode;Lorg/graalvm/compiler/nodes/memory/address/AddressNode;Lorg/graalvm/compiler/nodes/ValueNode;ZLorg/graalvm/compiler/nodes/StructuredGraph;)V
11: goto 13
end local 4 12: StackMap locals:
StackMap stack:
new org.graalvm.compiler.debug.GraalError
dup
new java.lang.StringBuilder
dup
ldc "unexpected barrier type: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.graalvm.compiler.debug.GraalError.<init>:(Ljava/lang/String;)V
athrow
13: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/graalvm/compiler/hotspot/phases/WriteBarrierAdditionPhase;
0 14 1 node Lorg/graalvm/compiler/nodes/java/LoweredAtomicReadAndWriteNode;
0 14 2 graph Lorg/graalvm/compiler/nodes/StructuredGraph;
1 14 3 barrierType Lorg/graalvm/compiler/nodes/memory/HeapAccess$BarrierType;
6 12 4 precise Z
MethodParameters:
Name Flags
node
graph
private void addCASBarriers(org.graalvm.compiler.nodes.java.AbstractCompareAndSwapNode, org.graalvm.compiler.nodes.StructuredGraph);
descriptor: (Lorg/graalvm/compiler/nodes/java/AbstractCompareAndSwapNode;Lorg/graalvm/compiler/nodes/StructuredGraph;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual org.graalvm.compiler.nodes.java.AbstractCompareAndSwapNode.getBarrierType:()Lorg/graalvm/compiler/nodes/memory/HeapAccess$BarrierType;
astore 3
start local 3 1: invokestatic org.graalvm.compiler.hotspot.phases.WriteBarrierAdditionPhase.$SWITCH_TABLE$org$graalvm$compiler$nodes$memory$HeapAccess$BarrierType:()[I
aload 3
invokevirtual org.graalvm.compiler.nodes.memory.HeapAccess$BarrierType.ordinal:()I
iaload
tableswitch { // 1 - 3
1: 2
2: 3
3: 3
default: 12
}
2: StackMap locals: org.graalvm.compiler.nodes.memory.HeapAccess$BarrierType
StackMap stack:
goto 13
3: StackMap locals:
StackMap stack:
aload 3
getstatic org.graalvm.compiler.nodes.memory.HeapAccess$BarrierType.PRECISE:Lorg/graalvm/compiler/nodes/memory/HeapAccess$BarrierType;
if_acmpne 4
iconst_1
goto 5
StackMap locals:
StackMap stack:
4: iconst_0
StackMap locals:
StackMap stack: int
5: istore 4
start local 4 6: aload 0
getfield org.graalvm.compiler.hotspot.phases.WriteBarrierAdditionPhase.config:Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;
getfield org.graalvm.compiler.hotspot.GraalHotSpotVMConfig.useG1GC:Z
ifeq 10
7: aload 1
aload 1
invokevirtual org.graalvm.compiler.nodes.java.AbstractCompareAndSwapNode.getAddress:()Lorg/graalvm/compiler/nodes/memory/address/AddressNode;
aload 1
invokevirtual org.graalvm.compiler.nodes.java.AbstractCompareAndSwapNode.getExpectedValue:()Lorg/graalvm/compiler/nodes/ValueNode;
iconst_0
iconst_0
aload 2
invokestatic org.graalvm.compiler.hotspot.phases.WriteBarrierAdditionPhase.addG1PreWriteBarrier:(Lorg/graalvm/compiler/nodes/memory/FixedAccessNode;Lorg/graalvm/compiler/nodes/memory/address/AddressNode;Lorg/graalvm/compiler/nodes/ValueNode;ZZLorg/graalvm/compiler/nodes/StructuredGraph;)V
8: aload 0
aload 1
aload 1
invokevirtual org.graalvm.compiler.nodes.java.AbstractCompareAndSwapNode.getAddress:()Lorg/graalvm/compiler/nodes/memory/address/AddressNode;
aload 1
invokevirtual org.graalvm.compiler.nodes.java.AbstractCompareAndSwapNode.getNewValue:()Lorg/graalvm/compiler/nodes/ValueNode;
iload 4
aload 2
invokevirtual org.graalvm.compiler.hotspot.phases.WriteBarrierAdditionPhase.addG1PostWriteBarrier:(Lorg/graalvm/compiler/nodes/memory/FixedAccessNode;Lorg/graalvm/compiler/nodes/memory/address/AddressNode;Lorg/graalvm/compiler/nodes/ValueNode;ZLorg/graalvm/compiler/nodes/StructuredGraph;)V
9: goto 13
10: StackMap locals: int
StackMap stack:
aload 0
aload 1
aload 1
invokevirtual org.graalvm.compiler.nodes.java.AbstractCompareAndSwapNode.getAddress:()Lorg/graalvm/compiler/nodes/memory/address/AddressNode;
aload 1
invokevirtual org.graalvm.compiler.nodes.java.AbstractCompareAndSwapNode.getNewValue:()Lorg/graalvm/compiler/nodes/ValueNode;
iload 4
aload 2
invokevirtual org.graalvm.compiler.hotspot.phases.WriteBarrierAdditionPhase.addSerialPostWriteBarrier:(Lorg/graalvm/compiler/nodes/memory/FixedAccessNode;Lorg/graalvm/compiler/nodes/memory/address/AddressNode;Lorg/graalvm/compiler/nodes/ValueNode;ZLorg/graalvm/compiler/nodes/StructuredGraph;)V
11: goto 13
end local 4 12: StackMap locals:
StackMap stack:
new org.graalvm.compiler.debug.GraalError
dup
new java.lang.StringBuilder
dup
ldc "unexpected barrier type: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.graalvm.compiler.debug.GraalError.<init>:(Ljava/lang/String;)V
athrow
13: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/graalvm/compiler/hotspot/phases/WriteBarrierAdditionPhase;
0 14 1 node Lorg/graalvm/compiler/nodes/java/AbstractCompareAndSwapNode;
0 14 2 graph Lorg/graalvm/compiler/nodes/StructuredGraph;
1 14 3 barrierType Lorg/graalvm/compiler/nodes/memory/HeapAccess$BarrierType;
6 12 4 precise Z
MethodParameters:
Name Flags
node
graph
private void addArrayRangeBarriers(org.graalvm.compiler.nodes.extended.ArrayRangeWriteNode, org.graalvm.compiler.nodes.StructuredGraph);
descriptor: (Lorg/graalvm/compiler/nodes/extended/ArrayRangeWriteNode;Lorg/graalvm/compiler/nodes/StructuredGraph;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.graalvm.compiler.hotspot.phases.WriteBarrierAdditionPhase.config:Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;
getfield org.graalvm.compiler.hotspot.GraalHotSpotVMConfig.useG1GC:Z
ifeq 7
1: aload 1
invokevirtual org.graalvm.compiler.nodes.extended.ArrayRangeWriteNode.isInitialization:()Z
ifne 4
2: aload 2
new org.graalvm.compiler.hotspot.nodes.G1ArrayRangePreWriteBarrier
dup
aload 1
invokevirtual org.graalvm.compiler.nodes.extended.ArrayRangeWriteNode.getArray:()Lorg/graalvm/compiler/nodes/ValueNode;
aload 1
invokevirtual org.graalvm.compiler.nodes.extended.ArrayRangeWriteNode.getIndex:()Lorg/graalvm/compiler/nodes/ValueNode;
aload 1
invokevirtual org.graalvm.compiler.nodes.extended.ArrayRangeWriteNode.getLength:()Lorg/graalvm/compiler/nodes/ValueNode;
invokespecial org.graalvm.compiler.hotspot.nodes.G1ArrayRangePreWriteBarrier.<init>:(Lorg/graalvm/compiler/nodes/ValueNode;Lorg/graalvm/compiler/nodes/ValueNode;Lorg/graalvm/compiler/nodes/ValueNode;)V
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.add:(Lorg/graalvm/compiler/graph/Node;)Lorg/graalvm/compiler/graph/Node;
checkcast org.graalvm.compiler.hotspot.nodes.G1ArrayRangePreWriteBarrier
astore 3
start local 3 3: aload 2
aload 1
aload 3
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.addBeforeFixed:(Lorg/graalvm/compiler/nodes/FixedNode;Lorg/graalvm/compiler/nodes/FixedWithNextNode;)V
end local 3 4: StackMap locals:
StackMap stack:
aload 2
new org.graalvm.compiler.hotspot.nodes.G1ArrayRangePostWriteBarrier
dup
aload 1
invokevirtual org.graalvm.compiler.nodes.extended.ArrayRangeWriteNode.getArray:()Lorg/graalvm/compiler/nodes/ValueNode;
aload 1
invokevirtual org.graalvm.compiler.nodes.extended.ArrayRangeWriteNode.getIndex:()Lorg/graalvm/compiler/nodes/ValueNode;
aload 1
invokevirtual org.graalvm.compiler.nodes.extended.ArrayRangeWriteNode.getLength:()Lorg/graalvm/compiler/nodes/ValueNode;
invokespecial org.graalvm.compiler.hotspot.nodes.G1ArrayRangePostWriteBarrier.<init>:(Lorg/graalvm/compiler/nodes/ValueNode;Lorg/graalvm/compiler/nodes/ValueNode;Lorg/graalvm/compiler/nodes/ValueNode;)V
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.add:(Lorg/graalvm/compiler/graph/Node;)Lorg/graalvm/compiler/graph/Node;
checkcast org.graalvm.compiler.hotspot.nodes.G1ArrayRangePostWriteBarrier
astore 3
start local 3 5: aload 2
aload 1
aload 3
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.addAfterFixed:(Lorg/graalvm/compiler/nodes/FixedWithNextNode;Lorg/graalvm/compiler/nodes/FixedNode;)V
end local 3 6: goto 9
7: StackMap locals:
StackMap stack:
aload 2
new org.graalvm.compiler.hotspot.nodes.SerialArrayRangeWriteBarrier
dup
aload 1
invokevirtual org.graalvm.compiler.nodes.extended.ArrayRangeWriteNode.getArray:()Lorg/graalvm/compiler/nodes/ValueNode;
aload 1
invokevirtual org.graalvm.compiler.nodes.extended.ArrayRangeWriteNode.getIndex:()Lorg/graalvm/compiler/nodes/ValueNode;
aload 1
invokevirtual org.graalvm.compiler.nodes.extended.ArrayRangeWriteNode.getLength:()Lorg/graalvm/compiler/nodes/ValueNode;
invokespecial org.graalvm.compiler.hotspot.nodes.SerialArrayRangeWriteBarrier.<init>:(Lorg/graalvm/compiler/nodes/ValueNode;Lorg/graalvm/compiler/nodes/ValueNode;Lorg/graalvm/compiler/nodes/ValueNode;)V
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.add:(Lorg/graalvm/compiler/graph/Node;)Lorg/graalvm/compiler/graph/Node;
checkcast org.graalvm.compiler.hotspot.nodes.SerialArrayRangeWriteBarrier
astore 3
start local 3 8: aload 2
aload 1
aload 3
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.addAfterFixed:(Lorg/graalvm/compiler/nodes/FixedWithNextNode;Lorg/graalvm/compiler/nodes/FixedNode;)V
end local 3 9: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/graalvm/compiler/hotspot/phases/WriteBarrierAdditionPhase;
0 10 1 node Lorg/graalvm/compiler/nodes/extended/ArrayRangeWriteNode;
0 10 2 graph Lorg/graalvm/compiler/nodes/StructuredGraph;
3 4 3 g1ArrayRangePreWriteBarrier Lorg/graalvm/compiler/hotspot/nodes/G1ArrayRangePreWriteBarrier;
5 6 3 g1ArrayRangePostWriteBarrier Lorg/graalvm/compiler/hotspot/nodes/G1ArrayRangePostWriteBarrier;
8 9 3 serialArrayRangeWriteBarrier Lorg/graalvm/compiler/hotspot/nodes/SerialArrayRangeWriteBarrier;
MethodParameters:
Name Flags
node
graph
public boolean checkContract();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/hotspot/phases/WriteBarrierAdditionPhase;
static int[] $SWITCH_TABLE$org$graalvm$compiler$nodes$memory$HeapAccess$BarrierType();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic org.graalvm.compiler.hotspot.phases.WriteBarrierAdditionPhase.$SWITCH_TABLE$org$graalvm$compiler$nodes$memory$HeapAccess$BarrierType:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic org.graalvm.compiler.nodes.memory.HeapAccess$BarrierType.values:()[Lorg/graalvm/compiler/nodes/memory/HeapAccess$BarrierType;
arraylength
newarray 10
astore 0
2: aload 0
getstatic org.graalvm.compiler.nodes.memory.HeapAccess$BarrierType.IMPRECISE:Lorg/graalvm/compiler/nodes/memory/HeapAccess$BarrierType;
invokevirtual org.graalvm.compiler.nodes.memory.HeapAccess$BarrierType.ordinal:()I
iconst_3
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic org.graalvm.compiler.nodes.memory.HeapAccess$BarrierType.NONE:Lorg/graalvm/compiler/nodes/memory/HeapAccess$BarrierType;
invokevirtual org.graalvm.compiler.nodes.memory.HeapAccess$BarrierType.ordinal:()I
iconst_1
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic org.graalvm.compiler.nodes.memory.HeapAccess$BarrierType.PRECISE:Lorg/graalvm/compiler/nodes/memory/HeapAccess$BarrierType;
invokevirtual org.graalvm.compiler.nodes.memory.HeapAccess$BarrierType.ordinal:()I
iconst_2
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
dup
putstatic org.graalvm.compiler.hotspot.phases.WriteBarrierAdditionPhase.$SWITCH_TABLE$org$graalvm$compiler$nodes$memory$HeapAccess$BarrierType:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
8 9 10 Class java.lang.NoSuchFieldError
}
SourceFile: "WriteBarrierAdditionPhase.java"
InnerClasses:
public final BarrierType = org.graalvm.compiler.nodes.memory.HeapAccess$BarrierType of org.graalvm.compiler.nodes.memory.HeapAccess