public class jdk.internal.foreign.abi.Binding$Allocate extends jdk.internal.foreign.abi.Binding
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.internal.foreign.abi.Binding$Allocate
super_class: jdk.internal.foreign.abi.Binding
{
private final long size;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final long alignment;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private void <init>(long, long);
descriptor: (JJ)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 3 0: aload 0
getstatic jdk.internal.foreign.abi.Binding$Tag.ALLOC_BUFFER:Ljdk/internal/foreign/abi/Binding$Tag;
invokespecial jdk.internal.foreign.abi.Binding.<init>:(Ljdk/internal/foreign/abi/Binding$Tag;)V
1: aload 0
lload 1
putfield jdk.internal.foreign.abi.Binding$Allocate.size:J
2: aload 0
lload 3
putfield jdk.internal.foreign.abi.Binding$Allocate.alignment:J
3: return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/foreign/abi/Binding$Allocate;
0 4 1 size J
0 4 3 alignment J
MethodParameters:
Name Flags
size
alignment
private static jdk.incubator.foreign.MemorySegment allocateBuffer(long, long, jdk.internal.foreign.abi.SharedUtils$Allocator);
descriptor: (JJLjdk/internal/foreign/abi/SharedUtils$Allocator;)Ljdk/incubator/foreign/MemorySegment;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 2 start local 4 0: aload 4
lload 0
lload 2
invokeinterface jdk.internal.foreign.abi.SharedUtils$Allocator.allocate:(JJ)Ljdk/incubator/foreign/MemorySegment;
areturn
end local 4 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 size J
0 1 2 allignment J
0 1 4 allocator Ljdk/internal/foreign/abi/SharedUtils$Allocator;
MethodParameters:
Name Flags
size
allignment
allocator
public long size();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.foreign.abi.Binding$Allocate.size:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/foreign/abi/Binding$Allocate;
public long alignment();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.foreign.abi.Binding$Allocate.alignment:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/foreign/abi/Binding$Allocate;
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
ldc "AllocateBuffer{tag="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
1: aload 0
invokevirtual jdk.internal.foreign.abi.Binding$Allocate.tag:()Ljdk/internal/foreign/abi/Binding$Tag;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2: ldc "size="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield jdk.internal.foreign.abi.Binding$Allocate.size:J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
3: ldc ", alignment="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield jdk.internal.foreign.abi.Binding$Allocate.alignment:J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
4: bipush 125
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
5: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/internal/foreign/abi/Binding$Allocate;
public void verify(java.util.Deque<java.lang.Class<?>>);
descriptor: (Ljava/util/Deque;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc Ljdk/incubator/foreign/MemorySegment;
invokeinterface java.util.Deque.push:(Ljava/lang/Object;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/foreign/abi/Binding$Allocate;
0 2 1 stack Ljava/util/Deque<Ljava/lang/Class<*>;>;
Signature: (Ljava/util/Deque<Ljava/lang/Class<*>;>;)V
MethodParameters:
Name Flags
stack
public void interpret(java.util.Deque<java.lang.Object>, jdk.internal.foreign.abi.BindingInterpreter$StoreFunc, jdk.internal.foreign.abi.BindingInterpreter$LoadFunc, jdk.internal.foreign.abi.SharedUtils$Allocator);
descriptor: (Ljava/util/Deque;Ljdk/internal/foreign/abi/BindingInterpreter$StoreFunc;Ljdk/internal/foreign/abi/BindingInterpreter$LoadFunc;Ljdk/internal/foreign/abi/SharedUtils$Allocator;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 1
aload 0
getfield jdk.internal.foreign.abi.Binding$Allocate.size:J
aload 0
getfield jdk.internal.foreign.abi.Binding$Allocate.alignment:J
aload 4
invokestatic jdk.internal.foreign.abi.Binding$Allocate.allocateBuffer:(JJLjdk/internal/foreign/abi/SharedUtils$Allocator;)Ljdk/incubator/foreign/MemorySegment;
invokeinterface java.util.Deque.push:(Ljava/lang/Object;)V
1: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/foreign/abi/Binding$Allocate;
0 2 1 stack Ljava/util/Deque<Ljava/lang/Object;>;
0 2 2 storeFunc Ljdk/internal/foreign/abi/BindingInterpreter$StoreFunc;
0 2 3 loadFunc Ljdk/internal/foreign/abi/BindingInterpreter$LoadFunc;
0 2 4 allocator Ljdk/internal/foreign/abi/SharedUtils$Allocator;
Signature: (Ljava/util/Deque<Ljava/lang/Object;>;Ljdk/internal/foreign/abi/BindingInterpreter$StoreFunc;Ljdk/internal/foreign/abi/BindingInterpreter$LoadFunc;Ljdk/internal/foreign/abi/SharedUtils$Allocator;)V
MethodParameters:
Name Flags
stack
storeFunc
loadFunc
allocator
public java.lang.invoke.MethodHandle specialize(java.lang.invoke.MethodHandle, int, int);
descriptor: (Ljava/lang/invoke/MethodHandle;II)Ljava/lang/invoke/MethodHandle;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: getstatic jdk.internal.foreign.abi.Binding.MH_ALLOCATE_BUFFER:Ljava/lang/invoke/MethodHandle;
iconst_0
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield jdk.internal.foreign.abi.Binding$Allocate.size:J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
dup
iconst_1
aload 0
getfield jdk.internal.foreign.abi.Binding$Allocate.alignment:J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
invokestatic java.lang.invoke.MethodHandles.insertArguments:(Ljava/lang/invoke/MethodHandle;I[Ljava/lang/Object;)Ljava/lang/invoke/MethodHandle;
astore 4
start local 4 1: aload 1
iload 2
aload 4
invokestatic java.lang.invoke.MethodHandles.collectArguments:(Ljava/lang/invoke/MethodHandle;ILjava/lang/invoke/MethodHandle;)Ljava/lang/invoke/MethodHandle;
astore 1
2: aload 1
iload 3
iload 2
invokestatic jdk.internal.foreign.abi.Binding.mergeArguments:(Ljava/lang/invoke/MethodHandle;II)Ljava/lang/invoke/MethodHandle;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/foreign/abi/Binding$Allocate;
0 3 1 specializedHandle Ljava/lang/invoke/MethodHandle;
0 3 2 insertPos I
0 3 3 allocatorPos I
1 3 4 allocateBuffer Ljava/lang/invoke/MethodHandle;
MethodParameters:
Name Flags
specializedHandle
insertPos
allocatorPos
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
if_acmpne 1
iconst_1
ireturn
1: StackMap locals:
StackMap stack:
aload 1
ifnull 2
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
if_acmpeq 3
StackMap locals:
StackMap stack:
2: iconst_0
ireturn
3: StackMap locals:
StackMap stack:
aload 0
aload 1
invokespecial jdk.internal.foreign.abi.Binding.equals:(Ljava/lang/Object;)Z
ifne 4
iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 1
checkcast jdk.internal.foreign.abi.Binding$Allocate
astore 2
start local 2 5: aload 0
getfield jdk.internal.foreign.abi.Binding$Allocate.size:J
aload 2
getfield jdk.internal.foreign.abi.Binding$Allocate.size:J
lcmp
ifne 8
6: aload 0
getfield jdk.internal.foreign.abi.Binding$Allocate.alignment:J
aload 2
getfield jdk.internal.foreign.abi.Binding$Allocate.alignment:J
lcmp
ifne 8
7: iconst_1
ireturn
StackMap locals: jdk.internal.foreign.abi.Binding$Allocate
StackMap stack:
8: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/internal/foreign/abi/Binding$Allocate;
0 9 1 o Ljava/lang/Object;
5 9 2 allocate Ljdk/internal/foreign/abi/Binding$Allocate;
MethodParameters:
Name Flags
o
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 0
invokespecial jdk.internal.foreign.abi.Binding.hashCode:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
aload 0
getfield jdk.internal.foreign.abi.Binding$Allocate.size:J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
dup
iconst_2
aload 0
getfield jdk.internal.foreign.abi.Binding$Allocate.alignment:J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
invokestatic java.util.Objects.hash:([Ljava/lang/Object;)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/foreign/abi/Binding$Allocate;
}
SourceFile: "Binding.java"
NestHost: jdk.internal.foreign.abi.Binding
InnerClasses:
public Allocate = jdk.internal.foreign.abi.Binding$Allocate of jdk.internal.foreign.abi.Binding
final Tag = jdk.internal.foreign.abi.Binding$Tag of jdk.internal.foreign.abi.Binding
abstract LoadFunc = jdk.internal.foreign.abi.BindingInterpreter$LoadFunc of jdk.internal.foreign.abi.BindingInterpreter
abstract StoreFunc = jdk.internal.foreign.abi.BindingInterpreter$StoreFunc of jdk.internal.foreign.abi.BindingInterpreter
public abstract Allocator = jdk.internal.foreign.abi.SharedUtils$Allocator of jdk.internal.foreign.abi.SharedUtils