public final class org.graalvm.compiler.hotspot.HotSpotReferenceMapBuilder extends org.graalvm.compiler.lir.framemap.ReferenceMapBuilder
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.graalvm.compiler.hotspot.HotSpotReferenceMapBuilder
super_class: org.graalvm.compiler.lir.framemap.ReferenceMapBuilder
{
private int maxRegisterSize;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private final java.util.ArrayList<jdk.vm.ci.meta.Value> objectValues;
descriptor: Ljava/util/ArrayList;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/ArrayList<Ljdk/vm/ci/meta/Value;>;
private int objectCount;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private final int totalFrameSize;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int maxOopMapStackOffset;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int uncompressedReferenceSize;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static final jdk.vm.ci.code.Location[] NO_LOCATIONS;
descriptor: [Ljdk/vm/ci/code/Location;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int[] NO_SIZES;
descriptor: [I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
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/hotspot/HotSpotReferenceMapBuilder;
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.HotSpotReferenceMapBuilder.$assertionsDisabled:Z
3: iconst_0
anewarray jdk.vm.ci.code.Location
putstatic org.graalvm.compiler.hotspot.HotSpotReferenceMapBuilder.NO_LOCATIONS:[Ljdk/vm/ci/code/Location;
4: iconst_0
newarray 10
putstatic org.graalvm.compiler.hotspot.HotSpotReferenceMapBuilder.NO_SIZES:[I
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(int, int, int);
descriptor: (III)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial org.graalvm.compiler.lir.framemap.ReferenceMapBuilder.<init>:()V
1: aload 0
iload 3
putfield org.graalvm.compiler.hotspot.HotSpotReferenceMapBuilder.uncompressedReferenceSize:I
2: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield org.graalvm.compiler.hotspot.HotSpotReferenceMapBuilder.objectValues:Ljava/util/ArrayList;
3: aload 0
iconst_0
putfield org.graalvm.compiler.hotspot.HotSpotReferenceMapBuilder.objectCount:I
4: aload 0
iload 2
putfield org.graalvm.compiler.hotspot.HotSpotReferenceMapBuilder.maxOopMapStackOffset:I
5: aload 0
iload 1
putfield org.graalvm.compiler.hotspot.HotSpotReferenceMapBuilder.totalFrameSize:I
6: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/graalvm/compiler/hotspot/HotSpotReferenceMapBuilder;
0 7 1 totalFrameSize I
0 7 2 maxOopMapStackOffset I
0 7 3 uncompressedReferenceSize I
MethodParameters:
Name Flags
totalFrameSize
maxOopMapStackOffset
uncompressedReferenceSize
public void addLiveValue(jdk.vm.ci.meta.Value);
descriptor: (Ljdk/vm/ci/meta/Value;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.graalvm.compiler.lir.LIRValueUtil.isJavaConstant:(Ljdk/vm/ci/meta/Value;)Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
aload 1
invokevirtual jdk.vm.ci.meta.Value.getValueKind:()Ljdk/vm/ci/meta/ValueKind;
checkcast org.graalvm.compiler.core.common.LIRKind
astore 2
start local 2 3: aload 2
invokevirtual org.graalvm.compiler.core.common.LIRKind.isValue:()Z
ifne 9
4: aload 0
getfield org.graalvm.compiler.hotspot.HotSpotReferenceMapBuilder.objectValues:Ljava/util/ArrayList;
aload 1
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
5: aload 2
invokevirtual org.graalvm.compiler.core.common.LIRKind.isUnknownReference:()Z
ifeq 8
6: aload 0
dup
getfield org.graalvm.compiler.hotspot.HotSpotReferenceMapBuilder.objectCount:I
iconst_1
iadd
putfield org.graalvm.compiler.hotspot.HotSpotReferenceMapBuilder.objectCount:I
7: goto 9
8: StackMap locals: org.graalvm.compiler.core.common.LIRKind
StackMap stack:
aload 0
dup
getfield org.graalvm.compiler.hotspot.HotSpotReferenceMapBuilder.objectCount:I
aload 2
invokevirtual org.graalvm.compiler.core.common.LIRKind.getReferenceCount:()I
iadd
putfield org.graalvm.compiler.hotspot.HotSpotReferenceMapBuilder.objectCount:I
9: StackMap locals:
StackMap stack:
aload 1
invokestatic jdk.vm.ci.code.ValueUtil.isRegister:(Ljdk/vm/ci/meta/Value;)Z
ifeq 13
10: aload 2
invokevirtual org.graalvm.compiler.core.common.LIRKind.getPlatformKind:()Ljdk/vm/ci/meta/PlatformKind;
invokeinterface jdk.vm.ci.meta.PlatformKind.getSizeInBytes:()I
istore 3
start local 3 11: iload 3
aload 0
getfield org.graalvm.compiler.hotspot.HotSpotReferenceMapBuilder.maxRegisterSize:I
if_icmple 13
12: aload 0
iload 3
putfield org.graalvm.compiler.hotspot.HotSpotReferenceMapBuilder.maxRegisterSize:I
end local 3 13: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/graalvm/compiler/hotspot/HotSpotReferenceMapBuilder;
0 14 1 v Ljdk/vm/ci/meta/Value;
3 14 2 lirKind Lorg/graalvm/compiler/core/common/LIRKind;
11 13 3 size I
MethodParameters:
Name Flags
v
public jdk.vm.ci.code.ReferenceMap finish(org.graalvm.compiler.lir.LIRFrameState);
descriptor: (Lorg/graalvm/compiler/lir/LIRFrameState;)Ljdk/vm/ci/code/ReferenceMap;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=13, args_size=2
start local 0 start local 1 0: aload 0
getfield org.graalvm.compiler.hotspot.HotSpotReferenceMapBuilder.objectCount:I
ifne 5
1: getstatic org.graalvm.compiler.hotspot.HotSpotReferenceMapBuilder.NO_LOCATIONS:[Ljdk/vm/ci/code/Location;
astore 2
start local 2 2: getstatic org.graalvm.compiler.hotspot.HotSpotReferenceMapBuilder.NO_LOCATIONS:[Ljdk/vm/ci/code/Location;
astore 3
start local 3 3: getstatic org.graalvm.compiler.hotspot.HotSpotReferenceMapBuilder.NO_SIZES:[I
astore 4
start local 4 4: goto 8
end local 4 end local 3 end local 2 5: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.compiler.hotspot.HotSpotReferenceMapBuilder.objectCount:I
anewarray jdk.vm.ci.code.Location
astore 2
start local 2 6: aload 0
getfield org.graalvm.compiler.hotspot.HotSpotReferenceMapBuilder.objectCount:I
anewarray jdk.vm.ci.code.Location
astore 3
start local 3 7: aload 0
getfield org.graalvm.compiler.hotspot.HotSpotReferenceMapBuilder.objectCount:I
newarray 10
astore 4
start local 4 8: StackMap locals: jdk.vm.ci.code.Location[] jdk.vm.ci.code.Location[] int[]
StackMap stack:
iconst_0
istore 5
start local 5 9: aload 0
getfield org.graalvm.compiler.hotspot.HotSpotReferenceMapBuilder.objectValues:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.iterator:()Ljava/util/Iterator;
astore 7
goto 36
StackMap locals: org.graalvm.compiler.hotspot.HotSpotReferenceMapBuilder org.graalvm.compiler.lir.LIRFrameState jdk.vm.ci.code.Location[] jdk.vm.ci.code.Location[] int[] int top java.util.Iterator
StackMap stack:
10: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.vm.ci.meta.Value
astore 6
start local 6 11: aload 6
invokevirtual jdk.vm.ci.meta.Value.getValueKind:()Ljdk/vm/ci/meta/ValueKind;
checkcast org.graalvm.compiler.core.common.LIRKind
astore 8
start local 8 12: aload 8
invokestatic org.graalvm.compiler.hotspot.HotSpotReferenceMapBuilder.bytesPerElement:(Lorg/graalvm/compiler/core/common/LIRKind;)I
istore 9
start local 9 13: aload 8
invokevirtual org.graalvm.compiler.core.common.LIRKind.isUnknownReference:()Z
ifeq 15
14: ldc "unknown reference alive across safepoint: %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 6
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokestatic org.graalvm.compiler.debug.GraalError.shouldNotReachHere:(Ljava/lang/String;)Ljava/lang/RuntimeException;
athrow
15: StackMap locals: org.graalvm.compiler.hotspot.HotSpotReferenceMapBuilder org.graalvm.compiler.lir.LIRFrameState jdk.vm.ci.code.Location[] jdk.vm.ci.code.Location[] int[] int jdk.vm.ci.meta.Value java.util.Iterator org.graalvm.compiler.core.common.LIRKind int
StackMap stack:
aconst_null
astore 10
start local 10 16: aload 8
invokevirtual org.graalvm.compiler.core.common.LIRKind.isDerivedReference:()Z
ifeq 24
17: aload 8
invokevirtual org.graalvm.compiler.core.common.LIRKind.getDerivedReferenceBase:()Ljdk/vm/ci/meta/AllocatableValue;
checkcast org.graalvm.compiler.lir.Variable
astore 11
start local 11 18: aload 1
invokevirtual org.graalvm.compiler.lir.LIRFrameState.getLiveBasePointers:()Lorg/graalvm/compiler/lir/util/IndexedValueMap;
aload 11
getfield org.graalvm.compiler.lir.Variable.index:I
invokevirtual org.graalvm.compiler.lir.util.IndexedValueMap.get:(I)Ljdk/vm/ci/meta/Value;
astore 12
start local 12 19: getstatic org.graalvm.compiler.hotspot.HotSpotReferenceMapBuilder.$assertionsDisabled:Z
ifne 23
aload 12
invokevirtual jdk.vm.ci.meta.Value.getPlatformKind:()Ljdk/vm/ci/meta/PlatformKind;
invokeinterface jdk.vm.ci.meta.PlatformKind.getVectorLength:()I
iconst_1
if_icmpne 22
20: aload 12
invokevirtual jdk.vm.ci.meta.Value.getValueKind:()Ljdk/vm/ci/meta/ValueKind;
checkcast org.graalvm.compiler.core.common.LIRKind
iconst_0
invokevirtual org.graalvm.compiler.core.common.LIRKind.isReference:(I)Z
ifeq 22
21: aload 12
invokevirtual jdk.vm.ci.meta.Value.getValueKind:()Ljdk/vm/ci/meta/ValueKind;
checkcast org.graalvm.compiler.core.common.LIRKind
invokevirtual org.graalvm.compiler.core.common.LIRKind.isDerivedReference:()Z
ifeq 23
StackMap locals: jdk.vm.ci.code.Location org.graalvm.compiler.lir.Variable jdk.vm.ci.meta.Value
StackMap stack:
22: new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
23: StackMap locals:
StackMap stack:
aload 0
aload 12
iconst_0
invokevirtual org.graalvm.compiler.hotspot.HotSpotReferenceMapBuilder.toLocation:(Ljdk/vm/ci/meta/Value;I)Ljdk/vm/ci/code/Location;
astore 10
end local 12 end local 11 24: StackMap locals:
StackMap stack:
iconst_0
istore 11
start local 11 25: goto 35
26: StackMap locals: int
StackMap stack:
aload 8
iload 11
invokevirtual org.graalvm.compiler.core.common.LIRKind.isReference:(I)Z
ifeq 34
27: getstatic org.graalvm.compiler.hotspot.HotSpotReferenceMapBuilder.$assertionsDisabled:Z
ifne 30
aload 8
iload 11
invokevirtual org.graalvm.compiler.core.common.LIRKind.isCompressedReference:(I)Z
ifeq 28
iload 9
aload 0
getfield org.graalvm.compiler.hotspot.HotSpotReferenceMapBuilder.uncompressedReferenceSize:I
if_icmplt 30
goto 29
StackMap locals:
StackMap stack:
28: iload 9
aload 0
getfield org.graalvm.compiler.hotspot.HotSpotReferenceMapBuilder.uncompressedReferenceSize:I
if_icmpeq 30
StackMap locals:
StackMap stack:
29: new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
30: StackMap locals:
StackMap stack:
aload 2
iload 5
aload 0
aload 6
iload 11
iload 9
imul
invokevirtual org.graalvm.compiler.hotspot.HotSpotReferenceMapBuilder.toLocation:(Ljdk/vm/ci/meta/Value;I)Ljdk/vm/ci/code/Location;
aastore
31: aload 3
iload 5
aload 10
aastore
32: aload 4
iload 5
iload 9
iastore
33: iinc 5 1
34: StackMap locals:
StackMap stack:
iinc 11 1
StackMap locals:
StackMap stack:
35: iload 11
aload 8
invokevirtual org.graalvm.compiler.core.common.LIRKind.getPlatformKind:()Ljdk/vm/ci/meta/PlatformKind;
invokeinterface jdk.vm.ci.meta.PlatformKind.getVectorLength:()I
if_icmplt 26
end local 11 end local 10 end local 9 end local 8 end local 6 36: StackMap locals: org.graalvm.compiler.hotspot.HotSpotReferenceMapBuilder org.graalvm.compiler.lir.LIRFrameState jdk.vm.ci.code.Location[] jdk.vm.ci.code.Location[] int[] int top java.util.Iterator
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 10
37: new jdk.vm.ci.hotspot.HotSpotReferenceMap
dup
aload 2
aload 3
aload 4
aload 0
getfield org.graalvm.compiler.hotspot.HotSpotReferenceMapBuilder.maxRegisterSize:I
invokespecial jdk.vm.ci.hotspot.HotSpotReferenceMap.<init>:([Ljdk/vm/ci/code/Location;[Ljdk/vm/ci/code/Location;[II)V
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 38 0 this Lorg/graalvm/compiler/hotspot/HotSpotReferenceMapBuilder;
0 38 1 state Lorg/graalvm/compiler/lir/LIRFrameState;
2 5 2 objects [Ljdk/vm/ci/code/Location;
6 38 2 objects [Ljdk/vm/ci/code/Location;
3 5 3 derivedBase [Ljdk/vm/ci/code/Location;
7 38 3 derivedBase [Ljdk/vm/ci/code/Location;
4 5 4 sizeInBytes [I
8 38 4 sizeInBytes [I
9 38 5 idx I
11 36 6 obj Ljdk/vm/ci/meta/Value;
12 36 8 kind Lorg/graalvm/compiler/core/common/LIRKind;
13 36 9 bytes I
16 36 10 base Ljdk/vm/ci/code/Location;
18 24 11 baseVariable Lorg/graalvm/compiler/lir/Variable;
19 24 12 baseValue Ljdk/vm/ci/meta/Value;
25 36 11 i I
MethodParameters:
Name Flags
state
private static int bytesPerElement(org.graalvm.compiler.core.common.LIRKind);
descriptor: (Lorg/graalvm/compiler/core/common/LIRKind;)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.graalvm.compiler.core.common.LIRKind.getPlatformKind:()Ljdk/vm/ci/meta/PlatformKind;
astore 1
start local 1 1: aload 1
invokeinterface jdk.vm.ci.meta.PlatformKind.getSizeInBytes:()I
aload 1
invokeinterface jdk.vm.ci.meta.PlatformKind.getVectorLength:()I
idiv
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 kind Lorg/graalvm/compiler/core/common/LIRKind;
1 2 1 platformKind Ljdk/vm/ci/meta/PlatformKind;
MethodParameters:
Name Flags
kind
private jdk.vm.ci.code.Location toLocation(jdk.vm.ci.meta.Value, int);
descriptor: (Ljdk/vm/ci/meta/Value;I)Ljdk/vm/ci/code/Location;
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic jdk.vm.ci.code.ValueUtil.isRegister:(Ljdk/vm/ci/meta/Value;)Z
ifeq 2
1: aload 1
invokestatic jdk.vm.ci.code.ValueUtil.asRegister:(Ljdk/vm/ci/meta/Value;)Ljdk/vm/ci/code/Register;
iload 2
invokestatic jdk.vm.ci.code.Location.subregister:(Ljdk/vm/ci/code/Register;I)Ljdk/vm/ci/code/Location;
areturn
2: StackMap locals:
StackMap stack:
aload 1
invokestatic jdk.vm.ci.code.ValueUtil.asStackSlot:(Ljdk/vm/ci/meta/Value;)Ljdk/vm/ci/code/StackSlot;
astore 3
start local 3 3: aload 3
aload 0
getfield org.graalvm.compiler.hotspot.HotSpotReferenceMapBuilder.totalFrameSize:I
invokevirtual jdk.vm.ci.code.StackSlot.getOffset:(I)I
iload 2
iadd
istore 4
start local 4 4: iload 4
aload 0
getfield org.graalvm.compiler.hotspot.HotSpotReferenceMapBuilder.maxOopMapStackOffset:I
if_icmple 6
5: new org.graalvm.compiler.core.common.PermanentBailoutException
dup
ldc "stack offset %d for oopmap is greater than encoding limit %d"
iconst_2
anewarray java.lang.Object
dup
iconst_0
iload 4
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
aload 0
getfield org.graalvm.compiler.hotspot.HotSpotReferenceMapBuilder.maxOopMapStackOffset:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokespecial org.graalvm.compiler.core.common.PermanentBailoutException.<init>:(Ljava/lang/String;[Ljava/lang/Object;)V
athrow
6: StackMap locals: jdk.vm.ci.code.StackSlot int
StackMap stack:
iload 4
invokestatic jdk.vm.ci.code.Location.stack:(I)Ljdk/vm/ci/code/Location;
areturn
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/graalvm/compiler/hotspot/HotSpotReferenceMapBuilder;
0 7 1 v Ljdk/vm/ci/meta/Value;
0 7 2 offset I
3 7 3 s Ljdk/vm/ci/code/StackSlot;
4 7 4 totalOffset I
MethodParameters:
Name Flags
v
offset
}
SourceFile: "HotSpotReferenceMapBuilder.java"