public class jdk.internal.foreign.abi.Binding$ToSegment 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$ToSegment
super_class: jdk.internal.foreign.abi.Binding
{
private final long size;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getstatic jdk.internal.foreign.abi.Binding$Tag.TO_SEGMENT: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$ToSegment.size:J
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/foreign/abi/Binding$ToSegment;
0 3 1 size J
MethodParameters:
Name Flags
size
private static jdk.incubator.foreign.MemorySegment toSegment(jdk.incubator.foreign.MemoryAddress, long);
descriptor: (Ljdk/incubator/foreign/MemoryAddress;J)Ljdk/incubator/foreign/MemorySegment;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokeinterface jdk.incubator.foreign.MemoryAddress.toRawLongValue:()J
lload 1
invokestatic jdk.internal.foreign.MemoryAddressImpl.ofLongUnchecked:(JJ)Ljdk/incubator/foreign/MemorySegment;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 operand Ljdk/incubator/foreign/MemoryAddress;
0 1 1 size J
MethodParameters:
Name Flags
operand
size
public void verify(java.util.Deque<java.lang.Class<?>>);
descriptor: (Ljava/util/Deque;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast java.lang.Class
astore 2
start local 2 1: aload 2
ldc Ljdk/incubator/foreign/MemoryAddress;
invokestatic jdk.internal.foreign.abi.SharedUtils.checkType:(Ljava/lang/Class;Ljava/lang/Class;)V
2: aload 1
ldc Ljdk/incubator/foreign/MemorySegment;
invokeinterface java.util.Deque.push:(Ljava/lang/Object;)V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/foreign/abi/Binding$ToSegment;
0 4 1 stack Ljava/util/Deque<Ljava/lang/Class<*>;>;
1 4 2 actualType 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=3, locals=7, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 1
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast jdk.incubator.foreign.MemoryAddress
astore 5
start local 5 1: aload 5
aload 0
getfield jdk.internal.foreign.abi.Binding$ToSegment.size:J
invokestatic jdk.internal.foreign.abi.Binding$ToSegment.toSegment:(Ljdk/incubator/foreign/MemoryAddress;J)Ljdk/incubator/foreign/MemorySegment;
astore 6
start local 6 2: aload 1
aload 6
invokeinterface java.util.Deque.push:(Ljava/lang/Object;)V
3: return
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 4 0 this Ljdk/internal/foreign/abi/Binding$ToSegment;
0 4 1 stack Ljava/util/Deque<Ljava/lang/Object;>;
0 4 2 storeFunc Ljdk/internal/foreign/abi/BindingInterpreter$StoreFunc;
0 4 3 loadFunc Ljdk/internal/foreign/abi/BindingInterpreter$LoadFunc;
0 4 4 allocator Ljdk/internal/foreign/abi/SharedUtils$Allocator;
1 4 5 operand Ljdk/incubator/foreign/MemoryAddress;
2 4 6 segment Ljdk/incubator/foreign/MemorySegment;
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_TO_SEGMENT:Ljava/lang/invoke/MethodHandle;
iconst_1
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield jdk.internal.foreign.abi.Binding$ToSegment.size: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
iconst_1
anewarray java.lang.invoke.MethodHandle
dup
iconst_0
aload 4
aastore
invokestatic java.lang.invoke.MethodHandles.filterArguments:(Ljava/lang/invoke/MethodHandle;I[Ljava/lang/invoke/MethodHandle;)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 2 0 this Ljdk/internal/foreign/abi/Binding$ToSegment;
0 2 1 specializedHandle Ljava/lang/invoke/MethodHandle;
0 2 2 insertPos I
0 2 3 allocatorPos I
1 2 4 toSegmentHandle Ljava/lang/invoke/MethodHandle;
MethodParameters:
Name Flags
specializedHandle
insertPos
allocatorPos
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 "ToSegemnt{size="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
1: aload 0
getfield jdk.internal.foreign.abi.Binding$ToSegment.size:J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
2: bipush 125
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
3: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/foreign/abi/Binding$ToSegment;
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$ToSegment
astore 2
start local 2 5: aload 0
getfield jdk.internal.foreign.abi.Binding$ToSegment.size:J
aload 2
getfield jdk.internal.foreign.abi.Binding$ToSegment.size:J
lcmp
ifne 6
iconst_1
ireturn
StackMap locals: jdk.internal.foreign.abi.Binding$ToSegment
StackMap stack:
6: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/internal/foreign/abi/Binding$ToSegment;
0 7 1 o Ljava/lang/Object;
5 7 2 toSegemnt Ljdk/internal/foreign/abi/Binding$ToSegment;
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_2
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$ToSegment.size: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$ToSegment;
}
SourceFile: "Binding.java"
NestHost: jdk.internal.foreign.abi.Binding
InnerClasses:
final Tag = jdk.internal.foreign.abi.Binding$Tag of jdk.internal.foreign.abi.Binding
public ToSegment = jdk.internal.foreign.abi.Binding$ToSegment 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