abstract class org.jruby.ext.date.DateUtils
minor version: 0
major version: 59
flags: flags: (0x0420) ACC_SUPER, ACC_ABSTRACT
this_class: org.jruby.ext.date.DateUtils
super_class: java.lang.Object
{
static final int INVALID_OFFSET;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: -2147483648
private static final int JC_PERIOD0;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1461
private static final int GC_PERIOD0;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 146097
private static final int CM_PERIOD0;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 71149239
static final int CM_PERIOD;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 213447717
private static final int CM_PERIOD_JCY;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 584388
private static final int CM_PERIOD_GCY;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 584400
private static volatile int[] $SWITCH_TABLE$org$jruby$runtime$ClassIndex;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
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/date/DateUtils;
static long civil_to_jd(int, int, int, double);
descriptor: (IIID)J
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=11, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 1
iconst_2
if_icmpgt 3
1: iinc 0 -1
2: iinc 1 12
3: StackMap locals:
StackMap stack:
iload 0
i2d
ldc 100.0
ddiv
invokestatic java.lang.Math.floor:(D)D
dstore 5
start local 5 4: ldc 2.0
dload 5
dsub
dload 5
ldc 4.0
ddiv
invokestatic java.lang.Math.floor:(D)D
dadd
dstore 7
start local 7 5: ldc 365.25
iload 0
sipush 4716
iadd
i2d
dmul
invokestatic java.lang.Math.floor:(D)D
ldc 30.6001
iload 1
iconst_1
iadd
i2d
dmul
invokestatic java.lang.Math.floor:(D)D
dadd
iload 2
i2d
dadd
dload 7
dadd
ldc 1524.0
dsub
dstore 9
start local 9 6: dload 9
dload 3
dcmpg
ifge 8
7: dload 9
dload 7
dsub
dstore 9
8: StackMap locals: double double double
StackMap stack:
dload 9
d2l
lreturn
end local 9 end local 7 end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 y I
0 9 1 m I
0 9 2 d I
0 9 3 sg D
4 9 5 a D
5 9 7 b D
6 9 9 jd D
MethodParameters:
Name Flags
y
m
d
sg
static int[] jd_to_civil(long, double);
descriptor: (JD)[I
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=22, args_size=2
start local 0 start local 2 0: lload 0
l2d
dload 2
dcmpg
ifge 3
1: lload 0
l2d
dstore 6
start local 6 2: goto 5
end local 6 3: StackMap locals:
StackMap stack:
lload 0
l2d
ldc 1867216.25
dsub
ldc 36524.25
ddiv
invokestatic java.lang.Math.floor:(D)D
dstore 4
start local 4 4: lload 0
lconst_1
ladd
l2d
dload 4
dadd
dload 4
ldc 4.0
ddiv
invokestatic java.lang.Math.floor:(D)D
dsub
dstore 6
end local 4 start local 6 5: StackMap locals: long double top top double
StackMap stack:
dload 6
ldc 1524.0
dadd
dstore 8
start local 8 6: dload 8
ldc 122.1
dsub
ldc 365.25
ddiv
invokestatic java.lang.Math.floor:(D)D
dstore 10
start local 10 7: ldc 365.25
dload 10
dmul
invokestatic java.lang.Math.floor:(D)D
dstore 12
start local 12 8: dload 8
dload 12
dsub
ldc 30.6001
ddiv
invokestatic java.lang.Math.floor:(D)D
dstore 14
start local 14 9: dload 8
dload 12
dsub
ldc 30.6001
dload 14
dmul
invokestatic java.lang.Math.floor:(D)D
dsub
dstore 20
start local 20 10: dload 14
ldc 13.0
dcmpg
ifgt 14
11: dload 14
dconst_1
dsub
dstore 18
start local 18 12: dload 10
ldc 4716.0
dsub
dstore 16
start local 16 13: goto 16
end local 18 end local 16 14: StackMap locals: long double top top double double double double double top top top top double
StackMap stack:
dload 14
ldc 13.0
dsub
dstore 18
start local 18 15: dload 10
ldc 4715.0
dsub
dstore 16
start local 16 16: StackMap locals: long double top top double double double double double double double double
StackMap stack:
iconst_3
newarray 10
dup
iconst_0
dload 16
d2i
iastore
dup
iconst_1
dload 18
d2i
iastore
dup
iconst_2
dload 20
d2i
iastore
areturn
end local 20 end local 18 end local 16 end local 14 end local 12 end local 10 end local 8 end local 6 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 jd J
0 17 2 sg D
4 5 4 x D
2 3 6 a D
5 17 6 a D
6 17 8 b D
7 17 10 c D
8 17 12 d D
9 17 14 e D
13 14 16 y D
16 17 16 y D
12 14 18 m D
15 17 18 m D
10 17 20 dom D
MethodParameters:
Name Flags
jd
sg
static long ordinal_to_jd(int, int, long);
descriptor: (IIJ)J
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: iload 0
lload 2
invokestatic org.jruby.ext.date.DateUtils.find_fdoy:(IJ)Ljava/lang/Long;
invokevirtual java.lang.Long.longValue:()J
iload 1
i2l
ladd
lconst_1
lsub
lreturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 y I
0 1 1 d I
0 1 2 sg J
MethodParameters:
Name Flags
y
d
sg final
static int[] jd_to_ordinal(long, double);
descriptor: (JD)[I
flags: (0x0008) ACC_STATIC
Code:
stack=7, locals=7, args_size=2
start local 0 start local 2 0: lload 0
dload 2
invokestatic org.jruby.ext.date.DateUtils.jd_to_civil:(JD)[I
iconst_0
iaload
istore 4
start local 4 1: iload 4
dload 2
d2i
i2l
invokestatic org.jruby.ext.date.DateUtils.find_fdoy:(IJ)Ljava/lang/Long;
invokevirtual java.lang.Long.longValue:()J
lstore 5
start local 5 2: iconst_2
newarray 10
dup
iconst_0
iload 4
iastore
dup
iconst_1
lload 0
lload 5
lsub
lconst_1
ladd
l2i
iastore
areturn
end local 5 end local 4 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 jd J
0 3 2 sg D
1 3 4 y I
2 3 5 j J
MethodParameters:
Name Flags
jd
sg final
static long commercial_to_jd(int, int, int, long);
descriptor: (IIIJ)J
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 0
lload 3
invokestatic org.jruby.ext.date.DateUtils.find_fdoy:(IJ)Ljava/lang/Long;
invokevirtual java.lang.Long.longValue:()J
ldc 3
ladd
lstore 5
start local 5 1: lload 5
lload 5
lconst_1
lsub
lconst_1
ladd
ldc 7
lrem
lsub
bipush 7
iload 1
iconst_1
isub
imul
i2l
ladd
iload 2
iconst_1
isub
i2l
ladd
lreturn
end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 y I
0 2 1 w I
0 2 2 d I
0 2 3 sg J
1 2 5 j J
MethodParameters:
Name Flags
y
w
d
sg final
static int[] jd_to_commercial(long, long);
descriptor: (JJ)[I
flags: (0x0008) ACC_STATIC
Code:
stack=8, locals=8, args_size=2
start local 0 start local 2 0: lload 0
ldc 3
lsub
lload 2
l2d
invokestatic org.jruby.ext.date.DateUtils.jd_to_civil:(JD)[I
iconst_0
iaload
istore 4
start local 4 1: lload 0
iload 4
iconst_1
iadd
iconst_1
iconst_1
lload 2
invokestatic org.jruby.ext.date.DateUtils.commercial_to_jd:(IIIJ)J
lcmp
iflt 4
2: iload 4
iconst_1
iadd
istore 5
start local 5 3: goto 5
end local 5 4: StackMap locals: int
StackMap stack:
iload 4
istore 5
start local 5 5: StackMap locals: int
StackMap stack:
iconst_1
lload 0
iload 5
iconst_1
iconst_1
lload 2
invokestatic org.jruby.ext.date.DateUtils.commercial_to_jd:(IIIJ)J
lsub
ldc 7
ldiv
l2i
iadd
istore 6
start local 6 6: lload 0
lconst_1
ladd
ldc 7
lrem
l2i
istore 7
start local 7 7: iload 7
ifne 8
bipush 7
istore 7
8: StackMap locals: int int
StackMap stack:
iconst_3
newarray 10
dup
iconst_0
iload 5
iastore
dup
iconst_1
iload 6
iastore
dup
iconst_2
iload 7
iastore
areturn
end local 7 end local 6 end local 5 end local 4 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 jd J
0 9 2 sg J
1 9 4 a I
3 4 5 y I
5 9 5 y I
6 9 6 w I
7 9 7 d I
MethodParameters:
Name Flags
jd
sg final
private static long weeknum_to_jd(int, int, int, int, long);
descriptor: (IIIIJ)J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=8, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: iload 0
lload 4
invokestatic org.jruby.ext.date.DateUtils.find_fdoy:(IJ)Ljava/lang/Long;
invokevirtual java.lang.Long.longValue:()J
ldc 6
ladd
lstore 6
start local 6 1: lload 6
lload 6
iload 3
i2l
lsub
lconst_1
ladd
ldc 7
lrem
lsub
ldc 7
lsub
bipush 7
iload 1
imul
i2l
ladd
iload 2
i2l
ladd
lreturn
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 y I
0 2 1 w I
0 2 2 d I
0 2 3 f I
0 2 4 sg J
1 2 6 a J
MethodParameters:
Name Flags
y
w
d
f
sg final
private static int[] jd_to_weeknum(long, int, long);
descriptor: (JIJ)[I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=8, locals=12, args_size=3
start local 0 start local 2 start local 3 0: lload 0
lload 3
l2d
invokestatic org.jruby.ext.date.DateUtils.jd_to_civil:(JD)[I
iconst_0
iaload
istore 5
start local 5 1: iload 5
lload 3
invokestatic org.jruby.ext.date.DateUtils.find_fdoy:(IJ)Ljava/lang/Long;
invokevirtual java.lang.Long.longValue:()J
ldc 6
ladd
lstore 6
start local 6 2: lload 0
lload 6
lload 6
iload 2
i2l
lsub
lconst_1
ladd
ldc 7
lrem
lsub
lsub
ldc 7
ladd
lstore 8
start local 8 3: lload 8
ldc 7
ldiv
l2i
istore 10
start local 10 4: lload 8
ldc 7
lrem
l2i
istore 11
start local 11 5: iconst_3
newarray 10
dup
iconst_0
iload 5
iastore
dup
iconst_1
iload 10
iastore
dup
iconst_2
iload 11
iastore
areturn
end local 11 end local 10 end local 8 end local 6 end local 5 end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 jd J
0 6 2 f I
0 6 3 sg J
1 6 5 y I
2 6 6 a J
3 6 8 val J
4 6 10 w I
5 6 11 d I
MethodParameters:
Name Flags
jd
f
sg final
private static long nth_kday_to_jd(int, int, int, int, long);
descriptor: (IIIIJ)J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=8, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: iload 2
ifle 3
1: iload 0
iload 1
lload 4
invokestatic org.jruby.ext.date.DateUtils.find_fdom:(IIJ)Ljava/lang/Long;
invokevirtual java.lang.Long.longValue:()J
lconst_1
lsub
lstore 6
start local 6 2: goto 4
end local 6 3: StackMap locals:
StackMap stack:
iload 0
iload 1
lload 4
invokestatic org.jruby.ext.date.DateUtils.find_ldom:(IIJ)Ljava/lang/Long;
invokevirtual java.lang.Long.longValue:()J
ldc 7
ladd
lstore 6
start local 6 4: StackMap locals: long
StackMap stack:
lload 6
lload 6
iload 3
i2l
lsub
lconst_1
ladd
ldc 7
lrem
lsub
bipush 7
iload 2
imul
i2l
ladd
lreturn
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 5 0 y I
0 5 1 m I
0 5 2 n I
0 5 3 k I
0 5 4 sg J
2 3 6 j J
4 5 6 j J
MethodParameters:
Name Flags
y
m
n
k
sg final
private static int[] jd_to_nth_kday(long, long);
descriptor: (JJ)[I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=10, args_size=2
start local 0 start local 2 0: lload 0
lload 2
l2d
invokestatic org.jruby.ext.date.DateUtils.jd_to_civil:(JD)[I
astore 4
start local 4 1: aload 4
iconst_0
iaload
istore 5
start local 5 2: aload 4
iconst_1
iaload
istore 6
start local 6 3: iload 5
iload 6
lload 2
invokestatic org.jruby.ext.date.DateUtils.find_fdom:(IIJ)Ljava/lang/Long;
invokevirtual java.lang.Long.longValue:()J
lstore 7
start local 7 4: lload 0
lconst_1
ladd
ldc 7
lrem
l2i
istore 9
start local 9 5: iconst_4
newarray 10
dup
iconst_0
iload 5
iastore
dup
iconst_1
iload 6
iastore
dup
iconst_2
lload 0
lload 7
lsub
ldc 7
ldiv
lconst_1
ladd
l2i
iastore
dup
iconst_3
iload 9
iastore
areturn
end local 9 end local 7 end local 6 end local 5 end local 4 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 jd J
0 6 2 sg J
1 6 4 y_m_d [I
2 6 5 y I
3 6 6 m I
4 6 7 j J
5 6 9 jd_to_wday I
MethodParameters:
Name Flags
jd
sg final
static boolean valid_time_p(long, long, long);
descriptor: (JJJ)Z
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=6, args_size=3
start local 0 start local 2 start local 4 0: lload 0
lconst_0
lcmp
ifge 1
lload 0
ldc 24
ladd
lstore 0
1: StackMap locals:
StackMap stack:
lload 2
lconst_0
lcmp
ifge 2
lload 2
ldc 60
ladd
lstore 2
2: StackMap locals:
StackMap stack:
lload 4
lconst_0
lcmp
ifge 3
lload 4
ldc 60
ladd
lstore 4
3: StackMap locals:
StackMap stack:
lload 0
lconst_0
lcmp
iflt 8
lload 0
ldc 24
lcmp
ifgt 8
4: lload 2
lconst_0
lcmp
iflt 8
lload 2
ldc 59
lcmp
ifgt 8
5: lload 4
lconst_0
lcmp
iflt 8
lload 4
ldc 59
lcmp
ifgt 8
6: lload 0
ldc 24
lcmp
ifne 9
lload 2
lconst_0
lcmp
ifgt 8
lload 4
lconst_0
7: lcmp
ifle 9
StackMap locals:
StackMap stack:
8: iconst_0
goto 10
StackMap locals:
StackMap stack:
9: iconst_1
StackMap locals:
StackMap stack: int
10: ireturn
end local 4 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 h J
0 11 2 min J
0 11 4 s J
MethodParameters:
Name Flags
h
min
s
static org.jruby.runtime.builtin.IRubyObject day_to_sec(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: (0x0008) 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;
ldc 86400
invokestatic org.jruby.RubyFixnum.newFixnum:(Lorg/jruby/Ruby;J)Lorg/jruby/RubyFixnum;
aload 0
aload 1
invokevirtual org.jruby.RubyFixnum.op_mul:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
0 1 1 d Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
context
d
static int offset_to_sec(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)I
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=12, args_size=2
start local 0 start local 1 0: invokestatic org.jruby.ext.date.DateUtils.$SWITCH_TABLE$org$jruby$runtime$ClassIndex:()[I
aload 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.getMetaClass:()Lorg/jruby/RubyClass;
invokevirtual org.jruby.RubyClass.getClassIndex:()Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
iaload
lookupswitch { // 4
5: 10
12: 4
17: 1
22: 17
default: 35
}
1: StackMap locals:
StackMap stack:
aload 1
checkcast org.jruby.RubyInteger
invokevirtual org.jruby.RubyInteger.getLongValue:()J
lstore 5
start local 5 2: lload 5
ldc -1
lcmp
ifeq 3
lload 5
lconst_0
lcmp
ifeq 3
lload 5
lconst_1
lcmp
ifeq 3
ldc -2147483648
ireturn
3: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject top top top long
StackMap stack:
lload 5
l2i
ldc 86400
imul
ireturn
end local 5 4: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 1
checkcast org.jruby.RubyFloat
invokevirtual org.jruby.RubyFloat.getDoubleValue:()D
dstore 7
start local 7 5: dload 7
ldc 86400.0
dmul
dstore 7
6: dload 7
ldc -86400.0
dcmpg
iflt 7
dload 7
ldc 86400.0
dcmpl
ifle 8
StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject top top top top top double
StackMap stack:
7: ldc -2147483648
ireturn
8: StackMap locals:
StackMap stack:
dload 7
invokestatic java.lang.Math.round:(D)J
lstore 2
start local 2 9: lload 2
l2i
ireturn
end local 7 end local 2 10: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokestatic org.jruby.ext.date.RubyDate.getDate:(Lorg/jruby/Ruby;)Lorg/jruby/RubyClass;
astore 9
start local 9 11: aload 0
invokestatic org.jruby.ext.date.DateUtils.sites:(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/JavaSites$DateSites;
getfield org.jruby.runtime.JavaSites$DateSites.zone_to_diff:Lorg/jruby/runtime/CallSite;
aload 0
aload 9
aload 9
aload 1
invokevirtual org.jruby.runtime.CallSite.call:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 4
start local 4 12: aload 4
instanceof org.jruby.RubyFixnum
ifne 13
ldc -2147483648
ireturn
13: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject top top org.jruby.runtime.builtin.IRubyObject top top top top org.jruby.RubyClass
StackMap stack:
aload 4
checkcast org.jruby.RubyFixnum
invokevirtual org.jruby.RubyFixnum.getLongValue:()J
lstore 2
start local 2 14: lload 2
ldc -86400
lcmp
iflt 15
lload 2
ldc 86400
lcmp
ifle 16
StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject long org.jruby.runtime.builtin.IRubyObject top top top top org.jruby.RubyClass
StackMap stack:
15: ldc -2147483648
ireturn
16: StackMap locals:
StackMap stack:
lload 2
l2i
ireturn
end local 9 end local 4 end local 2 17: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 0
aload 1
invokestatic org.jruby.ext.date.DateUtils.day_to_sec:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 4
start local 4 18: aload 4
instanceof org.jruby.RubyRational
ifne 24
19: aload 4
instanceof org.jruby.RubyFixnum
ifne 20
ldc -2147483648
ireturn
20: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject top top org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 4
checkcast org.jruby.RubyFixnum
invokevirtual org.jruby.RubyFixnum.getLongValue:()J
lstore 2
start local 2 21: lload 2
ldc -86400
lcmp
iflt 22
lload 2
ldc 86400
lcmp
ifle 23
StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject long org.jruby.runtime.builtin.IRubyObject
StackMap stack:
22: ldc -2147483648
ireturn
23: StackMap locals:
StackMap stack:
lload 2
l2i
ireturn
end local 2 24: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject top top org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 4
checkcast org.jruby.RubyRational
invokevirtual org.jruby.RubyRational.getNumerator:()Lorg/jruby/RubyInteger;
astore 10
start local 10 25: aload 4
checkcast org.jruby.RubyRational
invokevirtual org.jruby.RubyRational.getDenominator:()Lorg/jruby/RubyInteger;
astore 11
start local 11 26: aload 10
instanceof org.jruby.RubyFixnum
ifeq 29
aload 11
instanceof org.jruby.RubyFixnum
ifeq 29
aload 11
invokevirtual org.jruby.RubyInteger.getLongValue:()J
lconst_1
lcmp
ifne 29
27: aload 10
checkcast org.jruby.RubyFixnum
invokevirtual org.jruby.RubyFixnum.getLongValue:()J
lstore 2
start local 2 28: goto 34
end local 2 29: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject top top org.jruby.runtime.builtin.IRubyObject top top top top top org.jruby.RubyInteger org.jruby.RubyInteger
StackMap stack:
aload 4
checkcast org.jruby.RubyRational
aload 0
invokevirtual org.jruby.RubyRational.round:(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
checkcast org.jruby.RubyInteger
astore 10
30: aload 10
instanceof org.jruby.RubyFixnum
ifne 31
ldc -2147483648
ireturn
31: StackMap locals:
StackMap stack:
aload 10
checkcast org.jruby.RubyFixnum
invokevirtual org.jruby.RubyFixnum.getLongValue:()J
lstore 2
start local 2 32: lload 2
ldc -86400
lcmp
iflt 33
lload 2
ldc 86400
lcmp
ifle 34
StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject long org.jruby.runtime.builtin.IRubyObject top top top top top org.jruby.RubyInteger org.jruby.RubyInteger
StackMap stack:
33: ldc -2147483648
ireturn
34: StackMap locals:
StackMap stack:
lload 2
l2i
ireturn
end local 11 end local 10 end local 4 end local 2 35: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject
StackMap stack:
ldc -2147483648
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 36 0 context Lorg/jruby/runtime/ThreadContext;
0 36 1 of Lorg/jruby/runtime/builtin/IRubyObject;
9 10 2 n J
14 17 2 n J
21 24 2 n J
28 29 2 n J
32 35 2 n J
12 17 4 vs Lorg/jruby/runtime/builtin/IRubyObject;
18 35 4 vs Lorg/jruby/runtime/builtin/IRubyObject;
2 4 5 i J
5 10 7 d D
11 17 9 date Lorg/jruby/RubyClass;
25 35 10 vn Lorg/jruby/RubyInteger;
26 35 11 vd Lorg/jruby/RubyInteger;
MethodParameters:
Name Flags
context
of
static java.lang.Long find_ldom(int, int, long);
descriptor: (IIJ)Ljava/lang/Long;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
astore 4
start local 4 1: bipush 31
istore 5
start local 5 2: goto 6
3: StackMap locals: java.lang.Long int
StackMap stack:
iload 0
iload 1
iload 5
lload 2
invokestatic org.jruby.ext.date.DateUtils._valid_civil_p:(IIIJ)Ljava/lang/Long;
astore 4
4: aload 4
ifnull 5
goto 7
5: StackMap locals:
StackMap stack:
iinc 5 -1
StackMap locals:
StackMap stack:
6: iload 5
iconst_1
if_icmpge 3
end local 5 7: StackMap locals:
StackMap stack:
aload 4
areturn
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 y I
0 8 1 m I
0 8 2 sg J
1 8 4 j Ljava/lang/Long;
2 7 5 d I
MethodParameters:
Name Flags
y
m
sg final
static java.lang.Long find_fdom(int, int, long);
descriptor: (IIJ)Ljava/lang/Long;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
astore 4
start local 4 1: iconst_1
istore 5
start local 5 2: goto 6
3: StackMap locals: java.lang.Long int
StackMap stack:
iload 0
iload 1
iload 5
lload 2
invokestatic org.jruby.ext.date.DateUtils._valid_civil_p:(IIIJ)Ljava/lang/Long;
astore 4
4: aload 4
ifnull 5
goto 7
5: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
6: iload 5
bipush 31
if_icmple 3
end local 5 7: StackMap locals:
StackMap stack:
aload 4
areturn
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 y I
0 8 1 m I
0 8 2 sg J
1 8 4 j Ljava/lang/Long;
2 7 5 d I
MethodParameters:
Name Flags
y
m
sg final
static java.lang.Long find_fdoy(int, long);
descriptor: (IJ)Ljava/lang/Long;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aconst_null
astore 3
start local 3 1: iconst_1
istore 4
start local 4 2: goto 6
3: StackMap locals: java.lang.Long int
StackMap stack:
iload 0
iconst_1
iload 4
lload 1
invokestatic org.jruby.ext.date.DateUtils._valid_civil_p:(IIIJ)Ljava/lang/Long;
astore 3
4: aload 3
ifnull 5
goto 7
5: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
6: iload 4
bipush 31
if_icmple 3
end local 4 7: StackMap locals:
StackMap stack:
aload 3
areturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 y I
0 8 1 sg J
1 8 3 j Ljava/lang/Long;
2 7 4 d I
MethodParameters:
Name Flags
y
sg final
static java.lang.Long find_ldoy(int, long);
descriptor: (IJ)Ljava/lang/Long;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aconst_null
astore 3
start local 3 1: bipush 31
istore 4
start local 4 2: goto 6
3: StackMap locals: java.lang.Long int
StackMap stack:
iload 0
bipush 12
iload 4
lload 1
invokestatic org.jruby.ext.date.DateUtils._valid_civil_p:(IIIJ)Ljava/lang/Long;
astore 3
4: aload 3
ifnull 5
goto 7
5: StackMap locals:
StackMap stack:
iinc 4 -1
StackMap locals:
StackMap stack:
6: iload 4
iconst_1
if_icmpge 3
end local 4 7: StackMap locals:
StackMap stack:
aload 3
areturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 y I
0 8 1 sg J
1 8 3 j Ljava/lang/Long;
2 7 4 d I
MethodParameters:
Name Flags
y
sg final
static java.lang.Long _valid_civil_p(int, int, int, long);
descriptor: (IIIJ)Ljava/lang/Long;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 2
ifge 7
1: iload 0
iload 1
lload 3
invokestatic org.jruby.ext.date.DateUtils.find_ldom:(IIJ)Ljava/lang/Long;
astore 5
start local 5 2: aload 5
ifnonnull 3
aconst_null
areturn
3: StackMap locals: java.lang.Long
StackMap stack:
aload 5
invokevirtual java.lang.Long.longValue:()J
iload 2
i2l
ladd
lconst_1
ladd
lload 3
l2d
invokestatic org.jruby.ext.date.DateUtils.jd_to_civil:(JD)[I
astore 6
start local 6 4: iload 0
aload 6
iconst_0
iaload
if_icmpne 5
iload 1
aload 6
iconst_1
iaload
if_icmpeq 6
StackMap locals: int[]
StackMap stack:
5: aconst_null
areturn
6: StackMap locals:
StackMap stack:
aload 6
iconst_2
iaload
istore 2
end local 6 end local 5 7: StackMap locals:
StackMap stack:
iload 0
iload 1
iload 2
lload 3
l2d
invokestatic org.jruby.ext.date.DateUtils.civil_to_jd:(IIID)J
lstore 5
start local 5 8: lload 5
lload 3
l2d
invokestatic org.jruby.ext.date.DateUtils.jd_to_civil:(JD)[I
astore 7
start local 7 9: iload 0
aload 7
iconst_0
iaload
if_icmpne 10
iload 1
aload 7
iconst_1
iaload
if_icmpne 10
iload 2
aload 7
iconst_2
iaload
if_icmpeq 11
StackMap locals: long int[]
StackMap stack:
10: aconst_null
areturn
11: StackMap locals:
StackMap stack:
lload 5
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
areturn
end local 7 end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 y I
0 12 1 m I
0 12 2 d I
0 12 3 sg J
2 7 5 j Ljava/lang/Long;
4 7 6 ny_nm_nd [I
8 12 5 jd J
9 12 7 y_m_d [I
MethodParameters:
Name Flags
y
m
d
sg final
static java.lang.Long _valid_ordinal_p(int, int, long);
descriptor: (IIJ)Ljava/lang/Long;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=7, args_size=3
start local 0 start local 1 start local 2 0: iload 1
ifge 6
1: iload 0
lload 2
invokestatic org.jruby.ext.date.DateUtils.find_ldoy:(IJ)Ljava/lang/Long;
astore 4
start local 4 2: aload 4
ifnonnull 3
aconst_null
areturn
3: StackMap locals: java.lang.Long
StackMap stack:
aload 4
invokevirtual java.lang.Long.longValue:()J
iload 1
i2l
ladd
lconst_1
ladd
lload 2
l2d
invokestatic org.jruby.ext.date.DateUtils.jd_to_ordinal:(JD)[I
astore 5
start local 5 4: iload 0
aload 5
iconst_0
iaload
if_icmpeq 5
aconst_null
areturn
5: StackMap locals: int[]
StackMap stack:
aload 5
iconst_1
iaload
istore 1
end local 5 end local 4 6: StackMap locals:
StackMap stack:
iload 0
iload 1
lload 2
invokestatic org.jruby.ext.date.DateUtils.ordinal_to_jd:(IIJ)J
lstore 4
start local 4 7: lload 4
lload 2
l2d
invokestatic org.jruby.ext.date.DateUtils.jd_to_ordinal:(JD)[I
astore 6
start local 6 8: iload 0
aload 6
iconst_0
iaload
if_icmpne 9
iload 1
aload 6
iconst_1
iaload
if_icmpeq 10
StackMap locals: long int[]
StackMap stack:
9: aconst_null
areturn
10: StackMap locals:
StackMap stack:
lload 4
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
areturn
end local 6 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 y I
0 11 1 d I
0 11 2 sg J
2 6 4 j Ljava/lang/Long;
4 6 5 ny_nd [I
7 11 4 jd J
8 11 6 y_d [I
MethodParameters:
Name Flags
y
d
sg final
static java.lang.Long _valid_commercial_p(int, int, int, long);
descriptor: (IIIJ)Ljava/lang/Long;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 2
ifge 1
iinc 2 8
1: StackMap locals:
StackMap stack:
iload 1
ifge 5
2: iload 0
iconst_1
iadd
iconst_1
iconst_1
lload 3
invokestatic org.jruby.ext.date.DateUtils.commercial_to_jd:(IIIJ)J
iload 1
bipush 7
imul
i2l
ladd
lload 3
invokestatic org.jruby.ext.date.DateUtils.jd_to_commercial:(JJ)[I
astore 5
start local 5 3: iload 0
aload 5
iconst_0
iaload
if_icmpeq 4
aconst_null
areturn
4: StackMap locals: int[]
StackMap stack:
aload 5
iconst_1
iaload
istore 1
end local 5 5: StackMap locals:
StackMap stack:
iload 0
iload 1
iload 2
lload 3
invokestatic org.jruby.ext.date.DateUtils.commercial_to_jd:(IIIJ)J
lstore 5
start local 5 6: lload 5
lload 3
invokestatic org.jruby.ext.date.DateUtils.jd_to_commercial:(JJ)[I
astore 7
start local 7 7: iload 0
aload 7
iconst_0
iaload
if_icmpne 8
iload 1
aload 7
iconst_1
iaload
if_icmpne 8
iload 2
aload 7
iconst_2
iaload
if_icmpeq 9
StackMap locals: long int[]
StackMap stack:
8: aconst_null
areturn
9: StackMap locals:
StackMap stack:
lload 5
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
areturn
end local 7 end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 y I
0 10 1 w I
0 10 2 d I
0 10 3 sg J
3 5 5 ny_nw_nd [I
6 10 5 jd J
7 10 7 ny_nw_nd [I
MethodParameters:
Name Flags
y
w
d
sg final
static java.lang.Long _valid_weeknum_p(int, int, int, int, long);
descriptor: (IIIIJ)Ljava/lang/Long;
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=9, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: iload 2
ifge 1
iinc 2 7
1: StackMap locals:
StackMap stack:
iload 1
ifge 5
2: iload 0
iconst_1
iadd
iconst_1
iload 3
iload 3
lload 4
invokestatic org.jruby.ext.date.DateUtils.weeknum_to_jd:(IIIIJ)J
iload 1
bipush 7
imul
i2l
ladd
iload 3
lload 4
invokestatic org.jruby.ext.date.DateUtils.jd_to_weeknum:(JIJ)[I
astore 6
start local 6 3: iload 0
aload 6
iconst_0
iaload
if_icmpeq 4
aconst_null
areturn
4: StackMap locals: int[]
StackMap stack:
aload 6
iconst_1
iaload
istore 1
end local 6 5: StackMap locals:
StackMap stack:
iload 0
iload 1
iload 2
iload 3
lload 4
invokestatic org.jruby.ext.date.DateUtils.weeknum_to_jd:(IIIIJ)J
lstore 6
start local 6 6: lload 6
iload 3
lload 4
invokestatic org.jruby.ext.date.DateUtils.jd_to_weeknum:(JIJ)[I
astore 8
start local 8 7: iload 0
aload 8
iconst_0
iaload
if_icmpne 8
iload 1
aload 8
iconst_1
iaload
if_icmpne 8
iload 2
aload 8
iconst_2
iaload
if_icmpeq 9
StackMap locals: long int[]
StackMap stack:
8: aconst_null
areturn
9: StackMap locals:
StackMap stack:
lload 6
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
areturn
end local 8 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 10 0 y I
0 10 1 w I
0 10 2 d I
0 10 3 f I
0 10 4 sg J
3 5 6 ny_nw_nd [I
6 10 6 jd J
7 10 8 ny_nw_nd [I
MethodParameters:
Name Flags
y
w
d
f
sg final
static java.lang.Long _valid_nth_kday_p(int, int, int, int, long);
descriptor: (IIIIJ)Ljava/lang/Long;
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=10, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: iload 3
ifge 1
iinc 3 7
1: StackMap locals:
StackMap stack:
iload 2
ifge 10
2: iload 0
bipush 12
imul
iload 1
iadd
istore 6
start local 6 3: iload 6
bipush 12
idiv
istore 7
start local 7 4: iload 6
bipush 12
irem
istore 8
start local 8 5: iload 8
iconst_1
iadd
iconst_1
idiv
istore 8
6: iload 7
iload 8
iconst_1
iload 3
lload 4
invokestatic org.jruby.ext.date.DateUtils.nth_kday_to_jd:(IIIIJ)J
iload 2
bipush 7
imul
i2l
ladd
lload 4
invokestatic org.jruby.ext.date.DateUtils.jd_to_nth_kday:(JJ)[I
astore 9
start local 9 7: iload 0
aload 9
iconst_0
iaload
if_icmpne 8
iload 1
aload 9
iconst_1
iaload
if_icmpeq 9
StackMap locals: int int int int long int int int int[]
StackMap stack:
8: aconst_null
areturn
9: StackMap locals:
StackMap stack:
aload 9
iconst_2
iaload
istore 2
end local 9 end local 8 end local 7 end local 6 10: StackMap locals: int int int int long
StackMap stack:
iload 0
iload 1
iload 2
iload 3
lload 4
invokestatic org.jruby.ext.date.DateUtils.nth_kday_to_jd:(IIIIJ)J
lstore 6
start local 6 11: lload 6
lload 4
invokestatic org.jruby.ext.date.DateUtils.jd_to_nth_kday:(JJ)[I
astore 8
start local 8 12: iload 0
aload 8
iconst_0
iaload
if_icmpne 13
iload 1
aload 8
iconst_1
iaload
if_icmpne 13
iload 2
aload 8
iconst_2
iaload
if_icmpne 13
iload 3
aload 8
iconst_3
iaload
if_icmpeq 14
StackMap locals: long int[]
StackMap stack:
13: aconst_null
areturn
14: StackMap locals:
StackMap stack:
lload 6
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
areturn
end local 8 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 15 0 y I
0 15 1 m I
0 15 2 n I
0 15 3 k I
0 15 4 sg J
3 10 6 val I
4 10 7 ny I
5 10 8 nm I
7 10 9 ny_nm_nn_nk [I
11 15 6 jd J
12 15 8 ny_nm_nn_nk [I
MethodParameters:
Name Flags
y
m
n
k
sg final
static int decode_year(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, int, org.jruby.RubyInteger[]);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;I[Lorg/jruby/RubyInteger;)I
flags: (0x0008) ACC_STATIC
Code:
stack=7, locals=11, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 2
ifge 1
ldc 584400
goto 2
StackMap locals:
StackMap stack:
1: ldc 584388
StackMap locals:
StackMap stack: int
2: istore 4
start local 4 3: aload 1
instanceof org.jruby.RubyFixnum
ifeq 12
4: aload 1
checkcast org.jruby.RubyFixnum
invokevirtual org.jruby.RubyFixnum.getLongValue:()J
lstore 5
start local 5 5: lload 5
ldc 9223372036854771095
lcmp
ifge 12
6: lload 5
ldc 4712
ladd
lstore 7
start local 7 7: lload 7
iload 4
i2l
ldiv
lstore 9
start local 9 8: lload 9
lconst_0
lcmp
ifeq 10
9: lload 7
iload 4
i2l
lrem
lstore 7
10: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject int org.jruby.RubyInteger[] int long long long
StackMap stack:
aload 3
iconst_0
aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
lload 9
invokestatic org.jruby.RubyFixnum.newFixnum:(Lorg/jruby/Ruby;J)Lorg/jruby/RubyFixnum;
aastore
11: lload 7
l2i
sipush 4712
isub
ireturn
end local 9 end local 7 end local 5 12: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
ldc 4712
invokestatic org.jruby.RubyFixnum.newFixnum:(Lorg/jruby/Ruby;J)Lorg/jruby/RubyFixnum;
invokestatic org.jruby.util.Numeric.f_add:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 5
start local 5 13: aload 3
iconst_0
aload 0
aload 5
aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
iload 4
i2l
invokestatic org.jruby.RubyFixnum.newFixnum:(Lorg/jruby/Ruby;J)Lorg/jruby/RubyFixnum;
invokestatic org.jruby.util.Numeric.f_idiv:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
checkcast org.jruby.RubyInteger
aastore
14: aload 0
aload 3
iconst_0
aaload
invokestatic org.jruby.util.Numeric.f_zero_p:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/RubyInteger;)Z
ifne 16
15: aload 0
aload 5
aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
iload 4
i2l
invokestatic org.jruby.RubyFixnum.newFixnum:(Lorg/jruby/Ruby;J)Lorg/jruby/RubyFixnum;
invokestatic org.jruby.util.Numeric.f_mod:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 5
16: StackMap locals: org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 5
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToInteger:()Lorg/jruby/RubyInteger;
invokevirtual org.jruby.RubyInteger.getIntValue:()I
sipush 4712
isub
ireturn
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 17 0 context Lorg/jruby/runtime/ThreadContext;
0 17 1 y Lorg/jruby/runtime/builtin/IRubyObject;
0 17 2 style I
0 17 3 nth [Lorg/jruby/RubyInteger;
3 17 4 period I
5 12 5 iy J
7 12 7 it J
8 12 9 inth J
13 17 5 t Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
context
y
style final
nth
static long guess_style(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, double);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;D)J
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=8, args_size=3
start local 0 start local 1 start local 2 0: lconst_0
lstore 4
start local 4 1: dload 2
ldc Infinity
dcmpl
ifne 4
2: ldc 9223372036854775807
lstore 4
3: goto 17
StackMap locals: long
StackMap stack:
4: dload 2
ldc -Infinity
dcmpl
ifne 7
5: ldc -9223372036854775808
lstore 4
6: goto 17
StackMap locals:
StackMap stack:
7: aload 1
instanceof org.jruby.RubyFixnum
ifne 12
8: aload 1
checkcast org.jruby.RubyNumeric
aload 0
invokevirtual org.jruby.RubyNumeric.isPositive:(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
invokeinterface org.jruby.runtime.builtin.IRubyObject.isTrue:()Z
ifeq 9
ldc -9223372036854775808
goto 10
StackMap locals:
StackMap stack:
9: ldc 9223372036854775807
StackMap locals:
StackMap stack: long
10: lstore 4
11: goto 17
12: StackMap locals:
StackMap stack:
aload 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToInteger:()Lorg/jruby/RubyInteger;
invokevirtual org.jruby.RubyInteger.getLongValue:()J
lstore 6
start local 6 13: lload 6
ldc 1582
lcmp
ifge 15
14: ldc 9223372036854775807
lstore 4
goto 17
15: StackMap locals: long
StackMap stack:
lload 6
ldc 1930
lcmp
ifle 17
16: ldc -9223372036854775808
lstore 4
end local 6 17: StackMap locals:
StackMap stack:
lload 4
lreturn
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 context Lorg/jruby/runtime/ThreadContext;
0 18 1 y Lorg/jruby/runtime/builtin/IRubyObject;
0 18 2 sg D
1 18 4 style J
13 17 6 iy J
MethodParameters:
Name Flags
context
y
sg
private static org.jruby.runtime.JavaSites$DateSites sites(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/JavaSites$DateSites;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.runtime.ThreadContext.sites:Lorg/jruby/runtime/JavaSites;
getfield org.jruby.runtime.JavaSites.Date:Lorg/jruby/runtime/JavaSites$DateSites;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
MethodParameters:
Name Flags
context
static int[] $SWITCH_TABLE$org$jruby$runtime$ClassIndex();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic org.jruby.ext.date.DateUtils.$SWITCH_TABLE$org$jruby$runtime$ClassIndex:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic org.jruby.runtime.ClassIndex.values:()[Lorg/jruby/runtime/ClassIndex;
arraylength
newarray 10
astore 0
2: aload 0
getstatic org.jruby.runtime.ClassIndex.ARRAY:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
iconst_4
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic org.jruby.runtime.ClassIndex.BASICOBJECT:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 39
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic org.jruby.runtime.ClassIndex.BIGDECIMAL:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 40
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
getstatic org.jruby.runtime.ClassIndex.BIGNUM:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
iconst_3
iastore
12: goto 14
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
13: pop
StackMap locals:
StackMap stack:
14: aload 0
getstatic org.jruby.runtime.ClassIndex.BINDING:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 33
iastore
15: goto 17
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
16: pop
StackMap locals:
StackMap stack:
17: aload 0
getstatic org.jruby.runtime.ClassIndex.CLASS:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 14
iastore
18: goto 20
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
19: pop
StackMap locals:
StackMap stack:
20: aload 0
getstatic org.jruby.runtime.ClassIndex.COMPLEX:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 21
iastore
21: goto 23
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
22: pop
StackMap locals:
StackMap stack:
23: aload 0
getstatic org.jruby.runtime.ClassIndex.CONTINUATION:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 38
iastore
24: goto 26
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
25: pop
StackMap locals:
StackMap stack:
26: aload 0
getstatic org.jruby.runtime.ClassIndex.CONVERTER:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 24
iastore
27: goto 29
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
28: pop
StackMap locals:
StackMap stack:
29: aload 0
getstatic org.jruby.runtime.ClassIndex.DIR:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 36
iastore
30: goto 32
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
31: pop
StackMap locals:
StackMap stack:
32: aload 0
getstatic org.jruby.runtime.ClassIndex.ENCODING:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 23
iastore
33: goto 35
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
34: pop
StackMap locals:
StackMap stack:
35: aload 0
getstatic org.jruby.runtime.ClassIndex.EXCEPTION:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 31
iastore
36: goto 38
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
37: pop
StackMap locals:
StackMap stack:
38: aload 0
getstatic org.jruby.runtime.ClassIndex.FALSE:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 8
iastore
39: goto 41
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
40: pop
StackMap locals:
StackMap stack:
41: aload 0
getstatic org.jruby.runtime.ClassIndex.FILE:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 27
iastore
42: goto 44
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
43: pop
StackMap locals:
StackMap stack:
44: aload 0
getstatic org.jruby.runtime.ClassIndex.FIXNUM:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
iconst_2
iastore
45: goto 47
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
46: pop
StackMap locals:
StackMap stack:
47: aload 0
getstatic org.jruby.runtime.ClassIndex.FLOAT:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 12
iastore
48: goto 50
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
49: pop
StackMap locals:
StackMap stack:
50: aload 0
getstatic org.jruby.runtime.ClassIndex.GENERATOR:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 25
iastore
51: goto 53
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
52: pop
StackMap locals:
StackMap stack:
53: aload 0
getstatic org.jruby.runtime.ClassIndex.HASH:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 11
iastore
54: goto 56
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
55: pop
StackMap locals:
StackMap stack:
56: aload 0
getstatic org.jruby.runtime.ClassIndex.INTEGER:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 17
iastore
57: goto 59
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
58: pop
StackMap locals:
StackMap stack:
59: aload 0
getstatic org.jruby.runtime.ClassIndex.IO:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 32
iastore
60: goto 62
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
61: pop
StackMap locals:
StackMap stack:
62: aload 0
getstatic org.jruby.runtime.ClassIndex.MATCHDATA:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 28
iastore
63: goto 65
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
64: pop
StackMap locals:
StackMap stack:
65: aload 0
getstatic org.jruby.runtime.ClassIndex.MAX_CLASSES:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 41
iastore
66: goto 68
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
67: pop
StackMap locals:
StackMap stack:
68: aload 0
getstatic org.jruby.runtime.ClassIndex.METHOD:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 35
iastore
69: goto 71
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
70: pop
StackMap locals:
StackMap stack:
71: aload 0
getstatic org.jruby.runtime.ClassIndex.MODULE:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 13
iastore
72: goto 74
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
73: pop
StackMap locals:
StackMap stack:
74: aload 0
getstatic org.jruby.runtime.ClassIndex.NIL:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 6
iastore
75: goto 77
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
76: pop
StackMap locals:
StackMap stack:
77: aload 0
getstatic org.jruby.runtime.ClassIndex.NO_INDEX:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
iconst_1
iastore
78: goto 80
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
79: pop
StackMap locals:
StackMap stack:
80: aload 0
getstatic org.jruby.runtime.ClassIndex.NUMERIC:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 18
iastore
81: goto 83
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
82: pop
StackMap locals:
StackMap stack:
83: aload 0
getstatic org.jruby.runtime.ClassIndex.OBJECT:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 15
iastore
84: goto 86
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
85: pop
StackMap locals:
StackMap stack:
86: aload 0
getstatic org.jruby.runtime.ClassIndex.PROC:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 34
iastore
87: goto 89
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
88: pop
StackMap locals:
StackMap stack:
89: aload 0
getstatic org.jruby.runtime.ClassIndex.RANGE:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 19
iastore
90: goto 92
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
91: pop
StackMap locals:
StackMap stack:
92: aload 0
getstatic org.jruby.runtime.ClassIndex.RATIONAL:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 22
iastore
93: goto 95
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
94: pop
StackMap locals:
StackMap stack:
95: aload 0
getstatic org.jruby.runtime.ClassIndex.REGEXP:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 10
iastore
96: goto 98
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
97: pop
StackMap locals:
StackMap stack:
98: aload 0
getstatic org.jruby.runtime.ClassIndex.STRING:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
iconst_5
iastore
99: goto 101
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
100: pop
StackMap locals:
StackMap stack:
101: aload 0
getstatic org.jruby.runtime.ClassIndex.STRUCT:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 16
iastore
102: goto 104
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
103: pop
StackMap locals:
StackMap stack:
104: aload 0
getstatic org.jruby.runtime.ClassIndex.SYMBOL:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 9
iastore
105: goto 107
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
106: pop
StackMap locals:
StackMap stack:
107: aload 0
getstatic org.jruby.runtime.ClassIndex.THREAD:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 30
iastore
108: goto 110
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
109: pop
StackMap locals:
StackMap stack:
110: aload 0
getstatic org.jruby.runtime.ClassIndex.THREADGROUP:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 29
iastore
111: goto 113
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
112: pop
StackMap locals:
StackMap stack:
113: aload 0
getstatic org.jruby.runtime.ClassIndex.TIME:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 20
iastore
114: goto 116
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
115: pop
StackMap locals:
StackMap stack:
116: aload 0
getstatic org.jruby.runtime.ClassIndex.TRUE:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 7
iastore
117: goto 119
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
118: pop
StackMap locals:
StackMap stack:
119: aload 0
getstatic org.jruby.runtime.ClassIndex.UNBOUNDMETHOD:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 37
iastore
120: goto 122
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
121: pop
StackMap locals:
StackMap stack:
122: aload 0
getstatic org.jruby.runtime.ClassIndex.YIELDER:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 26
iastore
123: goto 125
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
124: pop
StackMap locals:
StackMap stack:
125: aload 0
dup
putstatic org.jruby.ext.date.DateUtils.$SWITCH_TABLE$org$jruby$runtime$ClassIndex:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
8 9 10 Class java.lang.NoSuchFieldError
11 12 13 Class java.lang.NoSuchFieldError
14 15 16 Class java.lang.NoSuchFieldError
17 18 19 Class java.lang.NoSuchFieldError
20 21 22 Class java.lang.NoSuchFieldError
23 24 25 Class java.lang.NoSuchFieldError
26 27 28 Class java.lang.NoSuchFieldError
29 30 31 Class java.lang.NoSuchFieldError
32 33 34 Class java.lang.NoSuchFieldError
35 36 37 Class java.lang.NoSuchFieldError
38 39 40 Class java.lang.NoSuchFieldError
41 42 43 Class java.lang.NoSuchFieldError
44 45 46 Class java.lang.NoSuchFieldError
47 48 49 Class java.lang.NoSuchFieldError
50 51 52 Class java.lang.NoSuchFieldError
53 54 55 Class java.lang.NoSuchFieldError
56 57 58 Class java.lang.NoSuchFieldError
59 60 61 Class java.lang.NoSuchFieldError
62 63 64 Class java.lang.NoSuchFieldError
65 66 67 Class java.lang.NoSuchFieldError
68 69 70 Class java.lang.NoSuchFieldError
71 72 73 Class java.lang.NoSuchFieldError
74 75 76 Class java.lang.NoSuchFieldError
77 78 79 Class java.lang.NoSuchFieldError
80 81 82 Class java.lang.NoSuchFieldError
83 84 85 Class java.lang.NoSuchFieldError
86 87 88 Class java.lang.NoSuchFieldError
89 90 91 Class java.lang.NoSuchFieldError
92 93 94 Class java.lang.NoSuchFieldError
95 96 97 Class java.lang.NoSuchFieldError
98 99 100 Class java.lang.NoSuchFieldError
101 102 103 Class java.lang.NoSuchFieldError
104 105 106 Class java.lang.NoSuchFieldError
107 108 109 Class java.lang.NoSuchFieldError
110 111 112 Class java.lang.NoSuchFieldError
113 114 115 Class java.lang.NoSuchFieldError
116 117 118 Class java.lang.NoSuchFieldError
119 120 121 Class java.lang.NoSuchFieldError
122 123 124 Class java.lang.NoSuchFieldError
}
SourceFile: "DateUtils.java"
InnerClasses:
public DateSites = org.jruby.runtime.JavaSites$DateSites of org.jruby.runtime.JavaSites