public class org.graalvm.compiler.replacements.classfile.Classfile
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.replacements.classfile.Classfile
super_class: java.lang.Object
{
private final jdk.vm.ci.meta.ResolvedJavaType type;
descriptor: Ljdk/vm/ci/meta/ResolvedJavaType;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.List<org.graalvm.compiler.replacements.classfile.ClassfileBytecode> codeAttributes;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Lorg/graalvm/compiler/replacements/classfile/ClassfileBytecode;>;
private static final int MAJOR_VERSION_JAVA_MIN;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 51
private static final int MAJOR_VERSION_JAVA_MAX;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 59
private static final int MAGIC;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -889275714
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/replacements/classfile/Classfile;
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.replacements.classfile.Classfile.$assertionsDisabled:Z
3: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(jdk.vm.ci.meta.ResolvedJavaType, java.io.DataInputStream, org.graalvm.compiler.replacements.classfile.ClassfileBytecodeProvider);
descriptor: (Ljdk/vm/ci/meta/ResolvedJavaType;Ljava/io/DataInputStream;Lorg/graalvm/compiler/replacements/classfile/ClassfileBytecodeProvider;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.graalvm.compiler.replacements.classfile.Classfile.type:Ljdk/vm/ci/meta/ResolvedJavaType;
2: aload 2
invokevirtual java.io.DataInputStream.readInt:()I
istore 4
start local 4 3: getstatic org.graalvm.compiler.replacements.classfile.Classfile.$assertionsDisabled:Z
ifne 4
iload 4
ldc -889275714
if_icmpeq 4
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
4: StackMap locals: org.graalvm.compiler.replacements.classfile.Classfile jdk.vm.ci.meta.ResolvedJavaType java.io.DataInputStream org.graalvm.compiler.replacements.classfile.ClassfileBytecodeProvider int
StackMap stack:
aload 2
invokevirtual java.io.DataInputStream.readUnsignedShort:()I
istore 5
start local 5 5: aload 2
invokevirtual java.io.DataInputStream.readUnsignedShort:()I
istore 6
start local 6 6: iload 6
bipush 51
if_icmplt 7
iload 6
bipush 59
if_icmple 8
7: StackMap locals: int int
StackMap stack:
new java.lang.UnsupportedClassVersionError
dup
new java.lang.StringBuilder
dup
ldc "Unsupported class file version: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 6
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 5
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.UnsupportedClassVersionError.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
new org.graalvm.compiler.replacements.classfile.ClassfileConstantPool
dup
aload 2
aload 3
invokespecial org.graalvm.compiler.replacements.classfile.ClassfileConstantPool.<init>:(Ljava/io/DataInputStream;Lorg/graalvm/compiler/replacements/classfile/ClassfileBytecodeProvider;)V
astore 7
start local 7 9: aload 2
bipush 6
invokestatic org.graalvm.compiler.replacements.classfile.Classfile.skipFully:(Ljava/io/DataInputStream;I)V
10: aload 2
aload 2
invokevirtual java.io.DataInputStream.readUnsignedShort:()I
iconst_2
imul
invokestatic org.graalvm.compiler.replacements.classfile.Classfile.skipFully:(Ljava/io/DataInputStream;I)V
11: aload 2
invokestatic org.graalvm.compiler.replacements.classfile.Classfile.skipFields:(Ljava/io/DataInputStream;)V
12: aload 0
aload 0
aload 2
aload 7
invokevirtual org.graalvm.compiler.replacements.classfile.Classfile.readMethods:(Ljava/io/DataInputStream;Lorg/graalvm/compiler/replacements/classfile/ClassfileConstantPool;)Ljava/util/List;
putfield org.graalvm.compiler.replacements.classfile.Classfile.codeAttributes:Ljava/util/List;
13: aload 2
invokestatic org.graalvm.compiler.replacements.classfile.Classfile.skipAttributes:(Ljava/io/DataInputStream;)V
14: return
end local 7 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 15 0 this Lorg/graalvm/compiler/replacements/classfile/Classfile;
0 15 1 type Ljdk/vm/ci/meta/ResolvedJavaType;
0 15 2 stream Ljava/io/DataInputStream;
0 15 3 context Lorg/graalvm/compiler/replacements/classfile/ClassfileBytecodeProvider;
3 15 4 magic I
5 15 5 minor I
6 15 6 major I
9 15 7 cp Lorg/graalvm/compiler/replacements/classfile/ClassfileConstantPool;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
type
stream
context
public org.graalvm.compiler.replacements.classfile.ClassfileBytecode getCode(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Lorg/graalvm/compiler/replacements/classfile/ClassfileBytecode;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.graalvm.compiler.replacements.classfile.Classfile.codeAttributes:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 5
StackMap locals: org.graalvm.compiler.replacements.classfile.Classfile java.lang.String java.lang.String top java.util.Iterator
StackMap stack:
1: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.replacements.classfile.ClassfileBytecode
astore 3
start local 3 2: aload 3
invokevirtual org.graalvm.compiler.replacements.classfile.ClassfileBytecode.getMethod:()Ljdk/vm/ci/meta/ResolvedJavaMethod;
astore 5
start local 5 3: aload 5
invokeinterface jdk.vm.ci.meta.ResolvedJavaMethod.getName:()Ljava/lang/String;
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 5
aload 5
invokeinterface jdk.vm.ci.meta.ResolvedJavaMethod.getSignature:()Ljdk/vm/ci/meta/Signature;
invokeinterface jdk.vm.ci.meta.Signature.toMethodDescriptor:()Ljava/lang/String;
aload 2
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 5
4: aload 3
areturn
end local 5 end local 3 5: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
6: new java.lang.NoSuchMethodError
dup
new java.lang.StringBuilder
dup
aload 0
getfield org.graalvm.compiler.replacements.classfile.Classfile.type:Ljdk/vm/ci/meta/ResolvedJavaType;
invokeinterface jdk.vm.ci.meta.ResolvedJavaType.toJavaName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.NoSuchMethodError.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/graalvm/compiler/replacements/classfile/Classfile;
0 7 1 name Ljava/lang/String;
0 7 2 descriptor Ljava/lang/String;
2 5 3 code Lorg/graalvm/compiler/replacements/classfile/ClassfileBytecode;
3 5 5 method Ljdk/vm/ci/meta/ResolvedJavaMethod;
MethodParameters:
Name Flags
name
descriptor
private static void skipAttributes(java.io.DataInputStream);
descriptor: (Ljava/io/DataInputStream;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual java.io.DataInputStream.readUnsignedShort:()I
istore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 7
3: StackMap locals: int int
StackMap stack:
aload 0
iconst_2
invokestatic org.graalvm.compiler.replacements.classfile.Classfile.skipFully:(Ljava/io/DataInputStream;I)V
4: aload 0
invokevirtual java.io.DataInputStream.readInt:()I
istore 3
start local 3 5: aload 0
iload 3
invokestatic org.graalvm.compiler.replacements.classfile.Classfile.skipFully:(Ljava/io/DataInputStream;I)V
end local 3 6: iinc 2 1
StackMap locals:
StackMap stack:
7: iload 2
iload 1
if_icmplt 3
end local 2 8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 stream Ljava/io/DataInputStream;
1 9 1 attributesCount I
2 8 2 i I
5 6 3 attributeLength I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
stream
static void skipFully(java.io.DataInputStream, int);
descriptor: (Ljava/io/DataInputStream;I)V
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: lconst_0
lstore 2
start local 2 1: StackMap locals: long
StackMap stack:
aload 0
iload 1
i2l
lload 2
lsub
invokevirtual java.io.DataInputStream.skip:(J)J
lstore 4
start local 4 2: lload 2
lload 4
ladd
lstore 2
3: lload 4
lconst_0
lcmp
ifne 7
lload 2
iload 1
i2l
lcmp
ifeq 7
4: aload 0
invokevirtual java.io.DataInputStream.read:()I
iconst_m1
if_icmpne 6
5: new java.io.IOException
dup
ldc "truncated stream"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: long
StackMap stack:
lload 2
lconst_1
ladd
lstore 2
end local 4 7: StackMap locals:
StackMap stack:
lload 2
iload 1
i2l
lcmp
ifne 1
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 stream Ljava/io/DataInputStream;
0 9 1 n I
1 9 2 skipped J
2 7 4 s J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
stream
n
private org.graalvm.compiler.replacements.classfile.ClassfileBytecode findCodeAttribute(java.io.DataInputStream, org.graalvm.compiler.replacements.classfile.ClassfileConstantPool, java.lang.String, java.lang.String, boolean);
descriptor: (Ljava/io/DataInputStream;Lorg/graalvm/compiler/replacements/classfile/ClassfileConstantPool;Ljava/lang/String;Ljava/lang/String;Z)Lorg/graalvm/compiler/replacements/classfile/ClassfileBytecode;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=12, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 1
invokevirtual java.io.DataInputStream.readUnsignedShort:()I
istore 6
start local 6 1: aconst_null
astore 7
start local 7 2: iconst_0
istore 8
start local 8 3: goto 14
4: StackMap locals: int org.graalvm.compiler.replacements.classfile.ClassfileBytecode int
StackMap stack:
aload 2
ldc Lorg/graalvm/compiler/replacements/classfile/ClassfileConstant$Utf8;
aload 1
invokevirtual java.io.DataInputStream.readUnsignedShort:()I
invokevirtual org.graalvm.compiler.replacements.classfile.ClassfileConstantPool.get:(Ljava/lang/Class;I)Lorg/graalvm/compiler/replacements/classfile/ClassfileConstant;
checkcast org.graalvm.compiler.replacements.classfile.ClassfileConstant$Utf8
getfield org.graalvm.compiler.replacements.classfile.ClassfileConstant$Utf8.value:Ljava/lang/String;
astore 9
start local 9 5: aload 1
invokevirtual java.io.DataInputStream.readInt:()I
istore 10
start local 10 6: aload 7
ifnonnull 12
aload 9
ldc "Code"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 12
7: aload 2
getfield org.graalvm.compiler.replacements.classfile.ClassfileConstantPool.context:Lorg/graalvm/compiler/replacements/classfile/ClassfileBytecodeProvider;
aload 0
getfield org.graalvm.compiler.replacements.classfile.Classfile.type:Ljdk/vm/ci/meta/ResolvedJavaType;
aload 3
aload 4
iload 5
invokevirtual org.graalvm.compiler.replacements.classfile.ClassfileBytecodeProvider.findMethod:(Ljdk/vm/ci/meta/ResolvedJavaType;Ljava/lang/String;Ljava/lang/String;Z)Ljdk/vm/ci/meta/ResolvedJavaMethod;
astore 11
start local 11 8: new org.graalvm.compiler.replacements.classfile.ClassfileBytecode
dup
aload 11
aload 1
aload 2
invokespecial org.graalvm.compiler.replacements.classfile.ClassfileBytecode.<init>:(Ljdk/vm/ci/meta/ResolvedJavaMethod;Ljava/io/DataInputStream;Lorg/graalvm/compiler/replacements/classfile/ClassfileConstantPool;)V
astore 7
9: aload 11
ifnonnull 13
10: aconst_null
astore 7
end local 11 11: goto 13
12: StackMap locals: java.lang.String int
StackMap stack:
aload 1
iload 10
invokestatic org.graalvm.compiler.replacements.classfile.Classfile.skipFully:(Ljava/io/DataInputStream;I)V
end local 10 end local 9 13: StackMap locals:
StackMap stack:
iinc 8 1
StackMap locals:
StackMap stack:
14: iload 8
iload 6
if_icmplt 4
end local 8 15: aload 7
areturn
end local 7 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 16 0 this Lorg/graalvm/compiler/replacements/classfile/Classfile;
0 16 1 stream Ljava/io/DataInputStream;
0 16 2 cp Lorg/graalvm/compiler/replacements/classfile/ClassfileConstantPool;
0 16 3 name Ljava/lang/String;
0 16 4 descriptor Ljava/lang/String;
0 16 5 isStatic Z
1 16 6 attributesCount I
2 16 7 code Lorg/graalvm/compiler/replacements/classfile/ClassfileBytecode;
3 15 8 i I
5 13 9 attributeName Ljava/lang/String;
6 13 10 attributeLength I
8 11 11 method Ljdk/vm/ci/meta/ResolvedJavaMethod;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
stream
cp
name
descriptor
isStatic
private static void skipFields(java.io.DataInputStream);
descriptor: (Ljava/io/DataInputStream;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual java.io.DataInputStream.readUnsignedShort:()I
istore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 6
3: StackMap locals: int int
StackMap stack:
aload 0
bipush 6
invokestatic org.graalvm.compiler.replacements.classfile.Classfile.skipFully:(Ljava/io/DataInputStream;I)V
4: aload 0
invokestatic org.graalvm.compiler.replacements.classfile.Classfile.skipAttributes:(Ljava/io/DataInputStream;)V
5: iinc 2 1
StackMap locals:
StackMap stack:
6: iload 2
iload 1
if_icmplt 3
end local 2 7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 stream Ljava/io/DataInputStream;
1 8 1 count I
2 7 2 i I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
stream
private java.util.List<org.graalvm.compiler.replacements.classfile.ClassfileBytecode> readMethods(java.io.DataInputStream, org.graalvm.compiler.replacements.classfile.ClassfileConstantPool);
descriptor: (Ljava/io/DataInputStream;Lorg/graalvm/compiler/replacements/classfile/ClassfileConstantPool;)Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=11, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual java.io.DataInputStream.readUnsignedShort:()I
istore 3
start local 3 1: new java.util.ArrayList
dup
iload 3
invokespecial java.util.ArrayList.<init>:(I)V
astore 4
start local 4 2: iconst_0
istore 5
start local 5 3: goto 12
4: StackMap locals: int java.util.List int
StackMap stack:
aload 1
invokevirtual java.io.DataInputStream.readUnsignedShort:()I
istore 6
start local 6 5: iload 6
invokestatic java.lang.reflect.Modifier.isStatic:(I)Z
istore 7
start local 7 6: aload 2
ldc Lorg/graalvm/compiler/replacements/classfile/ClassfileConstant$Utf8;
aload 1
invokevirtual java.io.DataInputStream.readUnsignedShort:()I
invokevirtual org.graalvm.compiler.replacements.classfile.ClassfileConstantPool.get:(Ljava/lang/Class;I)Lorg/graalvm/compiler/replacements/classfile/ClassfileConstant;
checkcast org.graalvm.compiler.replacements.classfile.ClassfileConstant$Utf8
getfield org.graalvm.compiler.replacements.classfile.ClassfileConstant$Utf8.value:Ljava/lang/String;
astore 8
start local 8 7: aload 2
ldc Lorg/graalvm/compiler/replacements/classfile/ClassfileConstant$Utf8;
aload 1
invokevirtual java.io.DataInputStream.readUnsignedShort:()I
invokevirtual org.graalvm.compiler.replacements.classfile.ClassfileConstantPool.get:(Ljava/lang/Class;I)Lorg/graalvm/compiler/replacements/classfile/ClassfileConstant;
checkcast org.graalvm.compiler.replacements.classfile.ClassfileConstant$Utf8
getfield org.graalvm.compiler.replacements.classfile.ClassfileConstant$Utf8.value:Ljava/lang/String;
astore 9
start local 9 8: aload 0
aload 1
aload 2
aload 8
aload 9
iload 7
invokevirtual org.graalvm.compiler.replacements.classfile.Classfile.findCodeAttribute:(Ljava/io/DataInputStream;Lorg/graalvm/compiler/replacements/classfile/ClassfileConstantPool;Ljava/lang/String;Ljava/lang/String;Z)Lorg/graalvm/compiler/replacements/classfile/ClassfileBytecode;
astore 10
start local 10 9: aload 10
ifnull 11
10: aload 4
aload 10
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 10 end local 9 end local 8 end local 7 end local 6 11: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
12: iload 5
iload 3
if_icmplt 4
end local 5 13: aload 4
areturn
end local 4 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/replacements/classfile/Classfile;
0 14 1 stream Ljava/io/DataInputStream;
0 14 2 cp Lorg/graalvm/compiler/replacements/classfile/ClassfileConstantPool;
1 14 3 count I
2 14 4 result Ljava/util/List<Lorg/graalvm/compiler/replacements/classfile/ClassfileBytecode;>;
3 13 5 i I
5 11 6 accessFlags I
6 11 7 isStatic Z
7 11 8 name Ljava/lang/String;
8 11 9 descriptor Ljava/lang/String;
9 11 10 code Lorg/graalvm/compiler/replacements/classfile/ClassfileBytecode;
Exceptions:
throws java.io.IOException
Signature: (Ljava/io/DataInputStream;Lorg/graalvm/compiler/replacements/classfile/ClassfileConstantPool;)Ljava/util/List<Lorg/graalvm/compiler/replacements/classfile/ClassfileBytecode;>;
MethodParameters:
Name Flags
stream
cp
public java.lang.String toString();
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
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "<"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.graalvm.compiler.replacements.classfile.Classfile.type:Ljdk/vm/ci/meta/ResolvedJavaType;
invokeinterface jdk.vm.ci.meta.ResolvedJavaType.toJavaName:()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/replacements/classfile/Classfile;
}
SourceFile: "Classfile.java"
InnerClasses:
Utf8 = org.graalvm.compiler.replacements.classfile.ClassfileConstant$Utf8 of org.graalvm.compiler.replacements.classfile.ClassfileConstant