class jdk.internal.foreign.abi.BufferLayout
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.internal.foreign.abi.BufferLayout
super_class: java.lang.Object
{
static final java.lang.invoke.VarHandle VH_LONG;
descriptor: Ljava/lang/invoke/VarHandle;
flags: (0x0018) ACC_STATIC, ACC_FINAL
final long size;
descriptor: J
flags: (0x0010) ACC_FINAL
final long arguments_next_pc;
descriptor: J
flags: (0x0010) ACC_FINAL
final long stack_args_bytes;
descriptor: J
flags: (0x0010) ACC_FINAL
final long stack_args;
descriptor: J
flags: (0x0010) ACC_FINAL
final long[] input_type_offsets;
descriptor: [J
flags: (0x0010) ACC_FINAL
final long[] output_type_offsets;
descriptor: [J
flags: (0x0010) ACC_FINAL
private final java.util.Map<jdk.internal.foreign.abi.VMStorage, java.lang.Long> argOffsets;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljdk/internal/foreign/abi/VMStorage;Ljava/lang/Long;>;
private final java.util.Map<jdk.internal.foreign.abi.VMStorage, java.lang.Long> retOffsets;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljdk/internal/foreign/abi/VMStorage;Ljava/lang/Long;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: getstatic jdk.incubator.foreign.MemoryLayouts.JAVA_LONG:Ljdk/incubator/foreign/ValueLayout;
getstatic java.lang.Long.TYPE:Ljava/lang/Class;
iconst_0
anewarray jdk.incubator.foreign.MemoryLayout$PathElement
invokevirtual jdk.incubator.foreign.ValueLayout.varHandle:(Ljava/lang/Class;[Ljdk/incubator/foreign/MemoryLayout$PathElement;)Ljava/lang/invoke/VarHandle;
putstatic jdk.internal.foreign.abi.BufferLayout.VH_LONG:Ljava/lang/invoke/VarHandle;
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>(long, long, long, long, long[], long[], java.util.Map<jdk.internal.foreign.abi.VMStorage, java.lang.Long>, java.util.Map<jdk.internal.foreign.abi.VMStorage, java.lang.Long>);
descriptor: (JJJJ[J[JLjava/util/Map;Ljava/util/Map;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=13, args_size=9
start local 0 start local 1 start local 3 start local 5 start local 7 start local 9 start local 10 start local 11 start local 12 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
lload 1
putfield jdk.internal.foreign.abi.BufferLayout.size:J
2: aload 0
lload 3
putfield jdk.internal.foreign.abi.BufferLayout.arguments_next_pc:J
3: aload 0
lload 5
putfield jdk.internal.foreign.abi.BufferLayout.stack_args_bytes:J
4: aload 0
lload 7
putfield jdk.internal.foreign.abi.BufferLayout.stack_args:J
5: aload 0
aload 9
putfield jdk.internal.foreign.abi.BufferLayout.input_type_offsets:[J
6: aload 0
aload 10
putfield jdk.internal.foreign.abi.BufferLayout.output_type_offsets:[J
7: aload 0
aload 11
putfield jdk.internal.foreign.abi.BufferLayout.argOffsets:Ljava/util/Map;
8: aload 0
aload 12
putfield jdk.internal.foreign.abi.BufferLayout.retOffsets:Ljava/util/Map;
9: return
end local 12 end local 11 end local 10 end local 9 end local 7 end local 5 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/internal/foreign/abi/BufferLayout;
0 10 1 size J
0 10 3 arguments_next_pc J
0 10 5 stack_args_bytes J
0 10 7 stack_args J
0 10 9 input_type_offsets [J
0 10 10 output_type_offsets [J
0 10 11 argOffsets Ljava/util/Map<Ljdk/internal/foreign/abi/VMStorage;Ljava/lang/Long;>;
0 10 12 retOffsets Ljava/util/Map<Ljdk/internal/foreign/abi/VMStorage;Ljava/lang/Long;>;
Signature: (JJJJ[J[JLjava/util/Map<Ljdk/internal/foreign/abi/VMStorage;Ljava/lang/Long;>;Ljava/util/Map<Ljdk/internal/foreign/abi/VMStorage;Ljava/lang/Long;>;)V
MethodParameters:
Name Flags
size
arguments_next_pc
stack_args_bytes
stack_args
input_type_offsets
output_type_offsets
argOffsets
retOffsets
static jdk.internal.foreign.abi.BufferLayout of(jdk.internal.foreign.abi.ABIDescriptor);
descriptor: (Ljdk/internal/foreign/abi/ABIDescriptor;)Ljdk/internal/foreign/abi/BufferLayout;
flags: (0x0008) ACC_STATIC
Code:
stack=14, locals=20, args_size=1
start local 0 0: lconst_0
lstore 1
start local 1 1: lload 1
ldc 8
invokestatic jdk.internal.foreign.abi.SharedUtils.alignUp:(JJ)J
lstore 1
2: lload 1
lstore 3
start local 3 3: lload 1
ldc 8
ladd
lstore 1
4: lload 1
ldc 8
invokestatic jdk.internal.foreign.abi.SharedUtils.alignUp:(JJ)J
lstore 1
5: lload 1
lstore 5
start local 5 6: lload 1
ldc 8
ladd
lstore 1
7: lload 1
ldc 8
invokestatic jdk.internal.foreign.abi.SharedUtils.alignUp:(JJ)J
lstore 1
8: lload 1
lstore 7
start local 7 9: lload 1
ldc 8
ladd
lstore 1
10: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 9
start local 9 11: aload 0
getfield jdk.internal.foreign.abi.ABIDescriptor.inputStorage:[[Ljdk/internal/foreign/abi/VMStorage;
arraylength
newarray 11
astore 10
start local 10 12: iconst_0
istore 11
start local 11 13: goto 24
14: StackMap locals: jdk.internal.foreign.abi.ABIDescriptor long long long long java.util.Map long[] int
StackMap stack:
aload 0
getfield jdk.internal.foreign.abi.ABIDescriptor.arch:Ljdk/internal/foreign/abi/Architecture;
iload 11
invokeinterface jdk.internal.foreign.abi.Architecture.typeSize:(I)I
i2l
lstore 12
start local 12 15: lload 1
lload 12
invokestatic jdk.internal.foreign.abi.SharedUtils.alignUp:(JJ)J
lstore 1
16: aload 10
iload 11
lload 1
lastore
17: aload 0
getfield jdk.internal.foreign.abi.ABIDescriptor.inputStorage:[[Ljdk/internal/foreign/abi/VMStorage;
iload 11
aaload
dup
astore 17
arraylength
istore 16
iconst_0
istore 15
goto 22
StackMap locals: jdk.internal.foreign.abi.ABIDescriptor long long long long java.util.Map long[] int long top int int jdk.internal.foreign.abi.VMStorage[]
StackMap stack:
18: aload 17
iload 15
aaload
astore 14
start local 14 19: aload 9
aload 14
lload 1
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
20: lload 1
lload 12
ladd
lstore 1
end local 14 21: iinc 15 1
StackMap locals:
StackMap stack:
22: iload 15
iload 16
if_icmplt 18
end local 12 23: iinc 11 1
StackMap locals: jdk.internal.foreign.abi.ABIDescriptor long long long long java.util.Map long[] int
StackMap stack:
24: iload 11
aload 0
getfield jdk.internal.foreign.abi.ABIDescriptor.inputStorage:[[Ljdk/internal/foreign/abi/VMStorage;
arraylength
if_icmplt 14
end local 11 25: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 11
start local 11 26: aload 0
getfield jdk.internal.foreign.abi.ABIDescriptor.outputStorage:[[Ljdk/internal/foreign/abi/VMStorage;
arraylength
newarray 11
astore 12
start local 12 27: iconst_0
istore 13
start local 13 28: goto 39
29: StackMap locals: jdk.internal.foreign.abi.ABIDescriptor long long long long java.util.Map long[] java.util.Map long[] int
StackMap stack:
aload 0
getfield jdk.internal.foreign.abi.ABIDescriptor.arch:Ljdk/internal/foreign/abi/Architecture;
iload 13
invokeinterface jdk.internal.foreign.abi.Architecture.typeSize:(I)I
i2l
lstore 14
start local 14 30: lload 1
lload 14
invokestatic jdk.internal.foreign.abi.SharedUtils.alignUp:(JJ)J
lstore 1
31: aload 12
iload 13
lload 1
lastore
32: aload 0
getfield jdk.internal.foreign.abi.ABIDescriptor.outputStorage:[[Ljdk/internal/foreign/abi/VMStorage;
iload 13
aaload
dup
astore 19
arraylength
istore 18
iconst_0
istore 17
goto 37
StackMap locals: jdk.internal.foreign.abi.ABIDescriptor long long long long java.util.Map long[] java.util.Map long[] int long top int int jdk.internal.foreign.abi.VMStorage[]
StackMap stack:
33: aload 19
iload 17
aaload
astore 16
start local 16 34: aload 11
aload 16
lload 1
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
35: lload 1
lload 14
ladd
lstore 1
end local 16 36: iinc 17 1
StackMap locals:
StackMap stack:
37: iload 17
iload 18
if_icmplt 33
end local 14 38: iinc 13 1
StackMap locals: jdk.internal.foreign.abi.ABIDescriptor long long long long java.util.Map long[] java.util.Map long[] int
StackMap stack:
39: iload 13
aload 0
getfield jdk.internal.foreign.abi.ABIDescriptor.outputStorage:[[Ljdk/internal/foreign/abi/VMStorage;
arraylength
if_icmplt 29
end local 13 40: new jdk.internal.foreign.abi.BufferLayout
dup
lload 1
lload 3
lload 5
lload 7
41: aload 10
aload 12
aload 9
aload 11
42: invokespecial jdk.internal.foreign.abi.BufferLayout.<init>:(JJJJ[J[JLjava/util/Map;Ljava/util/Map;)V
areturn
end local 12 end local 11 end local 10 end local 9 end local 7 end local 5 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 43 0 abi Ljdk/internal/foreign/abi/ABIDescriptor;
1 43 1 offset J
3 43 3 arguments_next_pc J
6 43 5 stack_args_bytes J
9 43 7 stack_args J
11 43 9 argOffsets Ljava/util/Map<Ljdk/internal/foreign/abi/VMStorage;Ljava/lang/Long;>;
12 43 10 input_type_offsets [J
13 25 11 i I
15 23 12 size J
19 21 14 store Ljdk/internal/foreign/abi/VMStorage;
26 43 11 retOffsets Ljava/util/Map<Ljdk/internal/foreign/abi/VMStorage;Ljava/lang/Long;>;
27 43 12 output_type_offsets [J
28 40 13 i I
30 38 14 size J
34 36 16 store Ljdk/internal/foreign/abi/VMStorage;
MethodParameters:
Name Flags
abi
long argOffset(jdk.internal.foreign.abi.VMStorage);
descriptor: (Ljdk/internal/foreign/abi/VMStorage;)J
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.foreign.abi.BufferLayout.argOffsets:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Long
invokevirtual java.lang.Long.longValue:()J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/foreign/abi/BufferLayout;
0 1 1 storage Ljdk/internal/foreign/abi/VMStorage;
MethodParameters:
Name Flags
storage
long retOffset(jdk.internal.foreign.abi.VMStorage);
descriptor: (Ljdk/internal/foreign/abi/VMStorage;)J
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.foreign.abi.BufferLayout.retOffsets:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Long
invokevirtual java.lang.Long.longValue:()J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/foreign/abi/BufferLayout;
0 1 1 storage Ljdk/internal/foreign/abi/VMStorage;
MethodParameters:
Name Flags
storage
private static java.lang.String getLongString(jdk.incubator.foreign.MemorySegment, long);
descriptor: (Ljdk/incubator/foreign/MemorySegment;J)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: getstatic jdk.internal.foreign.abi.BufferLayout.VH_LONG:Ljava/lang/invoke/VarHandle;
aload 0
lload 1
invokeinterface jdk.incubator.foreign.MemorySegment.asSlice:(J)Ljdk/incubator/foreign/MemorySegment;
invokevirtual java.lang.invoke.VarHandle.get:(Ljdk/incubator/foreign/MemorySegment;)J
invokestatic java.lang.Long.toHexString:(J)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 buffer Ljdk/incubator/foreign/MemorySegment;
0 1 1 offset J
MethodParameters:
Name Flags
buffer
offset
private static void dumpValues(jdk.internal.foreign.abi.Architecture, jdk.incubator.foreign.MemorySegment, java.io.PrintStream, java.util.Map<jdk.internal.foreign.abi.VMStorage, java.lang.Long>);
descriptor: (Ljdk/internal/foreign/abi/Architecture;Ljdk/incubator/foreign/MemorySegment;Ljava/io/PrintStream;Ljava/util/Map;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 5
goto 13
StackMap locals: jdk.internal.foreign.abi.Architecture jdk.incubator.foreign.MemorySegment java.io.PrintStream java.util.Map top java.util.Iterator
StackMap stack:
1: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 4
start local 4 2: aload 4
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast jdk.internal.foreign.abi.VMStorage
astore 6
start local 6 3: aload 2
aload 6
invokevirtual jdk.internal.foreign.abi.VMStorage.name:()Ljava/lang/String;
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
4: aload 2
ldc "={ "
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
5: aload 1
aload 4
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast java.lang.Long
invokevirtual java.lang.Long.longValue:()J
invokeinterface jdk.incubator.foreign.MemorySegment.asSlice:(J)Ljdk/incubator/foreign/MemorySegment;
astore 7
start local 7 6: iconst_0
istore 8
start local 8 7: goto 11
8: StackMap locals: jdk.internal.foreign.abi.Architecture jdk.incubator.foreign.MemorySegment java.io.PrintStream java.util.Map java.util.Map$Entry java.util.Iterator jdk.internal.foreign.abi.VMStorage jdk.incubator.foreign.MemorySegment int
StackMap stack:
aload 2
aload 7
iload 8
i2l
invokestatic jdk.internal.foreign.abi.BufferLayout.getLongString:(Ljdk/incubator/foreign/MemorySegment;J)Ljava/lang/String;
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
9: aload 2
ldc " "
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
10: iinc 8 8
StackMap locals:
StackMap stack:
11: iload 8
aload 0
aload 6
invokevirtual jdk.internal.foreign.abi.VMStorage.type:()I
invokeinterface jdk.internal.foreign.abi.Architecture.typeSize:(I)I
bipush 8
idiv
if_icmplt 8
end local 8 12: aload 2
ldc "}"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
end local 7 end local 6 end local 4 13: StackMap locals: jdk.internal.foreign.abi.Architecture jdk.incubator.foreign.MemorySegment java.io.PrintStream java.util.Map top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
14: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 arch Ljdk/internal/foreign/abi/Architecture;
0 15 1 buff Ljdk/incubator/foreign/MemorySegment;
0 15 2 stream Ljava/io/PrintStream;
0 15 3 offsets Ljava/util/Map<Ljdk/internal/foreign/abi/VMStorage;Ljava/lang/Long;>;
2 13 4 entry Ljava/util/Map$Entry<Ljdk/internal/foreign/abi/VMStorage;Ljava/lang/Long;>;
3 13 6 storage Ljdk/internal/foreign/abi/VMStorage;
6 13 7 start Ljdk/incubator/foreign/MemorySegment;
7 12 8 i I
Signature: (Ljdk/internal/foreign/abi/Architecture;Ljdk/incubator/foreign/MemorySegment;Ljava/io/PrintStream;Ljava/util/Map<Ljdk/internal/foreign/abi/VMStorage;Ljava/lang/Long;>;)V
MethodParameters:
Name Flags
arch
buff
stream
offsets
void dump(jdk.internal.foreign.abi.Architecture, jdk.incubator.foreign.MemorySegment, java.io.PrintStream);
descriptor: (Ljdk/internal/foreign/abi/Architecture;Ljdk/incubator/foreign/MemorySegment;Ljava/io/PrintStream;)V
flags: (0x0000)
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
new java.lang.StringBuilder
dup
ldc "Next PC: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
aload 0
getfield jdk.internal.foreign.abi.BufferLayout.arguments_next_pc:J
invokestatic jdk.internal.foreign.abi.BufferLayout.getLongString:(Ljdk/incubator/foreign/MemorySegment;J)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
1: aload 3
new java.lang.StringBuilder
dup
ldc "Stack args bytes: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
aload 0
getfield jdk.internal.foreign.abi.BufferLayout.stack_args_bytes:J
invokestatic jdk.internal.foreign.abi.BufferLayout.getLongString:(Ljdk/incubator/foreign/MemorySegment;J)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
2: aload 3
new java.lang.StringBuilder
dup
ldc "Stack args ptr: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
aload 0
getfield jdk.internal.foreign.abi.BufferLayout.stack_args:J
invokestatic jdk.internal.foreign.abi.BufferLayout.getLongString:(Ljdk/incubator/foreign/MemorySegment;J)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
3: aload 3
ldc "Arguments:"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
4: aload 1
aload 2
aload 3
aload 0
getfield jdk.internal.foreign.abi.BufferLayout.argOffsets:Ljava/util/Map;
invokestatic jdk.internal.foreign.abi.BufferLayout.dumpValues:(Ljdk/internal/foreign/abi/Architecture;Ljdk/incubator/foreign/MemorySegment;Ljava/io/PrintStream;Ljava/util/Map;)V
5: aload 3
ldc "Returns:"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
6: aload 1
aload 2
aload 3
aload 0
getfield jdk.internal.foreign.abi.BufferLayout.retOffsets:Ljava/util/Map;
invokestatic jdk.internal.foreign.abi.BufferLayout.dumpValues:(Ljdk/internal/foreign/abi/Architecture;Ljdk/incubator/foreign/MemorySegment;Ljava/io/PrintStream;Ljava/util/Map;)V
7: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/internal/foreign/abi/BufferLayout;
0 8 1 arch Ljdk/internal/foreign/abi/Architecture;
0 8 2 buff Ljdk/incubator/foreign/MemorySegment;
0 8 3 stream Ljava/io/PrintStream;
MethodParameters:
Name Flags
arch
buff
stream
}
SourceFile: "BufferLayout.java"
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map
public abstract PathElement = jdk.incubator.foreign.MemoryLayout$PathElement of jdk.incubator.foreign.MemoryLayout