public class org.jruby.ext.ffi.Pointer extends org.jruby.ext.ffi.AbstractMemory
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.ext.ffi.Pointer
super_class: org.jruby.ext.ffi.AbstractMemory
{
public static org.jruby.RubyClass createPointerClass(org.jruby.Ruby, org.jruby.RubyModule);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyModule;)Lorg/jruby/RubyClass;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=4, args_size=2
start local 0 start local 1 0: aload 1
ldc "Pointer"
1: aload 1
ldc "AbstractMemory"
invokevirtual org.jruby.RubyModule.getClass:(Ljava/lang/String;)Lorg/jruby/RubyClass;
2: getstatic org.jruby.util.cli.Options.REIFY_FFI:Lcom/headius/options/Option;
invokevirtual com.headius.options.Option.load:()Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 3
new org.jruby.ext.ffi.ReifyingAllocator
dup
ldc Lorg/jruby/ext/ffi/Pointer;
invokespecial org.jruby.ext.ffi.ReifyingAllocator.<init>:(Ljava/lang/Class;)V
goto 4
StackMap locals: org.jruby.Ruby org.jruby.RubyModule
StackMap stack: org.jruby.RubyModule java.lang.String org.jruby.RubyClass
3: getstatic org.jruby.ext.ffi.Pointer$PointerAllocator.INSTANCE:Lorg/jruby/runtime/ObjectAllocator;
4: StackMap locals: org.jruby.Ruby org.jruby.RubyModule
StackMap stack: org.jruby.RubyModule java.lang.String org.jruby.RubyClass org.jruby.runtime.ObjectAllocator
invokevirtual org.jruby.RubyModule.defineClassUnder:(Ljava/lang/String;Lorg/jruby/RubyClass;Lorg/jruby/runtime/ObjectAllocator;)Lorg/jruby/RubyClass;
astore 2
start local 2 5: aload 2
ldc Lorg/jruby/ext/ffi/Pointer;
invokevirtual org.jruby.RubyClass.defineAnnotatedMethods:(Ljava/lang/Class;)V
6: aload 2
ldc Lorg/jruby/ext/ffi/Pointer;
invokevirtual org.jruby.RubyClass.defineAnnotatedConstants:(Ljava/lang/Class;)V
7: aload 2
ldc Lorg/jruby/ext/ffi/Pointer;
invokevirtual org.jruby.RubyClass.setReifiedClass:(Ljava/lang/Class;)V
8: aload 2
new org.jruby.ext.ffi.Pointer$1
dup
invokespecial org.jruby.ext.ffi.Pointer$1.<init>:()V
putfield org.jruby.RubyClass.kindOf:Lorg/jruby/RubyModule$KindOf;
9: aload 1
ldc "NullPointerError"
aload 0
invokevirtual org.jruby.Ruby.getRuntimeError:()Lorg/jruby/RubyClass;
10: aload 0
invokevirtual org.jruby.Ruby.getRuntimeError:()Lorg/jruby/RubyClass;
invokevirtual org.jruby.RubyClass.getAllocator:()Lorg/jruby/runtime/ObjectAllocator;
11: invokevirtual org.jruby.RubyModule.defineClassUnder:(Ljava/lang/String;Lorg/jruby/RubyClass;Lorg/jruby/runtime/ObjectAllocator;)Lorg/jruby/RubyClass;
pop
12: new org.jruby.ext.ffi.Pointer
dup
aload 0
aload 2
new org.jruby.ext.ffi.NullMemoryIO
dup
aload 0
invokespecial org.jruby.ext.ffi.NullMemoryIO.<init>:(Lorg/jruby/Ruby;)V
invokespecial org.jruby.ext.ffi.Pointer.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Lorg/jruby/ext/ffi/MemoryIO;)V
astore 3
start local 3 13: aload 2
ldc "NULL"
aload 3
invokevirtual org.jruby.RubyClass.setConstant:(Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
14: aload 0
invokevirtual org.jruby.Ruby.getNilClass:()Lorg/jruby/RubyClass;
ldc "to_ptr"
new org.jruby.ext.ffi.Pointer$NilToPointerMethod
dup
aload 0
invokevirtual org.jruby.Ruby.getNilClass:()Lorg/jruby/RubyClass;
aload 3
ldc "to_ptr"
invokespecial org.jruby.ext.ffi.Pointer$NilToPointerMethod.<init>:(Lorg/jruby/RubyModule;Lorg/jruby/ext/ffi/Pointer;Ljava/lang/String;)V
invokevirtual org.jruby.RubyClass.addMethod:(Ljava/lang/String;Lorg/jruby/internal/runtime/methods/DynamicMethod;)V
15: aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 runtime Lorg/jruby/Ruby;
0 16 1 module Lorg/jruby/RubyModule;
5 16 2 pointerClass Lorg/jruby/RubyClass;
13 16 3 nullPointer Lorg/jruby/ext/ffi/Pointer;
MethodParameters:
Name Flags
runtime
module
public static final org.jruby.ext.ffi.Pointer getNull(org.jruby.Ruby);
descriptor: (Lorg/jruby/Ruby;)Lorg/jruby/ext/ffi/Pointer;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.Ruby.getFFI:()Lorg/jruby/ext/ffi/FFI;
getfield org.jruby.ext.ffi.FFI.nullPointer:Lorg/jruby/ext/ffi/Pointer;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 runtime Lorg/jruby/Ruby;
MethodParameters:
Name Flags
runtime
public void <init>(org.jruby.Ruby, org.jruby.RubyClass);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
aload 1
invokevirtual org.jruby.Ruby.getFFI:()Lorg/jruby/ext/ffi/FFI;
invokevirtual org.jruby.ext.ffi.FFI.getNullMemoryIO:()Lorg/jruby/ext/ffi/NullMemoryIO;
lconst_0
invokespecial org.jruby.ext.ffi.AbstractMemory.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Lorg/jruby/ext/ffi/MemoryIO;J)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ext/ffi/Pointer;
0 2 1 runtime Lorg/jruby/Ruby;
0 2 2 klazz Lorg/jruby/RubyClass;
MethodParameters:
Name Flags
runtime
klazz
public void <init>(org.jruby.Ruby, org.jruby.ext.ffi.MemoryIO);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/ext/ffi/MemoryIO;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 1
invokestatic org.jruby.ext.ffi.Pointer.getPointerClass:(Lorg/jruby/Ruby;)Lorg/jruby/RubyClass;
aload 2
invokespecial org.jruby.ext.ffi.Pointer.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Lorg/jruby/ext/ffi/MemoryIO;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ext/ffi/Pointer;
0 2 1 runtime Lorg/jruby/Ruby;
0 2 2 io Lorg/jruby/ext/ffi/MemoryIO;
MethodParameters:
Name Flags
runtime
io
public void <init>(org.jruby.Ruby, org.jruby.ext.ffi.MemoryIO, long, int);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/ext/ffi/MemoryIO;JI)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=6, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 5 0: aload 0
aload 1
aload 1
invokestatic org.jruby.ext.ffi.Pointer.getPointerClass:(Lorg/jruby/Ruby;)Lorg/jruby/RubyClass;
aload 2
lload 3
iload 5
invokespecial org.jruby.ext.ffi.Pointer.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Lorg/jruby/ext/ffi/MemoryIO;JI)V
1: return
end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ext/ffi/Pointer;
0 2 1 runtime Lorg/jruby/Ruby;
0 2 2 io Lorg/jruby/ext/ffi/MemoryIO;
0 2 3 size J
0 2 5 typeSize I
MethodParameters:
Name Flags
runtime
io
size
typeSize
protected void <init>(org.jruby.Ruby, org.jruby.RubyClass, org.jruby.ext.ffi.MemoryIO);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Lorg/jruby/ext/ffi/MemoryIO;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
aload 3
ldc 9223372036854775807
invokespecial org.jruby.ext.ffi.AbstractMemory.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Lorg/jruby/ext/ffi/MemoryIO;J)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ext/ffi/Pointer;
0 2 1 runtime Lorg/jruby/Ruby;
0 2 2 klass Lorg/jruby/RubyClass;
0 2 3 io Lorg/jruby/ext/ffi/MemoryIO;
MethodParameters:
Name Flags
runtime
klass
io
protected void <init>(org.jruby.Ruby, org.jruby.RubyClass, org.jruby.ext.ffi.MemoryIO, long);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Lorg/jruby/ext/ffi/MemoryIO;J)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=6, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
aload 2
aload 3
lload 4
invokespecial org.jruby.ext.ffi.AbstractMemory.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Lorg/jruby/ext/ffi/MemoryIO;J)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 Lorg/jruby/ext/ffi/Pointer;
0 2 1 runtime Lorg/jruby/Ruby;
0 2 2 klass Lorg/jruby/RubyClass;
0 2 3 io Lorg/jruby/ext/ffi/MemoryIO;
0 2 4 size J
MethodParameters:
Name Flags
runtime
klass
io
size
protected void <init>(org.jruby.Ruby, org.jruby.RubyClass, org.jruby.ext.ffi.MemoryIO, long, int);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Lorg/jruby/ext/ffi/MemoryIO;JI)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=7, locals=7, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 6 0: aload 0
aload 1
aload 2
aload 3
lload 4
iload 6
invokespecial org.jruby.ext.ffi.AbstractMemory.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Lorg/jruby/ext/ffi/MemoryIO;JI)V
1: return
end local 6 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 Lorg/jruby/ext/ffi/Pointer;
0 2 1 runtime Lorg/jruby/Ruby;
0 2 2 klass Lorg/jruby/RubyClass;
0 2 3 io Lorg/jruby/ext/ffi/MemoryIO;
0 2 4 size J
0 2 6 typeSize I
MethodParameters:
Name Flags
runtime
klass
io
size
typeSize
public static final org.jruby.RubyClass getPointerClass(org.jruby.Ruby);
descriptor: (Lorg/jruby/Ruby;)Lorg/jruby/RubyClass;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.Ruby.getFFI:()Lorg/jruby/ext/ffi/FFI;
getfield org.jruby.ext.ffi.FFI.pointerClass:Lorg/jruby/RubyClass;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 runtime Lorg/jruby/Ruby;
MethodParameters:
Name Flags
runtime
public final org.jruby.ext.ffi.AbstractMemory order(org.jruby.Ruby, java.nio.ByteOrder);
descriptor: (Lorg/jruby/Ruby;Ljava/nio/ByteOrder;)Lorg/jruby/ext/ffi/AbstractMemory;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=7, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new org.jruby.ext.ffi.Pointer
dup
aload 1
1: aload 2
aload 0
invokevirtual org.jruby.ext.ffi.Pointer.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
invokevirtual org.jruby.ext.ffi.MemoryIO.order:()Ljava/nio/ByteOrder;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 2
aload 0
invokevirtual org.jruby.ext.ffi.Pointer.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
goto 3
StackMap locals: org.jruby.ext.ffi.Pointer org.jruby.Ruby java.nio.ByteOrder
StackMap stack: new 0 new 0 org.jruby.Ruby
2: new org.jruby.ext.ffi.SwappedMemoryIO
dup
aload 1
aload 0
invokevirtual org.jruby.ext.ffi.Pointer.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
invokespecial org.jruby.ext.ffi.SwappedMemoryIO.<init>:(Lorg/jruby/Ruby;Lorg/jruby/ext/ffi/MemoryIO;)V
3: StackMap locals: org.jruby.ext.ffi.Pointer org.jruby.Ruby java.nio.ByteOrder
StackMap stack: new 0 new 0 org.jruby.Ruby org.jruby.ext.ffi.MemoryIO
aload 0
getfield org.jruby.ext.ffi.Pointer.size:J
aload 0
getfield org.jruby.ext.ffi.Pointer.typeSize:I
4: invokespecial org.jruby.ext.ffi.Pointer.<init>:(Lorg/jruby/Ruby;Lorg/jruby/ext/ffi/MemoryIO;JI)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/ext/ffi/Pointer;
0 5 1 runtime Lorg/jruby/Ruby;
0 5 2 order Ljava/nio/ByteOrder;
MethodParameters:
Name Flags
runtime
order
public static org.jruby.runtime.builtin.IRubyObject size(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.runtime.ThreadContext.getRuntime:()Lorg/jruby/Ruby;
invokestatic org.jruby.ext.ffi.Factory.getInstance:()Lorg/jruby/ext/ffi/Factory;
getstatic org.jruby.ext.ffi.NativeType.POINTER:Lorg/jruby/ext/ffi/NativeType;
invokevirtual org.jruby.ext.ffi.Factory.sizeOf:(Lorg/jruby/ext/ffi/NativeType;)I
i2l
invokestatic org.jruby.RubyFixnum.newFixnum:(Lorg/jruby/Ruby;J)Lorg/jruby/RubyFixnum;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
0 1 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"size"}, meta = true, visibility = org.jruby.runtime.Visibility.PUBLIC:Lorg/jruby/runtime/Visibility;)
MethodParameters:
Name Flags
context
recv
public org.jruby.runtime.builtin.IRubyObject initialize(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 2
instanceof org.jruby.ext.ffi.Pointer
ifeq 2
1: aload 2
checkcast org.jruby.ext.ffi.Pointer
invokevirtual org.jruby.ext.ffi.Pointer.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
goto 3
2: StackMap locals:
StackMap stack: org.jruby.ext.ffi.Pointer
invokestatic org.jruby.ext.ffi.Factory.getInstance:()Lorg/jruby/ext/ffi/Factory;
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 2
invokestatic org.jruby.RubyFixnum.num2long:(Lorg/jruby/runtime/builtin/IRubyObject;)J
invokevirtual org.jruby.ext.ffi.Factory.wrapDirectMemory:(Lorg/jruby/Ruby;J)Lorg/jruby/ext/ffi/MemoryIO;
3: StackMap locals: org.jruby.ext.ffi.Pointer org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject
StackMap stack: org.jruby.ext.ffi.Pointer org.jruby.ext.ffi.MemoryIO
invokevirtual org.jruby.ext.ffi.Pointer.setMemoryIO:(Lorg/jruby/ext/ffi/MemoryIO;)Lorg/jruby/ext/ffi/MemoryIO;
pop
4: aload 0
ldc 9223372036854775807
putfield org.jruby.ext.ffi.Pointer.size:J
5: aload 0
iconst_1
putfield org.jruby.ext.ffi.Pointer.typeSize:I
6: aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/jruby/ext/ffi/Pointer;
0 7 1 context Lorg/jruby/runtime/ThreadContext;
0 7 2 address Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"initialize"}, visibility = org.jruby.runtime.Visibility.PRIVATE:Lorg/jruby/runtime/Visibility;)
MethodParameters:
Name Flags
context
address
public org.jruby.runtime.builtin.IRubyObject initialize(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 3
instanceof org.jruby.ext.ffi.Pointer
ifeq 2
1: aload 3
checkcast org.jruby.ext.ffi.Pointer
invokevirtual org.jruby.ext.ffi.Pointer.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
goto 3
2: StackMap locals:
StackMap stack: org.jruby.ext.ffi.Pointer
invokestatic org.jruby.ext.ffi.Factory.getInstance:()Lorg/jruby/ext/ffi/Factory;
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 3
invokestatic org.jruby.RubyFixnum.num2long:(Lorg/jruby/runtime/builtin/IRubyObject;)J
invokevirtual org.jruby.ext.ffi.Factory.wrapDirectMemory:(Lorg/jruby/Ruby;J)Lorg/jruby/ext/ffi/MemoryIO;
3: StackMap locals: org.jruby.ext.ffi.Pointer org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject
StackMap stack: org.jruby.ext.ffi.Pointer org.jruby.ext.ffi.MemoryIO
invokevirtual org.jruby.ext.ffi.Pointer.setMemoryIO:(Lorg/jruby/ext/ffi/MemoryIO;)Lorg/jruby/ext/ffi/MemoryIO;
pop
4: aload 0
ldc 9223372036854775807
putfield org.jruby.ext.ffi.Pointer.size:J
5: aload 0
aload 1
aload 2
invokestatic org.jruby.ext.ffi.Pointer.calculateTypeSize:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)I
putfield org.jruby.ext.ffi.Pointer.typeSize:I
6: aload 0
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/jruby/ext/ffi/Pointer;
0 7 1 context Lorg/jruby/runtime/ThreadContext;
0 7 2 type Lorg/jruby/runtime/builtin/IRubyObject;
0 7 3 address Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"initialize"}, visibility = org.jruby.runtime.Visibility.PRIVATE:Lorg/jruby/runtime/Visibility;)
MethodParameters:
Name Flags
context
type
address
public org.jruby.runtime.builtin.IRubyObject initialize_copy(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 2
if_acmpne 2
1: aload 0
areturn
2: StackMap locals:
StackMap stack:
aload 2
checkcast org.jruby.ext.ffi.Pointer
astore 3
start local 3 3: aload 0
aload 3
getfield org.jruby.ext.ffi.Pointer.typeSize:I
putfield org.jruby.ext.ffi.Pointer.typeSize:I
4: aload 0
aload 3
getfield org.jruby.ext.ffi.Pointer.size:J
putfield org.jruby.ext.ffi.Pointer.size:J
5: aload 0
aload 3
invokevirtual org.jruby.ext.ffi.Pointer.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
invokevirtual org.jruby.ext.ffi.MemoryIO.dup:()Lorg/jruby/ext/ffi/MemoryIO;
invokevirtual org.jruby.ext.ffi.Pointer.setMemoryIO:(Lorg/jruby/ext/ffi/MemoryIO;)Lorg/jruby/ext/ffi/MemoryIO;
pop
6: aload 0
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/jruby/ext/ffi/Pointer;
0 7 1 context Lorg/jruby/runtime/ThreadContext;
0 7 2 other Lorg/jruby/runtime/builtin/IRubyObject;
3 7 3 orig Lorg/jruby/ext/ffi/Pointer;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(required = 1, visibility = org.jruby.runtime.Visibility.PRIVATE:Lorg/jruby/runtime/Visibility;)
MethodParameters:
Name Flags
context
other
public org.jruby.runtime.builtin.IRubyObject null_p(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
invokevirtual org.jruby.ext.ffi.Pointer.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
invokevirtual org.jruby.ext.ffi.MemoryIO.isNull:()Z
invokevirtual org.jruby.Ruby.newBoolean:(Z)Lorg/jruby/RubyBoolean;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/ffi/Pointer;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"null?"})
MethodParameters:
Name Flags
context
public org.jruby.runtime.builtin.IRubyObject to_s(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject[]);
descriptor: (Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.jruby.ext.ffi.Pointer.size:J
ldc 9223372036854775807
lcmp
ifeq 2
1: ldc "#<%s address=0x%x size=%s>"
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 0
invokevirtual org.jruby.ext.ffi.Pointer.getMetaClass:()Lorg/jruby/RubyClass;
invokevirtual org.jruby.RubyClass.getName:()Ljava/lang/String;
aastore
dup
iconst_1
aload 0
invokevirtual org.jruby.ext.ffi.Pointer.getAddress:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
dup
iconst_2
aload 0
getfield org.jruby.ext.ffi.Pointer.size:J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
goto 3
2: StackMap locals:
StackMap stack:
ldc "#<%s address=0x%x>"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 0
invokevirtual org.jruby.ext.ffi.Pointer.getMetaClass:()Lorg/jruby/RubyClass;
invokevirtual org.jruby.RubyClass.getName:()Ljava/lang/String;
aastore
dup
iconst_1
aload 0
invokevirtual org.jruby.ext.ffi.Pointer.getAddress:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
3: StackMap locals:
StackMap stack: java.lang.String
astore 3
start local 3 4: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 3
invokestatic org.jruby.RubyString.newString:(Lorg/jruby/Ruby;Ljava/lang/String;)Lorg/jruby/RubyString;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/ext/ffi/Pointer;
0 5 1 context Lorg/jruby/runtime/ThreadContext;
0 5 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
4 5 3 s Ljava/lang/String;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"to_s", "inspect"}, optional = 1)
MethodParameters:
Name Flags
context
args
public org.jruby.runtime.builtin.IRubyObject address(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
invokevirtual org.jruby.ext.ffi.Pointer.getAddress:()J
invokevirtual org.jruby.Ruby.newFixnum:(J)Lorg/jruby/RubyFixnum;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/ffi/Pointer;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"address", "to_i"})
MethodParameters:
Name Flags
context
public final long getAddress();
descriptor: ()J
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.ext.ffi.Pointer.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
invokevirtual org.jruby.ext.ffi.MemoryIO.address:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/ffi/Pointer;
public org.jruby.runtime.builtin.IRubyObject op_equal(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
aload 2
if_acmpeq 4
1: aload 0
invokevirtual org.jruby.ext.ffi.Pointer.getAddress:()J
lconst_0
lcmp
ifne 2
aload 2
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifne 4
2: StackMap locals:
StackMap stack: org.jruby.Ruby
aload 2
instanceof org.jruby.ext.ffi.Pointer
ifeq 3
aload 2
checkcast org.jruby.ext.ffi.Pointer
invokevirtual org.jruby.ext.ffi.Pointer.getAddress:()J
aload 0
invokevirtual org.jruby.ext.ffi.Pointer.getAddress:()J
lcmp
ifeq 4
StackMap locals:
StackMap stack: org.jruby.Ruby
3: iconst_0
goto 5
StackMap locals:
StackMap stack: org.jruby.Ruby
4: iconst_1
5: StackMap locals: org.jruby.ext.ffi.Pointer org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject
StackMap stack: org.jruby.Ruby int
invokevirtual org.jruby.Ruby.newBoolean:(Z)Lorg/jruby/RubyBoolean;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jruby/ext/ffi/Pointer;
0 6 1 context Lorg/jruby/runtime/ThreadContext;
0 6 2 obj Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"=="}, required = 1)
MethodParameters:
Name Flags
context
obj
protected org.jruby.ext.ffi.AbstractMemory slice(org.jruby.Ruby, long);
descriptor: (Lorg/jruby/Ruby;J)Lorg/jruby/ext/ffi/AbstractMemory;
flags: (0x0004) ACC_PROTECTED
Code:
stack=9, locals=4, args_size=3
start local 0 start local 1 start local 2 0: new org.jruby.ext.ffi.Pointer
dup
aload 1
aload 1
invokestatic org.jruby.ext.ffi.Pointer.getPointerClass:(Lorg/jruby/Ruby;)Lorg/jruby/RubyClass;
1: aload 0
invokevirtual org.jruby.ext.ffi.Pointer.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
lload 2
invokevirtual org.jruby.ext.ffi.MemoryIO.slice:(J)Lorg/jruby/ext/ffi/MemoryIO;
2: aload 0
getfield org.jruby.ext.ffi.Pointer.size:J
ldc 9223372036854775807
lcmp
ifne 3
ldc 9223372036854775807
goto 4
StackMap locals: org.jruby.ext.ffi.Pointer org.jruby.Ruby long
StackMap stack: new 0 new 0 org.jruby.Ruby org.jruby.RubyClass org.jruby.ext.ffi.MemoryIO
3: aload 0
getfield org.jruby.ext.ffi.Pointer.size:J
lload 2
lsub
StackMap locals: org.jruby.ext.ffi.Pointer org.jruby.Ruby long
StackMap stack: new 0 new 0 org.jruby.Ruby org.jruby.RubyClass org.jruby.ext.ffi.MemoryIO long
4: aload 0
getfield org.jruby.ext.ffi.Pointer.typeSize:I
5: invokespecial org.jruby.ext.ffi.Pointer.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Lorg/jruby/ext/ffi/MemoryIO;JI)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jruby/ext/ffi/Pointer;
0 6 1 runtime Lorg/jruby/Ruby;
0 6 2 offset J
MethodParameters:
Name Flags
runtime
offset
protected org.jruby.ext.ffi.AbstractMemory slice(org.jruby.Ruby, long, long);
descriptor: (Lorg/jruby/Ruby;JJ)Lorg/jruby/ext/ffi/AbstractMemory;
flags: (0x0004) ACC_PROTECTED
Code:
stack=9, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 4 0: new org.jruby.ext.ffi.Pointer
dup
aload 1
aload 1
invokestatic org.jruby.ext.ffi.Pointer.getPointerClass:(Lorg/jruby/Ruby;)Lorg/jruby/RubyClass;
1: aload 0
invokevirtual org.jruby.ext.ffi.Pointer.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
lload 2
lload 4
invokevirtual org.jruby.ext.ffi.MemoryIO.slice:(JJ)Lorg/jruby/ext/ffi/MemoryIO;
lload 4
aload 0
getfield org.jruby.ext.ffi.Pointer.typeSize:I
2: invokespecial org.jruby.ext.ffi.Pointer.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Lorg/jruby/ext/ffi/MemoryIO;JI)V
areturn
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ext/ffi/Pointer;
0 3 1 runtime Lorg/jruby/Ruby;
0 3 2 offset J
0 3 4 size J
MethodParameters:
Name Flags
runtime
offset
size
protected org.jruby.ext.ffi.Pointer getPointer(org.jruby.Ruby, long);
descriptor: (Lorg/jruby/Ruby;J)Lorg/jruby/ext/ffi/Pointer;
flags: (0x0004) ACC_PROTECTED
Code:
stack=7, locals=4, args_size=3
start local 0 start local 1 start local 2 0: new org.jruby.ext.ffi.Pointer
dup
aload 1
aload 1
invokestatic org.jruby.ext.ffi.Pointer.getPointerClass:(Lorg/jruby/Ruby;)Lorg/jruby/RubyClass;
aload 0
invokevirtual org.jruby.ext.ffi.Pointer.getMemoryIO:()Lorg/jruby/ext/ffi/MemoryIO;
lload 2
invokevirtual org.jruby.ext.ffi.MemoryIO.getMemoryIO:(J)Lorg/jruby/ext/ffi/MemoryIO;
ldc 9223372036854775807
invokespecial org.jruby.ext.ffi.Pointer.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Lorg/jruby/ext/ffi/MemoryIO;J)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/ffi/Pointer;
0 1 1 runtime Lorg/jruby/Ruby;
0 1 2 offset J
MethodParameters:
Name Flags
runtime
offset
}
SourceFile: "Pointer.java"
NestMembers:
org.jruby.ext.ffi.Pointer$1 org.jruby.ext.ffi.Pointer$NilToPointerMethod org.jruby.ext.ffi.Pointer$PointerAllocator
InnerClasses:
org.jruby.ext.ffi.Pointer$1
private final NilToPointerMethod = org.jruby.ext.ffi.Pointer$NilToPointerMethod of org.jruby.ext.ffi.Pointer
private final PointerAllocator = org.jruby.ext.ffi.Pointer$PointerAllocator of org.jruby.ext.ffi.Pointer
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyClass(name = {"FFI::Pointer"}, parent = "AbstractMemory")