final class jdk.vm.ci.hotspot.HotSpotSpeculationEncoding extends java.io.ByteArrayOutputStream implements jdk.vm.ci.meta.SpeculationLog$SpeculationReasonEncoding
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.vm.ci.hotspot.HotSpotSpeculationEncoding
super_class: java.io.ByteArrayOutputStream
{
private java.io.DataOutputStream dos;
descriptor: Ljava/io/DataOutputStream;
flags: (0x0002) ACC_PRIVATE
private byte[] result;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private static final int NULL_METHOD;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -1
private static final int NULL_TYPE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -2
private static final int NULL_STRING;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -3
private static final java.security.MessageDigest SHA1;
descriptor: Ljava/security/MessageDigest;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final boolean SHA1_IS_CLONEABLE;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int SHA1_LENGTH;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=2, args_size=0
0: aconst_null
astore 0
start local 0 1: iconst_0
istore 1
start local 1 2: ldc "SHA-1"
invokestatic java.security.MessageDigest.getInstance:(Ljava/lang/String;)Ljava/security/MessageDigest;
astore 0
3: aload 0
invokevirtual java.security.MessageDigest.clone:()Ljava/lang/Object;
pop
4: iconst_1
istore 1
5: goto 8
StackMap locals: java.security.MessageDigest int
StackMap stack: java.security.NoSuchAlgorithmException
6: pop
goto 8
7: StackMap locals:
StackMap stack: java.lang.CloneNotSupportedException
pop
8: StackMap locals:
StackMap stack:
aload 0
putstatic jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.SHA1:Ljava/security/MessageDigest;
9: iload 1
putstatic jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.SHA1_IS_CLONEABLE:Z
10: getstatic jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.SHA1:Ljava/security/MessageDigest;
ifnonnull 11
bipush 20
goto 12
StackMap locals:
StackMap stack:
11: getstatic jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.SHA1:Ljava/security/MessageDigest;
invokevirtual java.security.MessageDigest.getDigestLength:()I
StackMap locals:
StackMap stack: int
12: putstatic jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.SHA1_LENGTH:I
end local 1 end local 0 13: return
LocalVariableTable:
Start End Slot Name Signature
1 13 0 sha1 Ljava/security/MessageDigest;
2 13 1 sha1IsCloneable Z
Exception table:
from to target type
2 5 6 Class java.security.NoSuchAlgorithmException
2 5 7 Class java.lang.CloneNotSupportedException
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getstatic jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.SHA1_LENGTH:I
invokespecial java.io.ByteArrayOutputStream.<init>:(I)V
1: aload 0
new java.io.DataOutputStream
dup
aload 0
invokespecial java.io.DataOutputStream.<init>:(Ljava/io/OutputStream;)V
putfield jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.dos:Ljava/io/DataOutputStream;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/vm/ci/hotspot/HotSpotSpeculationEncoding;
private void checkOpen();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.result:[B
ifnull 2
1: new java.lang.IllegalArgumentException
dup
ldc "Cannot update closed speculation encoding"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/vm/ci/hotspot/HotSpotSpeculationEncoding;
public void addByte(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.checkOpen:()V
1: aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.dos:Ljava/io/DataOutputStream;
iload 1
invokevirtual java.io.DataOutputStream.writeByte:(I)V
2: goto 5
StackMap locals:
StackMap stack: java.io.IOException
3: astore 2
start local 2 4: new java.lang.InternalError
dup
aload 2
invokespecial java.lang.InternalError.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/vm/ci/hotspot/HotSpotSpeculationEncoding;
0 6 1 value I
4 5 2 e Ljava/io/IOException;
Exception table:
from to target type
1 2 3 Class java.io.IOException
MethodParameters:
Name Flags
value
public void addShort(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.checkOpen:()V
1: aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.dos:Ljava/io/DataOutputStream;
iload 1
invokevirtual java.io.DataOutputStream.writeShort:(I)V
2: goto 5
StackMap locals:
StackMap stack: java.io.IOException
3: astore 2
start local 2 4: new java.lang.InternalError
dup
aload 2
invokespecial java.lang.InternalError.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/vm/ci/hotspot/HotSpotSpeculationEncoding;
0 6 1 value I
4 5 2 e Ljava/io/IOException;
Exception table:
from to target type
1 2 3 Class java.io.IOException
MethodParameters:
Name Flags
value
public void addMethod(jdk.vm.ci.meta.ResolvedJavaMethod);
descriptor: (Ljdk/vm/ci/meta/ResolvedJavaMethod;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_m1
invokevirtual jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.addNull:(Ljava/lang/Object;I)Z
ifne 8
1: aload 0
invokevirtual jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.checkOpen:()V
2: aload 1
instanceof jdk.vm.ci.hotspot.HotSpotResolvedJavaMethodImpl
ifeq 7
3: aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.dos:Ljava/io/DataOutputStream;
aload 1
checkcast jdk.vm.ci.hotspot.HotSpotResolvedJavaMethodImpl
invokevirtual jdk.vm.ci.hotspot.HotSpotResolvedJavaMethodImpl.getMetaspaceMethod:()J
invokevirtual java.io.DataOutputStream.writeLong:(J)V
4: goto 8
StackMap locals:
StackMap stack: java.io.IOException
5: astore 2
start local 2 6: new java.lang.InternalError
dup
aload 2
invokespecial java.lang.InternalError.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 7: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Cannot encode unsupported type "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ": "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
ldc "%H.%n(%p)"
invokeinterface jdk.vm.ci.meta.ResolvedJavaMethod.format:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/vm/ci/hotspot/HotSpotSpeculationEncoding;
0 9 1 method Ljdk/vm/ci/meta/ResolvedJavaMethod;
6 7 2 e Ljava/io/IOException;
Exception table:
from to target type
3 4 5 Class java.io.IOException
MethodParameters:
Name Flags
method
public void addType(jdk.vm.ci.meta.ResolvedJavaType);
descriptor: (Ljdk/vm/ci/meta/ResolvedJavaType;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
bipush -2
invokevirtual jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.addNull:(Ljava/lang/Object;I)Z
ifne 8
1: aload 0
invokevirtual jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.checkOpen:()V
2: aload 1
instanceof jdk.vm.ci.hotspot.HotSpotResolvedObjectTypeImpl
ifeq 7
3: aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.dos:Ljava/io/DataOutputStream;
aload 1
checkcast jdk.vm.ci.hotspot.HotSpotResolvedObjectTypeImpl
invokevirtual jdk.vm.ci.hotspot.HotSpotResolvedObjectTypeImpl.getMetaspaceKlass:()J
invokevirtual java.io.DataOutputStream.writeLong:(J)V
4: goto 8
StackMap locals:
StackMap stack: java.io.IOException
5: astore 2
start local 2 6: new java.lang.InternalError
dup
aload 2
invokespecial java.lang.InternalError.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 7: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Cannot encode unsupported type "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ": "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokeinterface jdk.vm.ci.meta.ResolvedJavaType.toClassName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/vm/ci/hotspot/HotSpotSpeculationEncoding;
0 9 1 type Ljdk/vm/ci/meta/ResolvedJavaType;
6 7 2 e Ljava/io/IOException;
Exception table:
from to target type
3 4 5 Class java.io.IOException
MethodParameters:
Name Flags
type
public void addString(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
bipush -3
invokevirtual jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.addNull:(Ljava/lang/Object;I)Z
ifne 6
1: aload 0
invokevirtual jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.checkOpen:()V
2: aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.dos:Ljava/io/DataOutputStream;
aload 1
invokevirtual java.io.DataOutputStream.writeChars:(Ljava/lang/String;)V
3: goto 6
StackMap locals:
StackMap stack: java.io.IOException
4: astore 2
start local 2 5: new java.lang.InternalError
dup
aload 2
invokespecial java.lang.InternalError.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/vm/ci/hotspot/HotSpotSpeculationEncoding;
0 7 1 value Ljava/lang/String;
5 6 2 e Ljava/io/IOException;
Exception table:
from to target type
2 3 4 Class java.io.IOException
MethodParameters:
Name Flags
value
public void addInt(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.checkOpen:()V
1: aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.dos:Ljava/io/DataOutputStream;
iload 1
invokevirtual java.io.DataOutputStream.writeInt:(I)V
2: goto 5
StackMap locals:
StackMap stack: java.io.IOException
3: astore 2
start local 2 4: new java.lang.InternalError
dup
aload 2
invokespecial java.lang.InternalError.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/vm/ci/hotspot/HotSpotSpeculationEncoding;
0 6 1 value I
4 5 2 e Ljava/io/IOException;
Exception table:
from to target type
1 2 3 Class java.io.IOException
MethodParameters:
Name Flags
value
public void addLong(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.checkOpen:()V
1: aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.dos:Ljava/io/DataOutputStream;
lload 1
invokevirtual java.io.DataOutputStream.writeLong:(J)V
2: goto 5
StackMap locals:
StackMap stack: java.io.IOException
3: astore 3
start local 3 4: new java.lang.InternalError
dup
aload 3
invokespecial java.lang.InternalError.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/vm/ci/hotspot/HotSpotSpeculationEncoding;
0 6 1 value J
4 5 3 e Ljava/io/IOException;
Exception table:
from to target type
1 2 3 Class java.io.IOException
MethodParameters:
Name Flags
value
private boolean addNull(java.lang.Object, int);
descriptor: (Ljava/lang/Object;I)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnonnull 3
1: aload 0
iload 2
invokevirtual jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.addInt:(I)V
2: iconst_1
ireturn
3: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/vm/ci/hotspot/HotSpotSpeculationEncoding;
0 4 1 o Ljava/lang/Object;
0 4 2 nullValue I
MethodParameters:
Name Flags
o
nullValue
byte[] getByteArray();
descriptor: ()[B
flags: (0x0000)
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.result:[B
ifnonnull 14
1: getstatic jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.SHA1:Ljava/security/MessageDigest;
ifnull 10
aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.count:I
getstatic jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.SHA1_LENGTH:I
if_icmple 10
2: getstatic jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.SHA1_IS_CLONEABLE:Z
ifeq 3
getstatic jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.SHA1:Ljava/security/MessageDigest;
invokevirtual java.security.MessageDigest.clone:()Ljava/lang/Object;
checkcast java.security.MessageDigest
goto 4
StackMap locals:
StackMap stack:
3: ldc "SHA-1"
invokestatic java.security.MessageDigest.getInstance:(Ljava/lang/String;)Ljava/security/MessageDigest;
StackMap locals:
StackMap stack: java.security.MessageDigest
4: astore 1
start local 1 5: aload 1
aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.buf:[B
iconst_0
aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.count:I
invokevirtual java.security.MessageDigest.update:([BII)V
6: aload 0
aload 1
invokevirtual java.security.MessageDigest.digest:()[B
putfield jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.result:[B
end local 1 7: goto 13
StackMap locals:
StackMap stack: java.lang.Exception
8: astore 1
start local 1 9: new java.lang.InternalError
dup
aload 1
invokespecial java.lang.InternalError.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 10: StackMap locals:
StackMap stack:
aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.buf:[B
arraylength
aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.count:I
if_icmpne 12
11: aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.buf:[B
areturn
12: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.buf:[B
aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.count:I
invokestatic java.util.Arrays.copyOf:([BI)[B
putfield jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.result:[B
13: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.dos:Ljava/io/DataOutputStream;
14: StackMap locals:
StackMap stack:
aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.result:[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Ljdk/vm/ci/hotspot/HotSpotSpeculationEncoding;
5 7 1 md Ljava/security/MessageDigest;
9 10 1 e Ljava/lang/Exception;
Exception table:
from to target type
2 7 8 Class java.lang.CloneNotSupportedException
2 7 8 Class java.security.NoSuchAlgorithmException
}
SourceFile: "HotSpotSpeculationEncoding.java"
InnerClasses:
public abstract SpeculationReasonEncoding = jdk.vm.ci.meta.SpeculationLog$SpeculationReasonEncoding of jdk.vm.ci.meta.SpeculationLog