public final class org.jruby.ext.ffi.Util
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.jruby.ext.ffi.Util
super_class: java.lang.Object
{
private static final java.math.BigInteger UINT64_BASE;
descriptor: Ljava/math/BigInteger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc 9223372036854775807
invokestatic java.math.BigInteger.valueOf:(J)Ljava/math/BigInteger;
getstatic java.math.BigInteger.ONE:Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.add:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
putstatic org.jruby.ext.ffi.Util.UINT64_BASE:Ljava/math/BigInteger;
return
LocalVariableTable:
Start End Slot Name Signature
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
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/ffi/Util;
public static final byte int8Value(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)B
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic org.jruby.ext.ffi.Util.longValue:(Lorg/jruby/runtime/builtin/IRubyObject;)J
l2i
i2b
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 parameter Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
parameter
public static final short uint8Value(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)S
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic org.jruby.ext.ffi.Util.longValue:(Lorg/jruby/runtime/builtin/IRubyObject;)J
l2i
i2s
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 parameter Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
parameter
public static final short int16Value(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)S
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic org.jruby.ext.ffi.Util.longValue:(Lorg/jruby/runtime/builtin/IRubyObject;)J
l2i
i2s
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 parameter Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
parameter
public static final int uint16Value(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic org.jruby.ext.ffi.Util.longValue:(Lorg/jruby/runtime/builtin/IRubyObject;)J
l2i
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 parameter Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
parameter
public static final int int32Value(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic org.jruby.ext.ffi.Util.longValue:(Lorg/jruby/runtime/builtin/IRubyObject;)J
l2i
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 parameter Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
parameter
public static final long uint32Value(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)J
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic org.jruby.ext.ffi.Util.longValue:(Lorg/jruby/runtime/builtin/IRubyObject;)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 parameter Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
parameter
public static final long int64Value(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)J
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic org.jruby.ext.ffi.Util.longValue:(Lorg/jruby/runtime/builtin/IRubyObject;)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 parameter Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
parameter
public static final long uint64Value(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)J
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
instanceof org.jruby.RubyBignum
ifeq 2
1: aload 0
checkcast org.jruby.RubyBignum
invokevirtual org.jruby.RubyBignum.getValue:()Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.longValue:()J
goto 3
2: StackMap locals:
StackMap stack:
aload 0
invokestatic org.jruby.ext.ffi.Util.longValue:(Lorg/jruby/runtime/builtin/IRubyObject;)J
3: StackMap locals:
StackMap stack: long
lstore 1
start local 1 4: lload 1
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 parameter Lorg/jruby/runtime/builtin/IRubyObject;
4 5 1 value J
MethodParameters:
Name Flags
parameter
public static final float floatValue(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)F
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic org.jruby.RubyNumeric.num2dbl:(Lorg/jruby/runtime/builtin/IRubyObject;)D
d2f
freturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 parameter Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
parameter
public static final double doubleValue(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)D
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic org.jruby.RubyNumeric.num2dbl:(Lorg/jruby/runtime/builtin/IRubyObject;)D
dreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 parameter Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
parameter
public static final long longValue(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)J
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic org.jruby.RubyNumeric.num2long:(Lorg/jruby/runtime/builtin/IRubyObject;)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 parameter Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
parameter
public static int intValue(org.jruby.runtime.builtin.IRubyObject, org.jruby.RubyHash);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyHash;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
instanceof org.jruby.RubyInteger
ifeq 2
1: aload 0
checkcast org.jruby.RubyInteger
invokevirtual org.jruby.RubyInteger.getLongValue:()J
l2i
ireturn
2: StackMap locals:
StackMap stack:
aload 0
instanceof org.jruby.RubySymbol
ifeq 7
3: aload 1
aload 0
invokevirtual org.jruby.RubyHash.fastARef:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 2
start local 2 4: aload 2
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifeq 6
5: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
new java.lang.StringBuilder
dup
ldc "invalid enum value, "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.inspect:()Lorg/jruby/runtime/builtin/IRubyObject;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
6: StackMap locals: org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 2
invokestatic org.jruby.ext.ffi.Util.longValue:(Lorg/jruby/runtime/builtin/IRubyObject;)J
l2i
ireturn
end local 2 7: StackMap locals:
StackMap stack:
aload 0
invokestatic org.jruby.ext.ffi.Util.longValue:(Lorg/jruby/runtime/builtin/IRubyObject;)J
l2i
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 obj Lorg/jruby/runtime/builtin/IRubyObject;
0 8 1 enums Lorg/jruby/RubyHash;
4 7 2 value Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
obj
enums
public static final org.jruby.runtime.builtin.IRubyObject newSigned8(org.jruby.Ruby, byte);
descriptor: (Lorg/jruby/Ruby;B)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 runtime Lorg/jruby/Ruby;
0 1 1 value B
MethodParameters:
Name Flags
runtime
value
public static final org.jruby.runtime.builtin.IRubyObject newUnsigned8(org.jruby.Ruby, byte);
descriptor: (Lorg/jruby/Ruby;B)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
ifge 1
iload 1
i2l
ldc 127
land
ldc 128
ladd
goto 2
StackMap locals:
StackMap stack: org.jruby.Ruby
1: iload 1
i2l
StackMap locals: org.jruby.Ruby int
StackMap stack: org.jruby.Ruby long
2: invokevirtual org.jruby.Ruby.newFixnum:(J)Lorg/jruby/RubyFixnum;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 runtime Lorg/jruby/Ruby;
0 3 1 value B
MethodParameters:
Name Flags
runtime
value
public static final org.jruby.runtime.builtin.IRubyObject newSigned16(org.jruby.Ruby, short);
descriptor: (Lorg/jruby/Ruby;S)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 runtime Lorg/jruby/Ruby;
0 1 1 value S
MethodParameters:
Name Flags
runtime
value
public static final org.jruby.runtime.builtin.IRubyObject newUnsigned16(org.jruby.Ruby, short);
descriptor: (Lorg/jruby/Ruby;S)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
ifge 1
iload 1
i2l
ldc 32767
land
ldc 32768
ladd
goto 2
StackMap locals:
StackMap stack: org.jruby.Ruby
1: iload 1
i2l
StackMap locals: org.jruby.Ruby int
StackMap stack: org.jruby.Ruby long
2: invokevirtual org.jruby.Ruby.newFixnum:(J)Lorg/jruby/RubyFixnum;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 runtime Lorg/jruby/Ruby;
0 3 1 value S
MethodParameters:
Name Flags
runtime
value
public static final org.jruby.runtime.builtin.IRubyObject newSigned32(org.jruby.Ruby, int);
descriptor: (Lorg/jruby/Ruby;I)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 runtime Lorg/jruby/Ruby;
0 1 1 value I
MethodParameters:
Name Flags
runtime
value
public static final org.jruby.runtime.builtin.IRubyObject newUnsigned32(org.jruby.Ruby, int);
descriptor: (Lorg/jruby/Ruby;I)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
ifge 1
iload 1
i2l
ldc 2147483647
land
ldc 2147483648
ladd
goto 2
StackMap locals:
StackMap stack: org.jruby.Ruby
1: iload 1
i2l
StackMap locals: org.jruby.Ruby int
StackMap stack: org.jruby.Ruby long
2: invokevirtual org.jruby.Ruby.newFixnum:(J)Lorg/jruby/RubyFixnum;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 runtime Lorg/jruby/Ruby;
0 3 1 value I
MethodParameters:
Name Flags
runtime
value
public static final org.jruby.runtime.builtin.IRubyObject newSigned64(org.jruby.Ruby, long);
descriptor: (Lorg/jruby/Ruby;J)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
lload 1
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 runtime Lorg/jruby/Ruby;
0 1 1 value J
MethodParameters:
Name Flags
runtime
value
public static final org.jruby.runtime.builtin.IRubyObject newUnsigned64(org.jruby.Ruby, long);
descriptor: (Lorg/jruby/Ruby;J)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: lload 1
lconst_0
lcmp
ifge 2
1: aload 0
lload 1
ldc 9223372036854775807
land
invokestatic java.math.BigInteger.valueOf:(J)Ljava/math/BigInteger;
getstatic org.jruby.ext.ffi.Util.UINT64_BASE:Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.add:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
invokestatic org.jruby.RubyBignum.newBignum:(Lorg/jruby/Ruby;Ljava/math/BigInteger;)Lorg/jruby/RubyBignum;
goto 3
2: StackMap locals:
StackMap stack:
aload 0
lload 1
invokevirtual org.jruby.Ruby.newFixnum:(J)Lorg/jruby/RubyFixnum;
3: StackMap locals:
StackMap stack: org.jruby.RubyInteger
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 runtime Lorg/jruby/Ruby;
0 4 1 value J
MethodParameters:
Name Flags
runtime
value
public static final <T> T convertParameter(org.jruby.runtime.builtin.IRubyObject, java.lang.Class<T>);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
instanceof org.jruby.javasupport.JavaObject
ifeq 2
1: aload 0
checkcast org.jruby.javasupport.JavaObject
invokevirtual org.jruby.javasupport.JavaObject.getValue:()Ljava/lang/Object;
goto 3
2: StackMap locals:
StackMap stack: java.lang.Class
aload 0
aload 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.toJava:(Ljava/lang/Class;)Ljava/lang/Object;
3: StackMap locals: org.jruby.runtime.builtin.IRubyObject java.lang.Class
StackMap stack: java.lang.Class java.lang.Object
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 parameter Lorg/jruby/runtime/builtin/IRubyObject;
0 4 1 paramClass Ljava/lang/Class<TT;>;
Signature: <T:Ljava/lang/Object;>(Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/Class<TT;>;)TT;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
parameter
paramClass
public static final java.nio.ByteBuffer slice(java.nio.ByteBuffer, int);
descriptor: (Ljava/nio/ByteBuffer;I)Ljava/nio/ByteBuffer;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.nio.ByteBuffer.duplicate:()Ljava/nio/ByteBuffer;
astore 2
start local 2 1: aload 2
iload 1
invokestatic com.headius.backport9.buffer.Buffers.positionBuffer:(Ljava/nio/Buffer;I)Ljava/nio/Buffer;
pop
2: aload 2
invokevirtual java.nio.ByteBuffer.slice:()Ljava/nio/ByteBuffer;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 buf Ljava/nio/ByteBuffer;
0 3 1 offset I
1 3 2 tmp Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
buf
offset
public static final void checkBounds(org.jruby.Ruby, long, long, long);
descriptor: (Lorg/jruby/Ruby;JJJ)V
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=8, locals=7, args_size=4
start local 0 start local 1 start local 3 start local 5 0: lload 3
lload 5
lor
lload 3
lload 5
ladd
lor
lload 1
lload 3
lload 5
ladd
lsub
lor
lconst_0
lcmp
ifge 4
1: aload 0
new java.lang.StringBuilder
dup
ldc "Memory access offset="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
2: lload 3
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc " size="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
lload 5
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc " is out of bounds"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
3: invokevirtual org.jruby.Ruby.newIndexError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
4: StackMap locals:
StackMap stack:
return
end local 5 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 runtime Lorg/jruby/Ruby;
0 5 1 size J
0 5 3 off J
0 5 5 len J
MethodParameters:
Name Flags
runtime
size
off
len
public static org.jruby.ext.ffi.Type findType(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/ext/ffi/Type;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getFFI:()Lorg/jruby/ext/ffi/FFI;
invokevirtual org.jruby.ext.ffi.FFI.getTypeResolver:()Lorg/jruby/ext/ffi/TypeResolver;
aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 1
invokevirtual org.jruby.ext.ffi.TypeResolver.findType:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/ext/ffi/Type;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
0 1 1 name Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
context
name
public static org.jruby.ext.ffi.Type findType(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/ext/ffi/Type;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getFFI:()Lorg/jruby/ext/ffi/FFI;
invokevirtual org.jruby.ext.ffi.FFI.getTypeResolver:()Lorg/jruby/ext/ffi/TypeResolver;
aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 1
aload 2
invokevirtual org.jruby.ext.ffi.TypeResolver.findType:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/ext/ffi/Type;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
0 1 1 name Lorg/jruby/runtime/builtin/IRubyObject;
0 1 2 typeMap Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
context
name
typeMap
public static java.nio.ByteOrder parseByteOrder(org.jruby.Ruby, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;)Ljava/nio/ByteOrder;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
instanceof org.jruby.RubySymbol
ifne 1
aload 1
instanceof org.jruby.RubyString
ifeq 7
1: StackMap locals:
StackMap stack:
aload 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.asJavaString:()Ljava/lang/String;
astore 2
start local 2 2: ldc "network"
aload 2
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 3
ldc "big"
aload 2
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 4
3: StackMap locals: java.lang.String
StackMap stack:
getstatic java.nio.ByteOrder.BIG_ENDIAN:Ljava/nio/ByteOrder;
areturn
4: StackMap locals:
StackMap stack:
ldc "little"
aload 2
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 6
5: getstatic java.nio.ByteOrder.LITTLE_ENDIAN:Ljava/nio/ByteOrder;
areturn
6: StackMap locals:
StackMap stack:
invokestatic java.nio.ByteOrder.nativeOrder:()Ljava/nio/ByteOrder;
areturn
end local 2 7: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 0
invokevirtual org.jruby.Ruby.getSymbol:()Lorg/jruby/RubyClass;
invokevirtual org.jruby.Ruby.newTypeError:(Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyClass;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 runtime Lorg/jruby/Ruby;
0 8 1 byte_order Lorg/jruby/runtime/builtin/IRubyObject;
2 7 2 orderName Ljava/lang/String;
MethodParameters:
Name Flags
runtime
byte_order
public static int roundUpToPowerOfTwo(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: iload 0
iconst_1
if_icmpge 1
iconst_1
ireturn
1: StackMap locals:
StackMap stack:
iinc 0 -1
2: iload 0
iload 0
iconst_1
ishr
ior
istore 0
3: iload 0
iload 0
iconst_2
ishr
ior
istore 0
4: iload 0
iload 0
iconst_4
ishr
ior
istore 0
5: iload 0
iload 0
bipush 8
ishr
ior
istore 0
6: iload 0
iload 0
bipush 16
ishr
ior
istore 0
7: iload 0
iconst_1
iadd
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 v I
MethodParameters:
Name Flags
v
}
SourceFile: "Util.java"