class org.jruby.RubyRational$2 implements org.jruby.runtime.ObjectMarshal
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.jruby.RubyRational$2
super_class: java.lang.Object
{
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/RubyRational$2;
public void marshalTo(org.jruby.Ruby, java.lang.Object, org.jruby.RubyClass, org.jruby.runtime.marshal.MarshalStream);
descriptor: (Lorg/jruby/Ruby;Ljava/lang/Object;Lorg/jruby/RubyClass;Lorg/jruby/runtime/marshal/MarshalStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 1
ldc "marshal_dump should be used instead for Rational"
invokevirtual org.jruby.Ruby.newTypeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyRational$2;
0 1 1 runtime Lorg/jruby/Ruby;
0 1 2 obj Ljava/lang/Object;
0 1 3 type Lorg/jruby/RubyClass;
0 1 4 marshalStream Lorg/jruby/runtime/marshal/MarshalStream;
MethodParameters:
Name Flags
runtime
obj
type
marshalStream
public java.lang.Object unmarshalFrom(org.jruby.Ruby, org.jruby.RubyClass, org.jruby.runtime.marshal.UnmarshalStream);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Lorg/jruby/runtime/marshal/UnmarshalStream;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
invokevirtual org.jruby.Ruby.getCurrentContext:()Lorg/jruby/runtime/ThreadContext;
astore 4
start local 4 1: getstatic org.jruby.RubyClass.DEFAULT_OBJECT_MARSHAL:Lorg/jruby/runtime/ObjectMarshal;
aload 1
aload 2
aload 3
invokeinterface org.jruby.runtime.ObjectMarshal.unmarshalFrom:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Lorg/jruby/runtime/marshal/UnmarshalStream;)Ljava/lang/Object;
checkcast org.jruby.RubyRational
astore 5
start local 5 2: aload 4
aload 5
ldc "@numerator"
invokevirtual org.jruby.RubyRational.removeInstanceVariable:(Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
invokestatic org.jruby.RubyRational.intCheck:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyInteger;
astore 6
start local 6 3: aload 4
aload 5
ldc "@denominator"
invokevirtual org.jruby.RubyRational.removeInstanceVariable:(Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
invokestatic org.jruby.RubyRational.intCheck:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyInteger;
astore 7
start local 7 4: aload 4
aload 7
invokestatic org.jruby.RubyRational.canonicalizeShouldNegate:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/RubyInteger;)Z
ifeq 7
5: aload 6
invokevirtual org.jruby.RubyInteger.negate:()Lorg/jruby/RubyInteger;
astore 6
6: aload 7
invokevirtual org.jruby.RubyInteger.negate:()Lorg/jruby/RubyInteger;
astore 7
7: StackMap locals: org.jruby.RubyRational$2 org.jruby.Ruby org.jruby.RubyClass org.jruby.runtime.marshal.UnmarshalStream org.jruby.runtime.ThreadContext org.jruby.RubyRational org.jruby.RubyInteger org.jruby.RubyInteger
StackMap stack:
aload 5
aload 6
putfield org.jruby.RubyRational.num:Lorg/jruby/RubyInteger;
8: aload 5
aload 7
putfield org.jruby.RubyRational.den:Lorg/jruby/RubyInteger;
9: aload 5
areturn
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/jruby/RubyRational$2;
0 10 1 runtime Lorg/jruby/Ruby;
0 10 2 type Lorg/jruby/RubyClass;
0 10 3 unmarshalStream Lorg/jruby/runtime/marshal/UnmarshalStream;
1 10 4 context Lorg/jruby/runtime/ThreadContext;
2 10 5 r Lorg/jruby/RubyRational;
3 10 6 num Lorg/jruby/RubyInteger;
4 10 7 den Lorg/jruby/RubyInteger;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
runtime
type
unmarshalStream
}
SourceFile: "RubyRational.java"
EnclosingMethod: org.jruby.RubyRational
NestHost: org.jruby.RubyRational
InnerClasses:
org.jruby.RubyRational$2