public final class jdk.incubator.foreign.MemoryHandles
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.incubator.foreign.MemoryHandles
super_class: java.lang.Object
{
private static final jdk.internal.access.JavaLangInvokeAccess JLI;
descriptor: Ljdk/internal/access/JavaLangInvokeAccess;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.invoke.MethodHandle LONG_TO_ADDRESS;
descriptor: Ljava/lang/invoke/MethodHandle;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.invoke.MethodHandle ADDRESS_TO_LONG;
descriptor: Ljava/lang/invoke/MethodHandle;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.invoke.MethodHandle INT_TO_BYTE;
descriptor: Ljava/lang/invoke/MethodHandle;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.invoke.MethodHandle BYTE_TO_UNSIGNED_INT;
descriptor: Ljava/lang/invoke/MethodHandle;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.invoke.MethodHandle INT_TO_SHORT;
descriptor: Ljava/lang/invoke/MethodHandle;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.invoke.MethodHandle SHORT_TO_UNSIGNED_INT;
descriptor: Ljava/lang/invoke/MethodHandle;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.invoke.MethodHandle LONG_TO_BYTE;
descriptor: Ljava/lang/invoke/MethodHandle;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.invoke.MethodHandle BYTE_TO_UNSIGNED_LONG;
descriptor: Ljava/lang/invoke/MethodHandle;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.invoke.MethodHandle LONG_TO_SHORT;
descriptor: Ljava/lang/invoke/MethodHandle;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.invoke.MethodHandle SHORT_TO_UNSIGNED_LONG;
descriptor: Ljava/lang/invoke/MethodHandle;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.invoke.MethodHandle LONG_TO_INT;
descriptor: Ljava/lang/invoke/MethodHandle;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.invoke.MethodHandle INT_TO_UNSIGNED_LONG;
descriptor: Ljava/lang/invoke/MethodHandle;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=1, args_size=0
0: invokestatic jdk.internal.access.SharedSecrets.getJavaLangInvokeAccess:()Ljdk/internal/access/JavaLangInvokeAccess;
putstatic jdk.incubator.foreign.MemoryHandles.JLI:Ljdk/internal/access/JavaLangInvokeAccess;
1: invokestatic java.lang.invoke.MethodHandles.lookup:()Ljava/lang/invoke/MethodHandles$Lookup;
ldc Ljdk/incubator/foreign/MemoryHandles;
ldc "longToAddress"
2: ldc Ljdk/incubator/foreign/MemoryAddress;
getstatic java.lang.Long.TYPE:Ljava/lang/Class;
invokestatic java.lang.invoke.MethodType.methodType:(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/invoke/MethodType;
3: invokevirtual java.lang.invoke.MethodHandles$Lookup.findStatic:(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/MethodHandle;
putstatic jdk.incubator.foreign.MemoryHandles.LONG_TO_ADDRESS:Ljava/lang/invoke/MethodHandle;
4: invokestatic java.lang.invoke.MethodHandles.lookup:()Ljava/lang/invoke/MethodHandles$Lookup;
ldc Ljdk/incubator/foreign/MemoryHandles;
ldc "addressToLong"
5: getstatic java.lang.Long.TYPE:Ljava/lang/Class;
ldc Ljdk/incubator/foreign/MemoryAddress;
invokestatic java.lang.invoke.MethodType.methodType:(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/invoke/MethodType;
6: invokevirtual java.lang.invoke.MethodHandles$Lookup.findStatic:(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/MethodHandle;
putstatic jdk.incubator.foreign.MemoryHandles.ADDRESS_TO_LONG:Ljava/lang/invoke/MethodHandle;
7: getstatic java.lang.Byte.TYPE:Ljava/lang/Class;
invokestatic java.lang.invoke.MethodHandles.identity:(Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;
8: getstatic java.lang.Byte.TYPE:Ljava/lang/Class;
getstatic java.lang.Integer.TYPE:Ljava/lang/Class;
invokestatic java.lang.invoke.MethodType.methodType:(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/invoke/MethodType;
9: invokestatic java.lang.invoke.MethodHandles.explicitCastArguments:(Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/MethodHandle;
putstatic jdk.incubator.foreign.MemoryHandles.INT_TO_BYTE:Ljava/lang/invoke/MethodHandle;
10: invokestatic java.lang.invoke.MethodHandles.lookup:()Ljava/lang/invoke/MethodHandles$Lookup;
ldc Ljava/lang/Byte;
ldc "toUnsignedInt"
11: getstatic java.lang.Integer.TYPE:Ljava/lang/Class;
getstatic java.lang.Byte.TYPE:Ljava/lang/Class;
invokestatic java.lang.invoke.MethodType.methodType:(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/invoke/MethodType;
12: invokevirtual java.lang.invoke.MethodHandles$Lookup.findStatic:(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/MethodHandle;
putstatic jdk.incubator.foreign.MemoryHandles.BYTE_TO_UNSIGNED_INT:Ljava/lang/invoke/MethodHandle;
13: getstatic java.lang.Short.TYPE:Ljava/lang/Class;
invokestatic java.lang.invoke.MethodHandles.identity:(Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;
14: getstatic java.lang.Short.TYPE:Ljava/lang/Class;
getstatic java.lang.Integer.TYPE:Ljava/lang/Class;
invokestatic java.lang.invoke.MethodType.methodType:(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/invoke/MethodType;
15: invokestatic java.lang.invoke.MethodHandles.explicitCastArguments:(Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/MethodHandle;
putstatic jdk.incubator.foreign.MemoryHandles.INT_TO_SHORT:Ljava/lang/invoke/MethodHandle;
16: invokestatic java.lang.invoke.MethodHandles.lookup:()Ljava/lang/invoke/MethodHandles$Lookup;
ldc Ljava/lang/Short;
ldc "toUnsignedInt"
17: getstatic java.lang.Integer.TYPE:Ljava/lang/Class;
getstatic java.lang.Short.TYPE:Ljava/lang/Class;
invokestatic java.lang.invoke.MethodType.methodType:(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/invoke/MethodType;
18: invokevirtual java.lang.invoke.MethodHandles$Lookup.findStatic:(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/MethodHandle;
putstatic jdk.incubator.foreign.MemoryHandles.SHORT_TO_UNSIGNED_INT:Ljava/lang/invoke/MethodHandle;
19: getstatic java.lang.Byte.TYPE:Ljava/lang/Class;
invokestatic java.lang.invoke.MethodHandles.identity:(Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;
20: getstatic java.lang.Byte.TYPE:Ljava/lang/Class;
getstatic java.lang.Long.TYPE:Ljava/lang/Class;
invokestatic java.lang.invoke.MethodType.methodType:(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/invoke/MethodType;
21: invokestatic java.lang.invoke.MethodHandles.explicitCastArguments:(Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/MethodHandle;
putstatic jdk.incubator.foreign.MemoryHandles.LONG_TO_BYTE:Ljava/lang/invoke/MethodHandle;
22: invokestatic java.lang.invoke.MethodHandles.lookup:()Ljava/lang/invoke/MethodHandles$Lookup;
ldc Ljava/lang/Byte;
ldc "toUnsignedLong"
23: getstatic java.lang.Long.TYPE:Ljava/lang/Class;
getstatic java.lang.Byte.TYPE:Ljava/lang/Class;
invokestatic java.lang.invoke.MethodType.methodType:(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/invoke/MethodType;
24: invokevirtual java.lang.invoke.MethodHandles$Lookup.findStatic:(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/MethodHandle;
putstatic jdk.incubator.foreign.MemoryHandles.BYTE_TO_UNSIGNED_LONG:Ljava/lang/invoke/MethodHandle;
25: getstatic java.lang.Short.TYPE:Ljava/lang/Class;
invokestatic java.lang.invoke.MethodHandles.identity:(Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;
26: getstatic java.lang.Short.TYPE:Ljava/lang/Class;
getstatic java.lang.Long.TYPE:Ljava/lang/Class;
invokestatic java.lang.invoke.MethodType.methodType:(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/invoke/MethodType;
27: invokestatic java.lang.invoke.MethodHandles.explicitCastArguments:(Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/MethodHandle;
putstatic jdk.incubator.foreign.MemoryHandles.LONG_TO_SHORT:Ljava/lang/invoke/MethodHandle;
28: invokestatic java.lang.invoke.MethodHandles.lookup:()Ljava/lang/invoke/MethodHandles$Lookup;
ldc Ljava/lang/Short;
ldc "toUnsignedLong"
29: getstatic java.lang.Long.TYPE:Ljava/lang/Class;
getstatic java.lang.Short.TYPE:Ljava/lang/Class;
invokestatic java.lang.invoke.MethodType.methodType:(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/invoke/MethodType;
30: invokevirtual java.lang.invoke.MethodHandles$Lookup.findStatic:(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/MethodHandle;
putstatic jdk.incubator.foreign.MemoryHandles.SHORT_TO_UNSIGNED_LONG:Ljava/lang/invoke/MethodHandle;
31: getstatic java.lang.Integer.TYPE:Ljava/lang/Class;
invokestatic java.lang.invoke.MethodHandles.identity:(Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;
32: getstatic java.lang.Integer.TYPE:Ljava/lang/Class;
getstatic java.lang.Long.TYPE:Ljava/lang/Class;
invokestatic java.lang.invoke.MethodType.methodType:(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/invoke/MethodType;
33: invokestatic java.lang.invoke.MethodHandles.explicitCastArguments:(Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/MethodHandle;
putstatic jdk.incubator.foreign.MemoryHandles.LONG_TO_INT:Ljava/lang/invoke/MethodHandle;
34: invokestatic java.lang.invoke.MethodHandles.lookup:()Ljava/lang/invoke/MethodHandles$Lookup;
ldc Ljava/lang/Integer;
ldc "toUnsignedLong"
35: getstatic java.lang.Long.TYPE:Ljava/lang/Class;
getstatic java.lang.Integer.TYPE:Ljava/lang/Class;
invokestatic java.lang.invoke.MethodType.methodType:(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/invoke/MethodType;
36: invokevirtual java.lang.invoke.MethodHandles$Lookup.findStatic:(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/MethodHandle;
putstatic jdk.incubator.foreign.MemoryHandles.INT_TO_UNSIGNED_LONG:Ljava/lang/invoke/MethodHandle;
37: goto 40
StackMap locals:
StackMap stack: java.lang.Throwable
38: astore 0
start local 0 39: new java.lang.ExceptionInInitializerError
dup
aload 0
invokespecial java.lang.ExceptionInInitializerError.<init>:(Ljava/lang/Throwable;)V
athrow
end local 0 40: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
39 40 0 ex Ljava/lang/Throwable;
Exception table:
from to target type
1 37 38 Class java.lang.Throwable
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/incubator/foreign/MemoryHandles;
public static java.lang.invoke.VarHandle varHandle(java.lang.Class<?>, java.nio.ByteOrder);
descriptor: (Ljava/lang/Class;Ljava/nio/ByteOrder;)Ljava/lang/invoke/VarHandle;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 0
3: aload 0
invokestatic jdk.incubator.foreign.MemoryHandles.carrierSize:(Ljava/lang/Class;)J
4: aload 1
5: invokestatic jdk.incubator.foreign.MemoryHandles.varHandle:(Ljava/lang/Class;JLjava/nio/ByteOrder;)Ljava/lang/invoke/VarHandle;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 carrier Ljava/lang/Class<*>;
0 6 1 byteOrder Ljava/nio/ByteOrder;
Signature: (Ljava/lang/Class<*>;Ljava/nio/ByteOrder;)Ljava/lang/invoke/VarHandle;
MethodParameters:
Name Flags
carrier
byteOrder
public static java.lang.invoke.VarHandle varHandle(java.lang.Class<?>, long, java.nio.ByteOrder);
descriptor: (Ljava/lang/Class;JLjava/nio/ByteOrder;)Ljava/lang/invoke/VarHandle;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=4, args_size=3
start local 0 start local 1 start local 3 0: aload 0
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 3
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 0
invokestatic jdk.incubator.foreign.MemoryHandles.checkCarrier:(Ljava/lang/Class;)V
3: lload 1
lconst_0
lcmp
ifle 5
4: lload 1
lload 1
lconst_1
lsub
land
lconst_0
lcmp
ifeq 6
5: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Bad alignment: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
lload 1
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
getstatic jdk.incubator.foreign.MemoryHandles.JLI:Ljdk/internal/access/JavaLangInvokeAccess;
aload 0
iconst_0
lload 1
lconst_1
lsub
aload 3
invokeinterface jdk.internal.access.JavaLangInvokeAccess.memoryAccessVarHandle:(Ljava/lang/Class;ZJLjava/nio/ByteOrder;)Ljava/lang/invoke/VarHandle;
invokestatic jdk.internal.foreign.Utils.fixUpVarHandle:(Ljava/lang/invoke/VarHandle;)Ljava/lang/invoke/VarHandle;
areturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 carrier Ljava/lang/Class<*>;
0 7 1 alignmentBytes J
0 7 3 byteOrder Ljava/nio/ByteOrder;
Signature: (Ljava/lang/Class<*>;JLjava/nio/ByteOrder;)Ljava/lang/invoke/VarHandle;
MethodParameters:
Name Flags
carrier
alignmentBytes
byteOrder
public static java.lang.invoke.VarHandle asAddressVarHandle(java.lang.invoke.VarHandle);
descriptor: (Ljava/lang/invoke/VarHandle;)Ljava/lang/invoke/VarHandle;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
invokevirtual java.lang.invoke.VarHandle.varType:()Ljava/lang/Class;
astore 1
start local 1 2: aload 1
invokevirtual java.lang.Class.isPrimitive:()Z
ifeq 4
aload 1
getstatic java.lang.Boolean.TYPE:Ljava/lang/Class;
if_acmpeq 4
3: aload 1
getstatic java.lang.Float.TYPE:Ljava/lang/Class;
if_acmpeq 4
aload 1
getstatic java.lang.Double.TYPE:Ljava/lang/Class;
if_acmpne 5
4: StackMap locals: java.lang.Class
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Unsupported carrier type: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
aload 1
getstatic java.lang.Long.TYPE:Ljava/lang/Class;
if_acmpeq 10
6: aload 0
7: getstatic jdk.incubator.foreign.MemoryHandles.ADDRESS_TO_LONG:Ljava/lang/invoke/MethodHandle;
aload 1
ldc Ljdk/incubator/foreign/MemoryAddress;
invokestatic java.lang.invoke.MethodType.methodType:(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/invoke/MethodType;
invokestatic java.lang.invoke.MethodHandles.explicitCastArguments:(Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/MethodHandle;
8: getstatic jdk.incubator.foreign.MemoryHandles.LONG_TO_ADDRESS:Ljava/lang/invoke/MethodHandle;
ldc Ljdk/incubator/foreign/MemoryAddress;
aload 1
invokestatic java.lang.invoke.MethodType.methodType:(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/invoke/MethodType;
invokestatic java.lang.invoke.MethodHandles.explicitCastArguments:(Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/MethodHandle;
9: invokestatic jdk.incubator.foreign.MemoryHandles.filterValue:(Ljava/lang/invoke/VarHandle;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodHandle;)Ljava/lang/invoke/VarHandle;
areturn
10: StackMap locals:
StackMap stack:
aload 0
getstatic jdk.incubator.foreign.MemoryHandles.ADDRESS_TO_LONG:Ljava/lang/invoke/MethodHandle;
getstatic jdk.incubator.foreign.MemoryHandles.LONG_TO_ADDRESS:Ljava/lang/invoke/MethodHandle;
invokestatic jdk.incubator.foreign.MemoryHandles.filterValue:(Ljava/lang/invoke/VarHandle;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodHandle;)Ljava/lang/invoke/VarHandle;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 target Ljava/lang/invoke/VarHandle;
2 11 1 carrier Ljava/lang/Class<*>;
MethodParameters:
Name Flags
target
public static java.lang.invoke.VarHandle asUnsigned(java.lang.invoke.VarHandle, java.lang.Class<?>);
descriptor: (Ljava/lang/invoke/VarHandle;Ljava/lang/Class;)Ljava/lang/invoke/VarHandle;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 0
invokevirtual java.lang.invoke.VarHandle.varType:()Ljava/lang/Class;
astore 2
start local 2 3: aload 2
invokestatic jdk.incubator.foreign.MemoryHandles.checkWidenable:(Ljava/lang/Class;)V
4: aload 1
invokestatic jdk.incubator.foreign.MemoryHandles.checkNarrowable:(Ljava/lang/Class;)V
5: aload 2
aload 1
invokestatic jdk.incubator.foreign.MemoryHandles.checkTargetWiderThanCarrier:(Ljava/lang/Class;Ljava/lang/Class;)V
6: aload 1
getstatic java.lang.Integer.TYPE:Ljava/lang/Class;
if_acmpne 8
aload 2
getstatic java.lang.Byte.TYPE:Ljava/lang/Class;
if_acmpne 8
7: aload 0
getstatic jdk.incubator.foreign.MemoryHandles.INT_TO_BYTE:Ljava/lang/invoke/MethodHandle;
getstatic jdk.incubator.foreign.MemoryHandles.BYTE_TO_UNSIGNED_INT:Ljava/lang/invoke/MethodHandle;
invokestatic jdk.incubator.foreign.MemoryHandles.filterValue:(Ljava/lang/invoke/VarHandle;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodHandle;)Ljava/lang/invoke/VarHandle;
areturn
8: StackMap locals: java.lang.Class
StackMap stack:
aload 1
getstatic java.lang.Integer.TYPE:Ljava/lang/Class;
if_acmpne 10
aload 2
getstatic java.lang.Short.TYPE:Ljava/lang/Class;
if_acmpne 10
9: aload 0
getstatic jdk.incubator.foreign.MemoryHandles.INT_TO_SHORT:Ljava/lang/invoke/MethodHandle;
getstatic jdk.incubator.foreign.MemoryHandles.SHORT_TO_UNSIGNED_INT:Ljava/lang/invoke/MethodHandle;
invokestatic jdk.incubator.foreign.MemoryHandles.filterValue:(Ljava/lang/invoke/VarHandle;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodHandle;)Ljava/lang/invoke/VarHandle;
areturn
10: StackMap locals:
StackMap stack:
aload 1
getstatic java.lang.Long.TYPE:Ljava/lang/Class;
if_acmpne 12
aload 2
getstatic java.lang.Byte.TYPE:Ljava/lang/Class;
if_acmpne 12
11: aload 0
getstatic jdk.incubator.foreign.MemoryHandles.LONG_TO_BYTE:Ljava/lang/invoke/MethodHandle;
getstatic jdk.incubator.foreign.MemoryHandles.BYTE_TO_UNSIGNED_LONG:Ljava/lang/invoke/MethodHandle;
invokestatic jdk.incubator.foreign.MemoryHandles.filterValue:(Ljava/lang/invoke/VarHandle;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodHandle;)Ljava/lang/invoke/VarHandle;
areturn
12: StackMap locals:
StackMap stack:
aload 1
getstatic java.lang.Long.TYPE:Ljava/lang/Class;
if_acmpne 14
aload 2
getstatic java.lang.Short.TYPE:Ljava/lang/Class;
if_acmpne 14
13: aload 0
getstatic jdk.incubator.foreign.MemoryHandles.LONG_TO_SHORT:Ljava/lang/invoke/MethodHandle;
getstatic jdk.incubator.foreign.MemoryHandles.SHORT_TO_UNSIGNED_LONG:Ljava/lang/invoke/MethodHandle;
invokestatic jdk.incubator.foreign.MemoryHandles.filterValue:(Ljava/lang/invoke/VarHandle;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodHandle;)Ljava/lang/invoke/VarHandle;
areturn
14: StackMap locals:
StackMap stack:
aload 1
getstatic java.lang.Long.TYPE:Ljava/lang/Class;
if_acmpne 16
aload 2
getstatic java.lang.Integer.TYPE:Ljava/lang/Class;
if_acmpne 16
15: aload 0
getstatic jdk.incubator.foreign.MemoryHandles.LONG_TO_INT:Ljava/lang/invoke/MethodHandle;
getstatic jdk.incubator.foreign.MemoryHandles.INT_TO_UNSIGNED_LONG:Ljava/lang/invoke/MethodHandle;
invokestatic jdk.incubator.foreign.MemoryHandles.filterValue:(Ljava/lang/invoke/VarHandle;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodHandle;)Ljava/lang/invoke/VarHandle;
areturn
16: StackMap locals:
StackMap stack:
new java.lang.InternalError
dup
ldc "should not reach here"
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 target Ljava/lang/invoke/VarHandle;
0 17 1 adaptedType Ljava/lang/Class<*>;
3 17 2 carrier Ljava/lang/Class<*>;
Signature: (Ljava/lang/invoke/VarHandle;Ljava/lang/Class<*>;)Ljava/lang/invoke/VarHandle;
MethodParameters:
Name Flags
target
adaptedType final
public static java.lang.invoke.VarHandle filterValue(java.lang.invoke.VarHandle, java.lang.invoke.MethodHandle, java.lang.invoke.MethodHandle);
descriptor: (Ljava/lang/invoke/VarHandle;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodHandle;)Ljava/lang/invoke/VarHandle;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: getstatic jdk.incubator.foreign.MemoryHandles.JLI:Ljdk/internal/access/JavaLangInvokeAccess;
aload 0
aload 1
aload 2
invokeinterface jdk.internal.access.JavaLangInvokeAccess.filterValue:(Ljava/lang/invoke/VarHandle;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodHandle;)Ljava/lang/invoke/VarHandle;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 target Ljava/lang/invoke/VarHandle;
0 1 1 filterToTarget Ljava/lang/invoke/MethodHandle;
0 1 2 filterFromTarget Ljava/lang/invoke/MethodHandle;
MethodParameters:
Name Flags
target
filterToTarget
filterFromTarget
public static java.lang.invoke.VarHandle filterCoordinates(java.lang.invoke.VarHandle, int, java.lang.invoke.MethodHandle[]);
descriptor: (Ljava/lang/invoke/VarHandle;I[Ljava/lang/invoke/MethodHandle;)Ljava/lang/invoke/VarHandle;
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: getstatic jdk.incubator.foreign.MemoryHandles.JLI:Ljdk/internal/access/JavaLangInvokeAccess;
aload 0
iload 1
aload 2
invokeinterface jdk.internal.access.JavaLangInvokeAccess.filterCoordinates:(Ljava/lang/invoke/VarHandle;I[Ljava/lang/invoke/MethodHandle;)Ljava/lang/invoke/VarHandle;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 target Ljava/lang/invoke/VarHandle;
0 1 1 pos I
0 1 2 filters [Ljava/lang/invoke/MethodHandle;
MethodParameters:
Name Flags
target
pos
filters
public static java.lang.invoke.VarHandle insertCoordinates(java.lang.invoke.VarHandle, int, java.lang.Object[]);
descriptor: (Ljava/lang/invoke/VarHandle;I[Ljava/lang/Object;)Ljava/lang/invoke/VarHandle;
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: getstatic jdk.incubator.foreign.MemoryHandles.JLI:Ljdk/internal/access/JavaLangInvokeAccess;
aload 0
iload 1
aload 2
invokeinterface jdk.internal.access.JavaLangInvokeAccess.insertCoordinates:(Ljava/lang/invoke/VarHandle;I[Ljava/lang/Object;)Ljava/lang/invoke/VarHandle;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 target Ljava/lang/invoke/VarHandle;
0 1 1 pos I
0 1 2 values [Ljava/lang/Object;
MethodParameters:
Name Flags
target
pos
values
public static java.lang.invoke.VarHandle permuteCoordinates(java.lang.invoke.VarHandle, java.util.List<java.lang.Class<?>>, int[]);
descriptor: (Ljava/lang/invoke/VarHandle;Ljava/util/List;[I)Ljava/lang/invoke/VarHandle;
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: getstatic jdk.incubator.foreign.MemoryHandles.JLI:Ljdk/internal/access/JavaLangInvokeAccess;
aload 0
aload 1
aload 2
invokeinterface jdk.internal.access.JavaLangInvokeAccess.permuteCoordinates:(Ljava/lang/invoke/VarHandle;Ljava/util/List;[I)Ljava/lang/invoke/VarHandle;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 target Ljava/lang/invoke/VarHandle;
0 1 1 newCoordinates Ljava/util/List<Ljava/lang/Class<*>;>;
0 1 2 reorder [I
Signature: (Ljava/lang/invoke/VarHandle;Ljava/util/List<Ljava/lang/Class<*>;>;[I)Ljava/lang/invoke/VarHandle;
MethodParameters:
Name Flags
target
newCoordinates
reorder
public static java.lang.invoke.VarHandle collectCoordinates(java.lang.invoke.VarHandle, int, java.lang.invoke.MethodHandle);
descriptor: (Ljava/lang/invoke/VarHandle;ILjava/lang/invoke/MethodHandle;)Ljava/lang/invoke/VarHandle;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: getstatic jdk.incubator.foreign.MemoryHandles.JLI:Ljdk/internal/access/JavaLangInvokeAccess;
aload 0
iload 1
aload 2
invokeinterface jdk.internal.access.JavaLangInvokeAccess.collectCoordinates:(Ljava/lang/invoke/VarHandle;ILjava/lang/invoke/MethodHandle;)Ljava/lang/invoke/VarHandle;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 target Ljava/lang/invoke/VarHandle;
0 1 1 pos I
0 1 2 filter Ljava/lang/invoke/MethodHandle;
MethodParameters:
Name Flags
target
pos
filter
public static java.lang.invoke.VarHandle dropCoordinates(java.lang.invoke.VarHandle, int, java.lang.Class<?>[]);
descriptor: (Ljava/lang/invoke/VarHandle;I[Ljava/lang/Class;)Ljava/lang/invoke/VarHandle;
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: getstatic jdk.incubator.foreign.MemoryHandles.JLI:Ljdk/internal/access/JavaLangInvokeAccess;
aload 0
iload 1
aload 2
invokeinterface jdk.internal.access.JavaLangInvokeAccess.dropCoordinates:(Ljava/lang/invoke/VarHandle;I[Ljava/lang/Class;)Ljava/lang/invoke/VarHandle;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 target Ljava/lang/invoke/VarHandle;
0 1 1 pos I
0 1 2 valueTypes [Ljava/lang/Class;
Signature: (Ljava/lang/invoke/VarHandle;I[Ljava/lang/Class<*>;)Ljava/lang/invoke/VarHandle;
MethodParameters:
Name Flags
target
pos
valueTypes
private static void checkAddressFirstCoordinate(java.lang.invoke.VarHandle);
descriptor: (Ljava/lang/invoke/VarHandle;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.invoke.VarHandle.coordinateTypes:()Ljava/util/List;
invokeinterface java.util.List.size:()I
iconst_1
if_icmplt 2
1: aload 0
invokevirtual java.lang.invoke.VarHandle.coordinateTypes:()Ljava/util/List;
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
ldc Ljdk/incubator/foreign/MemorySegment;
if_acmpeq 3
2: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "Expected var handle with leading coordinate of type MemorySegment"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 handle Ljava/lang/invoke/VarHandle;
MethodParameters:
Name Flags
handle
private static void checkCarrier(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Class.isPrimitive:()Z
ifeq 1
aload 0
getstatic java.lang.Void.TYPE:Ljava/lang/Class;
if_acmpeq 1
aload 0
getstatic java.lang.Boolean.TYPE:Ljava/lang/Class;
if_acmpne 2
1: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Illegal carrier: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 carrier Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)V
MethodParameters:
Name Flags
carrier
private static long carrierSize(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: bipush 8
aload 0
invokestatic sun.invoke.util.Wrapper.forPrimitiveType:(Ljava/lang/Class;)Lsun/invoke/util/Wrapper;
invokevirtual sun.invoke.util.Wrapper.bitWidth:()I
invokestatic java.lang.Math.max:(II)I
i2l
lstore 1
start local 1 1: lload 1
invokedynamic get()Ljava/util/function/Supplier;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
java/lang/IllegalStateException.<init>()V (8)
()Ljava/lang/RuntimeException;
invokestatic jdk.internal.foreign.Utils.bitsToBytesOrThrow:(JLjava/util/function/Supplier;)J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 carrier Ljava/lang/Class<*>;
1 2 1 bitsAlignment J
Signature: (Ljava/lang/Class<*>;)J
MethodParameters:
Name Flags
carrier
private static void checkWidenable(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
getstatic java.lang.Byte.TYPE:Ljava/lang/Class;
if_acmpeq 2
aload 0
getstatic java.lang.Short.TYPE:Ljava/lang/Class;
if_acmpeq 2
aload 0
getstatic java.lang.Integer.TYPE:Ljava/lang/Class;
if_acmpeq 2
1: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "illegal carrier:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 carrier Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)V
MethodParameters:
Name Flags
carrier
private static void checkNarrowable(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
getstatic java.lang.Integer.TYPE:Ljava/lang/Class;
if_acmpeq 2
aload 0
getstatic java.lang.Long.TYPE:Ljava/lang/Class;
if_acmpeq 2
1: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "illegal adapter type: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 type Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)V
MethodParameters:
Name Flags
type
private static void checkTargetWiderThanCarrier(java.lang.Class<?>, java.lang.Class<?>);
descriptor: (Ljava/lang/Class;Ljava/lang/Class;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic sun.invoke.util.Wrapper.forPrimitiveType:(Ljava/lang/Class;)Lsun/invoke/util/Wrapper;
invokevirtual sun.invoke.util.Wrapper.bitWidth:()I
aload 0
invokestatic sun.invoke.util.Wrapper.forPrimitiveType:(Ljava/lang/Class;)Lsun/invoke/util/Wrapper;
invokevirtual sun.invoke.util.Wrapper.bitWidth:()I
if_icmpgt 4
1: new java.lang.IllegalArgumentException
dup
2: new java.lang.StringBuilder
dup
aload 1
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 " is not wider than: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
3: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 carrier Ljava/lang/Class<*>;
0 5 1 target Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;Ljava/lang/Class<*>;)V
MethodParameters:
Name Flags
carrier
target
private static jdk.incubator.foreign.MemoryAddress longToAddress(long);
descriptor: (J)Ljdk/incubator/foreign/MemoryAddress;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: lload 0
invokestatic jdk.incubator.foreign.MemoryAddress.ofLong:(J)Ljdk/incubator/foreign/MemoryAddress;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 value J
MethodParameters:
Name Flags
value
private static long addressToLong(jdk.incubator.foreign.MemoryAddress);
descriptor: (Ljdk/incubator/foreign/MemoryAddress;)J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokeinterface jdk.incubator.foreign.MemoryAddress.toRawLongValue:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 value Ljdk/incubator/foreign/MemoryAddress;
MethodParameters:
Name Flags
value
}
SourceFile: "MemoryHandles.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles