public class org.jruby.runtime.marshal.MarshalCache
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.runtime.marshal.MarshalCache
super_class: java.lang.Object
{
private final java.util.Map<org.jruby.runtime.builtin.IRubyObject, java.lang.Integer> linkCache;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/Integer;>;
private final java.util.Map<org.jruby.util.ByteList, java.lang.Integer> symbolCache;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Lorg/jruby/util/ByteList;Ljava/lang/Integer;>;
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/jruby/runtime/marshal/MarshalCache;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic org.jruby.runtime.marshal.MarshalCache.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.IdentityHashMap
dup
invokespecial java.util.IdentityHashMap.<init>:()V
putfield org.jruby.runtime.marshal.MarshalCache.linkCache:Ljava/util/Map;
2: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield org.jruby.runtime.marshal.MarshalCache.symbolCache:Ljava/util/Map;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/runtime/marshal/MarshalCache;
public boolean isRegistered(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: getstatic org.jruby.runtime.marshal.MarshalCache.$assertionsDisabled:Z
ifne 1
aload 1
instanceof org.jruby.RubySymbol
ifeq 1
new java.lang.AssertionError
dup
ldc "Use isSymbolRegistered for symbol links"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.runtime.marshal.MarshalCache.linkCache:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/runtime/marshal/MarshalCache;
0 2 1 value Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
value
public boolean isSymbolRegistered(org.jruby.util.ByteList);
descriptor: (Lorg/jruby/util/ByteList;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.runtime.marshal.MarshalCache.symbolCache:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/runtime/marshal/MarshalCache;
0 1 1 sym Lorg/jruby/util/ByteList;
MethodParameters:
Name Flags
sym
public void register(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: getstatic org.jruby.runtime.marshal.MarshalCache.$assertionsDisabled:Z
ifne 1
aload 1
instanceof org.jruby.RubySymbol
ifeq 1
new java.lang.AssertionError
dup
ldc "Use registeredSymbolIndex for symbols"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.runtime.marshal.MarshalCache.linkCache:Ljava/util/Map;
aload 1
aload 0
getfield org.jruby.runtime.marshal.MarshalCache.linkCache:Ljava/util/Map;
invokeinterface java.util.Map.size:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/runtime/marshal/MarshalCache;
0 3 1 value Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
value
public void registerSymbol(org.jruby.util.ByteList);
descriptor: (Lorg/jruby/util/ByteList;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.runtime.marshal.MarshalCache.symbolCache:Ljava/util/Map;
aload 1
aload 0
getfield org.jruby.runtime.marshal.MarshalCache.symbolCache:Ljava/util/Map;
invokeinterface java.util.Map.size:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/runtime/marshal/MarshalCache;
0 2 1 sym Lorg/jruby/util/ByteList;
MethodParameters:
Name Flags
sym
public void writeLink(org.jruby.runtime.marshal.MarshalStream, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/marshal/MarshalStream;Lorg/jruby/runtime/builtin/IRubyObject;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.jruby.runtime.marshal.MarshalCache.$assertionsDisabled:Z
ifne 1
aload 2
instanceof org.jruby.RubySymbol
ifeq 1
new java.lang.AssertionError
dup
ldc "Use writeSymbolLink for symbols"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
1: StackMap locals:
StackMap stack:
aload 1
bipush 64
invokevirtual org.jruby.runtime.marshal.MarshalStream.write:(I)V
2: aload 1
aload 0
aload 2
invokevirtual org.jruby.runtime.marshal.MarshalCache.registeredIndex:(Lorg/jruby/runtime/builtin/IRubyObject;)I
invokevirtual org.jruby.runtime.marshal.MarshalStream.writeInt:(I)V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/runtime/marshal/MarshalCache;
0 4 1 output Lorg/jruby/runtime/marshal/MarshalStream;
0 4 2 value Lorg/jruby/runtime/builtin/IRubyObject;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
output
value
public void writeSymbolLink(org.jruby.runtime.marshal.MarshalStream, org.jruby.util.ByteList);
descriptor: (Lorg/jruby/runtime/marshal/MarshalStream;Lorg/jruby/util/ByteList;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
bipush 59
invokevirtual org.jruby.runtime.marshal.MarshalStream.write:(I)V
1: aload 1
aload 0
aload 2
invokevirtual org.jruby.runtime.marshal.MarshalCache.registeredSymbolIndex:(Lorg/jruby/util/ByteList;)I
invokevirtual org.jruby.runtime.marshal.MarshalStream.writeInt:(I)V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/runtime/marshal/MarshalCache;
0 3 1 output Lorg/jruby/runtime/marshal/MarshalStream;
0 3 2 sym Lorg/jruby/util/ByteList;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
output
sym
private int registeredIndex(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.runtime.marshal.MarshalCache.linkCache:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/runtime/marshal/MarshalCache;
0 1 1 value Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
value
private int registeredSymbolIndex(org.jruby.util.ByteList);
descriptor: (Lorg/jruby/util/ByteList;)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.runtime.marshal.MarshalCache.symbolCache:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/runtime/marshal/MarshalCache;
0 1 1 sym Lorg/jruby/util/ByteList;
MethodParameters:
Name Flags
sym
}
SourceFile: "MarshalCache.java"