final class jdk.tools.jaotc.binformat.elf.ElfSymtab
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.tools.jaotc.binformat.elf.ElfSymtab
super_class: java.lang.Object
{
private final java.util.ArrayList<jdk.tools.jaotc.binformat.elf.ElfSymbol> localSymbols;
descriptor: Ljava/util/ArrayList;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/ArrayList<Ljdk/tools/jaotc/binformat/elf/ElfSymbol;>;
private final java.util.ArrayList<jdk.tools.jaotc.binformat.elf.ElfSymbol> globalSymbols;
descriptor: Ljava/util/ArrayList;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/ArrayList<Ljdk/tools/jaotc/binformat/elf/ElfSymbol;>;
private int symbolCount;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private final java.lang.StringBuilder strTabContent;
descriptor: Ljava/lang/StringBuilder;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private int strTabNrOfBytes;
descriptor: I
flags: (0x0002) ACC_PRIVATE
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield jdk.tools.jaotc.binformat.elf.ElfSymtab.localSymbols:Ljava/util/ArrayList;
2: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield jdk.tools.jaotc.binformat.elf.ElfSymtab.globalSymbols:Ljava/util/ArrayList;
3: aload 0
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
putfield jdk.tools.jaotc.binformat.elf.ElfSymtab.strTabContent:Ljava/lang/StringBuilder;
4: aload 0
iconst_0
putfield jdk.tools.jaotc.binformat.elf.ElfSymtab.strTabNrOfBytes:I
5: aload 0
iconst_0
putfield jdk.tools.jaotc.binformat.elf.ElfSymtab.symbolCount:I
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/tools/jaotc/binformat/elf/ElfSymtab;
jdk.tools.jaotc.binformat.elf.ElfSymbol addSymbolEntry(java.lang.String, byte, byte, byte, long, long);
descriptor: (Ljava/lang/String;BBBJJ)Ljdk/tools/jaotc/binformat/elf/ElfSymbol;
flags: (0x0000)
Code:
stack=11, locals=11, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 7 0: aload 1
invokevirtual java.lang.String.isEmpty:()Z
ifeq 7
1: iconst_0
istore 9
start local 9 2: aload 0
getfield jdk.tools.jaotc.binformat.elf.ElfSymtab.strTabContent:Ljava/lang/StringBuilder;
iconst_0
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
3: aload 0
dup
getfield jdk.tools.jaotc.binformat.elf.ElfSymtab.strTabNrOfBytes:I
iconst_1
iadd
putfield jdk.tools.jaotc.binformat.elf.ElfSymtab.strTabNrOfBytes:I
4: new jdk.tools.jaotc.binformat.elf.ElfSymbol
dup
aload 0
getfield jdk.tools.jaotc.binformat.elf.ElfSymtab.symbolCount:I
iload 9
iload 2
iload 3
iload 4
lload 5
lload 7
invokespecial jdk.tools.jaotc.binformat.elf.ElfSymbol.<init>:(IIBBBJJ)V
astore 10
start local 10 5: aload 0
getfield jdk.tools.jaotc.binformat.elf.ElfSymtab.localSymbols:Ljava/util/ArrayList;
aload 10
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
6: goto 15
end local 10 end local 9 7: StackMap locals:
StackMap stack:
aload 0
getfield jdk.tools.jaotc.binformat.elf.ElfSymtab.strTabNrOfBytes:I
istore 9
start local 9 8: aload 0
getfield jdk.tools.jaotc.binformat.elf.ElfSymtab.strTabContent:Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iconst_0
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
9: aload 0
dup
getfield jdk.tools.jaotc.binformat.elf.ElfSymtab.strTabNrOfBytes:I
aload 1
invokevirtual java.lang.String.getBytes:()[B
arraylength
iconst_1
iadd
iadd
putfield jdk.tools.jaotc.binformat.elf.ElfSymtab.strTabNrOfBytes:I
10: new jdk.tools.jaotc.binformat.elf.ElfSymbol
dup
aload 0
getfield jdk.tools.jaotc.binformat.elf.ElfSymtab.symbolCount:I
iload 9
iload 2
iload 3
iload 4
lload 5
lload 7
invokespecial jdk.tools.jaotc.binformat.elf.ElfSymbol.<init>:(IIBBBJJ)V
astore 10
start local 10 11: iload 3
iconst_1
iand
ifeq 14
12: aload 0
getfield jdk.tools.jaotc.binformat.elf.ElfSymtab.globalSymbols:Ljava/util/ArrayList;
aload 10
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
13: goto 15
14: StackMap locals: int jdk.tools.jaotc.binformat.elf.ElfSymbol
StackMap stack:
aload 0
getfield jdk.tools.jaotc.binformat.elf.ElfSymtab.localSymbols:Ljava/util/ArrayList;
aload 10
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
15: StackMap locals:
StackMap stack:
aload 0
dup
getfield jdk.tools.jaotc.binformat.elf.ElfSymtab.symbolCount:I
iconst_1
iadd
putfield jdk.tools.jaotc.binformat.elf.ElfSymtab.symbolCount:I
16: aload 10
areturn
end local 10 end local 9 end local 7 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 17 0 this Ljdk/tools/jaotc/binformat/elf/ElfSymtab;
0 17 1 name Ljava/lang/String;
0 17 2 type B
0 17 3 bind B
0 17 4 secHdrIndex B
0 17 5 offset J
0 17 7 size J
2 7 9 index I
8 17 9 index I
5 7 10 sym Ljdk/tools/jaotc/binformat/elf/ElfSymbol;
11 17 10 sym Ljdk/tools/jaotc/binformat/elf/ElfSymbol;
MethodParameters:
Name Flags
name
type
bind
secHdrIndex
offset
size
void updateIndexes();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=4, args_size=1
start local 0 0: iconst_0
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
getfield jdk.tools.jaotc.binformat.elf.ElfSymtab.localSymbols:Ljava/util/ArrayList;
iload 2
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
checkcast jdk.tools.jaotc.binformat.elf.ElfSymbol
astore 3
start local 3 4: aload 3
iload 1
iinc 1 1
invokevirtual jdk.tools.jaotc.binformat.elf.ElfSymbol.setIndex:(I)V
end local 3 5: iinc 2 1
StackMap locals:
StackMap stack:
6: iload 2
aload 0
getfield jdk.tools.jaotc.binformat.elf.ElfSymtab.localSymbols:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
if_icmplt 3
end local 2 7: iconst_0
istore 2
start local 2 8: goto 12
9: StackMap locals:
StackMap stack:
aload 0
getfield jdk.tools.jaotc.binformat.elf.ElfSymtab.globalSymbols:Ljava/util/ArrayList;
iload 2
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
checkcast jdk.tools.jaotc.binformat.elf.ElfSymbol
astore 3
start local 3 10: aload 3
iload 1
iinc 1 1
invokevirtual jdk.tools.jaotc.binformat.elf.ElfSymbol.setIndex:(I)V
end local 3 11: iinc 2 1
StackMap locals:
StackMap stack:
12: iload 2
aload 0
getfield jdk.tools.jaotc.binformat.elf.ElfSymtab.globalSymbols:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
if_icmplt 9
end local 2 13: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Ljdk/tools/jaotc/binformat/elf/ElfSymtab;
1 14 1 index I
2 7 2 i I
4 5 3 sym Ljdk/tools/jaotc/binformat/elf/ElfSymbol;
8 13 2 i I
10 11 3 sym Ljdk/tools/jaotc/binformat/elf/ElfSymbol;
int getNumLocalSyms();
descriptor: ()I
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.tools.jaotc.binformat.elf.ElfSymtab.localSymbols:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jaotc/binformat/elf/ElfSymtab;
int getNumGlobalSyms();
descriptor: ()I
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.tools.jaotc.binformat.elf.ElfSymtab.globalSymbols:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jaotc/binformat/elf/ElfSymtab;
byte[] getSymtabArray();
descriptor: ()[B
flags: (0x0000)
Code:
stack=2, locals=6, args_size=1
start local 0 0: aload 0
getfield jdk.tools.jaotc.binformat.elf.ElfSymtab.symbolCount:I
getstatic jdk.tools.jaotc.binformat.elf.Elf$Elf64_Sym.totalsize:I
imul
invokestatic jdk.tools.jaotc.binformat.elf.ElfByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
astore 1
start local 1 1: aload 0
invokevirtual jdk.tools.jaotc.binformat.elf.ElfSymtab.updateIndexes:()V
2: iconst_0
istore 3
start local 3 3: goto 8
4: StackMap locals: jdk.tools.jaotc.binformat.elf.ElfSymtab java.nio.ByteBuffer top int
StackMap stack:
aload 0
getfield jdk.tools.jaotc.binformat.elf.ElfSymtab.localSymbols:Ljava/util/ArrayList;
iload 3
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
checkcast jdk.tools.jaotc.binformat.elf.ElfSymbol
astore 4
start local 4 5: aload 4
invokevirtual jdk.tools.jaotc.binformat.elf.ElfSymbol.getArray:()[B
astore 5
start local 5 6: aload 1
aload 5
invokevirtual java.nio.ByteBuffer.put:([B)Ljava/nio/ByteBuffer;
pop
end local 5 end local 4 7: iinc 3 1
StackMap locals:
StackMap stack:
8: iload 3
aload 0
getfield jdk.tools.jaotc.binformat.elf.ElfSymtab.localSymbols:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
if_icmplt 4
end local 3 9: iconst_0
istore 3
start local 3 10: goto 15
11: StackMap locals:
StackMap stack:
aload 0
getfield jdk.tools.jaotc.binformat.elf.ElfSymtab.globalSymbols:Ljava/util/ArrayList;
iload 3
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
checkcast jdk.tools.jaotc.binformat.elf.ElfSymbol
astore 4
start local 4 12: aload 4
invokevirtual jdk.tools.jaotc.binformat.elf.ElfSymbol.getArray:()[B
astore 5
start local 5 13: aload 1
aload 5
invokevirtual java.nio.ByteBuffer.put:([B)Ljava/nio/ByteBuffer;
pop
end local 5 end local 4 14: iinc 3 1
StackMap locals:
StackMap stack:
15: iload 3
aload 0
getfield jdk.tools.jaotc.binformat.elf.ElfSymtab.globalSymbols:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
if_icmplt 11
end local 3 16: aload 1
invokevirtual java.nio.ByteBuffer.array:()[B
astore 2
start local 2 17: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Ljdk/tools/jaotc/binformat/elf/ElfSymtab;
1 18 1 symtabData Ljava/nio/ByteBuffer;
17 18 2 retarray [B
3 9 3 i I
5 7 4 sym Ljdk/tools/jaotc/binformat/elf/ElfSymbol;
6 7 5 arr [B
10 16 3 i I
12 14 4 sym Ljdk/tools/jaotc/binformat/elf/ElfSymbol;
13 14 5 arr [B
byte[] getStrtabArray();
descriptor: ()[B
flags: (0x0000)
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.tools.jaotc.binformat.elf.ElfSymtab.strTabContent:Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.String.getBytes:()[B
astore 1
start local 1 1: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/tools/jaotc/binformat/elf/ElfSymtab;
1 2 1 strs [B
}
SourceFile: "ElfSymtab.java"
InnerClasses:
final Elf64_Sym = jdk.tools.jaotc.binformat.elf.Elf$Elf64_Sym of jdk.tools.jaotc.binformat.elf.Elf