public final class org.graalvm.compiler.hotspot.replacements.EncodedSymbolConstant extends org.graalvm.compiler.core.common.type.DataPointerConstant
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.graalvm.compiler.hotspot.replacements.EncodedSymbolConstant
super_class: org.graalvm.compiler.core.common.type.DataPointerConstant
{
private final jdk.vm.ci.meta.Constant constant;
descriptor: Ljdk/vm/ci/meta/Constant;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private byte[] bytes;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
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/replacements/EncodedSymbolConstant;
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.replacements.EncodedSymbolConstant.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(jdk.vm.ci.meta.Constant);
descriptor: (Ljdk/vm/ci/meta/Constant;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_1
invokespecial org.graalvm.compiler.core.common.type.DataPointerConstant.<init>:(I)V
1: aload 0
aload 1
putfield org.graalvm.compiler.hotspot.replacements.EncodedSymbolConstant.constant:Ljdk/vm/ci/meta/Constant;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/graalvm/compiler/hotspot/replacements/EncodedSymbolConstant;
0 3 1 constant Ljdk/vm/ci/meta/Constant;
MethodParameters:
Name Flags
constant
public int getSerializedSize();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.graalvm.compiler.hotspot.replacements.EncodedSymbolConstant.getEncodedConstant:()[B
arraylength
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/hotspot/replacements/EncodedSymbolConstant;
public void serialize(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)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.graalvm.compiler.hotspot.replacements.EncodedSymbolConstant.getEncodedConstant:()[B
invokevirtual java.nio.ByteBuffer.put:([B)Ljava/nio/ByteBuffer;
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/hotspot/replacements/EncodedSymbolConstant;
0 2 1 buffer Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
buffer
private static byte[] toUTF8String(java.lang.String);
descriptor: (Ljava/lang/String;)[B
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=8, locals=5, args_size=1
start local 0 0: aconst_null
astore 1
aconst_null
astore 2
1: new java.io.ByteArrayOutputStream
dup
invokespecial java.io.ByteArrayOutputStream.<init>:()V
astore 3
start local 3 2: new java.io.DataOutputStream
dup
aload 3
invokespecial java.io.DataOutputStream.<init>:(Ljava/io/OutputStream;)V
astore 4
start local 4 3: aload 4
aload 0
invokevirtual java.io.DataOutputStream.writeUTF:(Ljava/lang/String;)V
4: aload 3
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
5: aload 3
ifnull 6
aload 3
invokevirtual java.io.ByteArrayOutputStream.close:()V
6: StackMap locals: java.lang.String java.lang.Throwable java.lang.Throwable java.io.ByteArrayOutputStream java.io.DataOutputStream
StackMap stack: byte[]
areturn
end local 4 StackMap locals: java.lang.String java.lang.Throwable java.lang.Throwable java.io.ByteArrayOutputStream
StackMap stack: java.lang.Throwable
7: astore 1
8: aload 3
ifnull 9
aload 3
invokevirtual java.io.ByteArrayOutputStream.close:()V
end local 3 StackMap locals:
StackMap stack:
9: aload 1
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
10: astore 2
aload 1
ifnonnull 11
aload 2
astore 1
goto 12
StackMap locals:
StackMap stack:
11: aload 1
aload 2
if_acmpeq 12
aload 1
aload 2
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
12: aload 1
athrow
StackMap locals: java.lang.String
StackMap stack: java.lang.Exception
13: astore 1
start local 1 14: new org.graalvm.compiler.common.PermanentBailoutException
dup
aload 1
ldc "String conversion failed: %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
aastore
invokespecial org.graalvm.compiler.common.PermanentBailoutException.<init>:(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 s Ljava/lang/String;
2 9 3 bytes Ljava/io/ByteArrayOutputStream;
3 7 4 stream Ljava/io/DataOutputStream;
14 15 1 e Ljava/lang/Exception;
Exception table:
from to target type
2 5 7 any
1 6 10 any
7 10 10 any
0 6 13 Class java.lang.Exception
7 13 13 Class java.lang.Exception
MethodParameters:
Name Flags
s
private static byte[] encodeConstant(jdk.vm.ci.meta.Constant);
descriptor: (Ljdk/vm/ci/meta/Constant;)[B
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=8, args_size=1
start local 0 0: getstatic org.graalvm.compiler.hotspot.replacements.EncodedSymbolConstant.$assertionsDisabled:Z
ifne 1
aload 0
ifnonnull 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
instanceof jdk.vm.ci.hotspot.HotSpotObjectConstant
ifeq 3
2: aload 0
checkcast jdk.vm.ci.hotspot.HotSpotObjectConstant
ldc Ljava/lang/String;
invokeinterface jdk.vm.ci.hotspot.HotSpotObjectConstant.asObject:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast java.lang.String
invokestatic org.graalvm.compiler.hotspot.replacements.EncodedSymbolConstant.toUTF8String:(Ljava/lang/String;)[B
areturn
3: StackMap locals:
StackMap stack:
aload 0
instanceof jdk.vm.ci.hotspot.HotSpotMetaspaceConstant
ifeq 20
4: aload 0
checkcast jdk.vm.ci.hotspot.HotSpotMetaspaceConstant
astore 1
start local 1 5: aload 1
invokeinterface jdk.vm.ci.hotspot.HotSpotMetaspaceConstant.asResolvedJavaType:()Ljdk/vm/ci/hotspot/HotSpotResolvedObjectType;
astore 2
start local 2 6: aload 2
ifnull 8
7: aload 2
invokeinterface jdk.vm.ci.hotspot.HotSpotResolvedObjectType.getName:()Ljava/lang/String;
invokestatic org.graalvm.compiler.hotspot.replacements.EncodedSymbolConstant.toUTF8String:(Ljava/lang/String;)[B
areturn
8: StackMap locals: jdk.vm.ci.hotspot.HotSpotMetaspaceConstant jdk.vm.ci.hotspot.HotSpotResolvedObjectType
StackMap stack:
aload 1
invokeinterface jdk.vm.ci.hotspot.HotSpotMetaspaceConstant.asResolvedJavaMethod:()Ljdk/vm/ci/hotspot/HotSpotResolvedJavaMethod;
astore 3
start local 3 9: aload 3
ifnull 20
10: aload 3
invokeinterface jdk.vm.ci.hotspot.HotSpotResolvedJavaMethod.getName:()Ljava/lang/String;
invokestatic org.graalvm.compiler.hotspot.replacements.EncodedSymbolConstant.toUTF8String:(Ljava/lang/String;)[B
astore 4
start local 4 11: aload 3
invokeinterface jdk.vm.ci.hotspot.HotSpotResolvedJavaMethod.getSignature:()Ljdk/vm/ci/meta/Signature;
invokeinterface jdk.vm.ci.meta.Signature.toMethodDescriptor:()Ljava/lang/String;
invokestatic org.graalvm.compiler.hotspot.replacements.EncodedSymbolConstant.toUTF8String:(Ljava/lang/String;)[B
astore 5
start local 5 12: aload 4
arraylength
aload 5
arraylength
iadd
newarray 8
astore 6
start local 6 13: iconst_0
istore 7
start local 7 14: aload 4
iconst_0
aload 6
iload 7
aload 4
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
15: iload 7
aload 4
arraylength
iadd
istore 7
16: aload 5
iconst_0
aload 6
iload 7
aload 5
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
17: iload 7
aload 5
arraylength
iadd
istore 7
18: getstatic org.graalvm.compiler.hotspot.replacements.EncodedSymbolConstant.$assertionsDisabled:Z
ifne 19
iload 7
aload 6
arraylength
if_icmpeq 19
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
19: StackMap locals: jdk.vm.ci.meta.Constant jdk.vm.ci.hotspot.HotSpotMetaspaceConstant jdk.vm.ci.hotspot.HotSpotResolvedObjectType jdk.vm.ci.hotspot.HotSpotResolvedJavaMethod byte[] byte[] byte[] int
StackMap stack:
aload 6
areturn
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 20: StackMap locals: jdk.vm.ci.meta.Constant
StackMap stack:
new org.graalvm.compiler.common.PermanentBailoutException
dup
ldc "Encoding of constant %s failed"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
aastore
invokespecial org.graalvm.compiler.common.PermanentBailoutException.<init>:(Ljava/lang/String;[Ljava/lang/Object;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 constant Ljdk/vm/ci/meta/Constant;
5 20 1 metaspaceConstant Ljdk/vm/ci/hotspot/HotSpotMetaspaceConstant;
6 20 2 klass Ljdk/vm/ci/hotspot/HotSpotResolvedObjectType;
9 20 3 method Ljdk/vm/ci/hotspot/HotSpotResolvedJavaMethod;
11 20 4 methodName [B
12 20 5 signature [B
13 20 6 result [B
14 20 7 resultPos I
MethodParameters:
Name Flags
constant
public byte[] getEncodedConstant();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.graalvm.compiler.hotspot.replacements.EncodedSymbolConstant.bytes:[B
ifnonnull 2
1: aload 0
aload 0
getfield org.graalvm.compiler.hotspot.replacements.EncodedSymbolConstant.constant:Ljdk/vm/ci/meta/Constant;
invokestatic org.graalvm.compiler.hotspot.replacements.EncodedSymbolConstant.encodeConstant:(Ljdk/vm/ci/meta/Constant;)[B
putfield org.graalvm.compiler.hotspot.replacements.EncodedSymbolConstant.bytes:[B
2: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.compiler.hotspot.replacements.EncodedSymbolConstant.bytes:[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/graalvm/compiler/hotspot/replacements/EncodedSymbolConstant;
public java.lang.String toValueString();
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 "encoded symbol\""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.graalvm.compiler.hotspot.replacements.EncodedSymbolConstant.constant:Ljdk/vm/ci/meta/Constant;
invokeinterface jdk.vm.ci.meta.Constant.toValueString:()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;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/hotspot/replacements/EncodedSymbolConstant;
}
SourceFile: "EncodedSymbolConstant.java"