final class org.jruby.ext.ffi.StructLayout$PointerFieldIO implements org.jruby.ext.ffi.StructLayout$FieldIO
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: org.jruby.ext.ffi.StructLayout$PointerFieldIO
super_class: java.lang.Object
{
public static final org.jruby.ext.ffi.StructLayout$FieldIO INSTANCE;
descriptor: Lorg/jruby/ext/ffi/StructLayout$FieldIO;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new org.jruby.ext.ffi.StructLayout$PointerFieldIO
dup
invokespecial org.jruby.ext.ffi.StructLayout$PointerFieldIO.<init>:()V
putstatic org.jruby.ext.ffi.StructLayout$PointerFieldIO.INSTANCE:Lorg/jruby/ext/ffi/StructLayout$FieldIO;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/ffi/StructLayout$PointerFieldIO;
public void put(org.jruby.runtime.ThreadContext, org.jruby.ext.ffi.StructLayout$Storage, org.jruby.ext.ffi.StructLayout$Member, org.jruby.ext.ffi.AbstractMemory, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/ext/ffi/StructLayout$Storage;Lorg/jruby/ext/ffi/StructLayout$Member;Lorg/jruby/ext/ffi/AbstractMemory;Lorg/jruby/runtime/builtin/IRubyObject;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=8, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 5
instanceof org.jruby.ext.ffi.Pointer
ifeq 3
1: aload 4
invokevirtual org.jruby.ext.ffi.AbstractMemory.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
aload 3
getfield org.jruby.ext.ffi.StructLayout$Member.offset:I
i2l
aload 5
checkcast org.jruby.ext.ffi.Pointer
invokevirtual org.jruby.ext.ffi.Pointer.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
invokevirtual org.jruby.ext.ffi.MemoryIO.putMemoryIO:(JLorg/jruby/ext/ffi/MemoryIO;)V
2: goto 23
StackMap locals:
StackMap stack:
3: aload 5
instanceof org.jruby.ext.ffi.Struct
ifeq 9
4: aload 5
checkcast org.jruby.ext.ffi.Struct
invokevirtual org.jruby.ext.ffi.Struct.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
astore 7
start local 7 5: aload 7
invokevirtual org.jruby.ext.ffi.MemoryIO.isDirect:()Z
ifne 7
6: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
ldc "Struct memory not backed by a native pointer"
invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
7: StackMap locals: org.jruby.ext.ffi.StructLayout$PointerFieldIO org.jruby.runtime.ThreadContext org.jruby.ext.ffi.StructLayout$Storage org.jruby.ext.ffi.StructLayout$Member org.jruby.ext.ffi.AbstractMemory org.jruby.runtime.builtin.IRubyObject top org.jruby.ext.ffi.MemoryIO
StackMap stack:
aload 4
invokevirtual org.jruby.ext.ffi.AbstractMemory.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
aload 3
getfield org.jruby.ext.ffi.StructLayout$Member.offset:I
i2l
aload 7
invokevirtual org.jruby.ext.ffi.MemoryIO.putMemoryIO:(JLorg/jruby/ext/ffi/MemoryIO;)V
end local 7 8: goto 23
StackMap locals: org.jruby.ext.ffi.StructLayout$PointerFieldIO org.jruby.runtime.ThreadContext org.jruby.ext.ffi.StructLayout$Storage org.jruby.ext.ffi.StructLayout$Member org.jruby.ext.ffi.AbstractMemory org.jruby.runtime.builtin.IRubyObject
StackMap stack:
9: aload 5
instanceof org.jruby.RubyInteger
ifeq 12
10: aload 4
invokevirtual org.jruby.ext.ffi.AbstractMemory.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
aload 3
getfield org.jruby.ext.ffi.StructLayout$Member.offset:I
i2l
aload 5
invokestatic org.jruby.ext.ffi.Util.int64Value:(Lorg/jruby/runtime/builtin/IRubyObject;)J
invokevirtual org.jruby.ext.ffi.MemoryIO.putAddress:(JJ)V
11: goto 23
StackMap locals:
StackMap stack:
12: aload 5
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifeq 15
13: aload 4
invokevirtual org.jruby.ext.ffi.AbstractMemory.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
aload 3
getfield org.jruby.ext.ffi.StructLayout$Member.offset:I
i2l
lconst_0
invokevirtual org.jruby.ext.ffi.MemoryIO.putAddress:(JJ)V
14: goto 23
StackMap locals:
StackMap stack:
15: aload 5
invokeinterface org.jruby.runtime.builtin.IRubyObject.getMetaClass:()Lorg/jruby/RubyClass;
ldc "to_ptr"
invokevirtual org.jruby.RubyClass.searchMethod:(Ljava/lang/String;)Lorg/jruby/internal/runtime/methods/DynamicMethod;
dup
astore 6
start local 6 16: invokevirtual org.jruby.internal.runtime.methods.DynamicMethod.isUndefined:()Z
ifne 22
17: aload 6
aload 1
aload 5
aload 5
invokeinterface org.jruby.runtime.builtin.IRubyObject.getMetaClass:()Lorg/jruby/RubyClass;
ldc "to_ptr"
invokevirtual org.jruby.internal.runtime.methods.DynamicMethod.call:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyModule;Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 7
start local 7 18: aload 7
instanceof org.jruby.ext.ffi.Pointer
ifeq 21
19: aload 4
invokevirtual org.jruby.ext.ffi.AbstractMemory.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
aload 3
getfield org.jruby.ext.ffi.StructLayout$Member.offset:I
i2l
aload 7
checkcast org.jruby.ext.ffi.Pointer
invokevirtual org.jruby.ext.ffi.Pointer.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
invokevirtual org.jruby.ext.ffi.MemoryIO.putMemoryIO:(JLorg/jruby/ext/ffi/MemoryIO;)V
20: goto 23
21: StackMap locals: org.jruby.internal.runtime.methods.DynamicMethod org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
ldc "Invalid pointer value"
invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 7 22: StackMap locals:
StackMap stack:
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
ldc "Invalid pointer value"
invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 6 23: StackMap locals:
StackMap stack:
aload 2
aload 3
aload 5
invokeinterface org.jruby.ext.ffi.StructLayout$Storage.putReference:(Lorg/jruby/ext/ffi/StructLayout$Member;Ljava/lang/Object;)V
24: return
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 25 0 this Lorg/jruby/ext/ffi/StructLayout$PointerFieldIO;
0 25 1 context Lorg/jruby/runtime/ThreadContext;
0 25 2 cache Lorg/jruby/ext/ffi/StructLayout$Storage;
0 25 3 m Lorg/jruby/ext/ffi/StructLayout$Member;
0 25 4 ptr Lorg/jruby/ext/ffi/AbstractMemory;
0 25 5 value Lorg/jruby/runtime/builtin/IRubyObject;
16 23 6 conversionMethod Lorg/jruby/internal/runtime/methods/DynamicMethod;
5 8 7 mem Lorg/jruby/ext/ffi/MemoryIO;
18 22 7 addr Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
context
cache
m
ptr
value
public org.jruby.runtime.builtin.IRubyObject get(org.jruby.runtime.ThreadContext, org.jruby.ext.ffi.StructLayout$Storage, org.jruby.ext.ffi.StructLayout$Member, org.jruby.ext.ffi.AbstractMemory);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/ext/ffi/StructLayout$Storage;Lorg/jruby/ext/ffi/StructLayout$Member;Lorg/jruby/ext/ffi/AbstractMemory;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=8, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 4
invokevirtual org.jruby.ext.ffi.AbstractMemory.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
aload 3
aload 4
invokevirtual org.jruby.ext.ffi.StructLayout$Member.getOffset:(Lorg/jruby/runtime/builtin/IRubyObject;)J
invokevirtual org.jruby.ext.ffi.MemoryIO.getMemoryIO:(J)Lorg/jruby/ext/ffi/MemoryIO;
astore 5
start local 5 1: aload 2
aload 3
invokeinterface org.jruby.ext.ffi.StructLayout$Storage.getCachedValue:(Lorg/jruby/ext/ffi/StructLayout$Member;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 6
start local 6 2: aload 6
instanceof org.jruby.ext.ffi.Pointer
ifeq 6
3: aload 6
checkcast org.jruby.ext.ffi.Pointer
invokevirtual org.jruby.ext.ffi.Pointer.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
astore 7
start local 7 4: aload 5
aload 7
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 6
5: aload 6
areturn
end local 7 6: StackMap locals: org.jruby.ext.ffi.MemoryIO org.jruby.runtime.builtin.IRubyObject
StackMap stack:
new org.jruby.ext.ffi.Pointer
dup
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 5
invokespecial org.jruby.ext.ffi.Pointer.<init>:(Lorg/jruby/Ruby;Lorg/jruby/ext/ffi/MemoryIO;)V
astore 7
start local 7 7: aload 2
aload 3
aload 7
invokeinterface org.jruby.ext.ffi.StructLayout$Storage.putCachedValue:(Lorg/jruby/ext/ffi/StructLayout$Member;Lorg/jruby/runtime/builtin/IRubyObject;)V
8: aload 7
areturn
end local 7 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 9 0 this Lorg/jruby/ext/ffi/StructLayout$PointerFieldIO;
0 9 1 context Lorg/jruby/runtime/ThreadContext;
0 9 2 cache Lorg/jruby/ext/ffi/StructLayout$Storage;
0 9 3 m Lorg/jruby/ext/ffi/StructLayout$Member;
0 9 4 ptr Lorg/jruby/ext/ffi/AbstractMemory;
1 9 5 memory Lorg/jruby/ext/ffi/MemoryIO;
2 9 6 old Lorg/jruby/runtime/builtin/IRubyObject;
4 6 7 oldMemory Lorg/jruby/ext/ffi/MemoryIO;
7 9 7 retval Lorg/jruby/ext/ffi/Pointer;
MethodParameters:
Name Flags
context
cache
m
ptr
public final boolean isCacheable();
descriptor: ()Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/ffi/StructLayout$PointerFieldIO;
public final boolean isValueReferenceNeeded();
descriptor: ()Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/ffi/StructLayout$PointerFieldIO;
}
SourceFile: "StructLayout.java"
NestHost: org.jruby.ext.ffi.StructLayout
InnerClasses:
abstract FieldIO = org.jruby.ext.ffi.StructLayout$FieldIO of org.jruby.ext.ffi.StructLayout
public final Member = org.jruby.ext.ffi.StructLayout$Member of org.jruby.ext.ffi.StructLayout
final PointerFieldIO = org.jruby.ext.ffi.StructLayout$PointerFieldIO of org.jruby.ext.ffi.StructLayout
public abstract Storage = org.jruby.ext.ffi.StructLayout$Storage of org.jruby.ext.ffi.StructLayout