public class org.jruby.FlagRegistry
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.FlagRegistry
super_class: java.lang.Object
{
private final java.util.Map<java.lang.Class, java.lang.Integer> currentShift;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/Class;Ljava/lang/Integer;>;
private final java.util.Map<java.lang.Class, java.util.BitSet> registry;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/Class;Ljava/util/BitSet;>;
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/FlagRegistry;
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.FlagRegistry.$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.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield org.jruby.FlagRegistry.currentShift:Ljava/util/Map;
2: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield org.jruby.FlagRegistry.registry:Ljava/util/Map;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/FlagRegistry;
public synchronized int newFlag(java.lang.Class);
descriptor: (Ljava/lang/Class;)I
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 1
astore 2
start local 2 1: aconst_null
astore 3
start local 3 2: goto 4
3: StackMap locals: java.lang.Class java.lang.Integer
StackMap stack:
aload 2
invokevirtual java.lang.Class.getSuperclass:()Ljava/lang/Class;
astore 2
4: StackMap locals:
StackMap stack:
aload 2
ifnull 6
5: aload 0
getfield org.jruby.FlagRegistry.currentShift:Ljava/util/Map;
aload 2
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Integer
dup
astore 3
ifnull 3
6: StackMap locals:
StackMap stack:
aload 3
ifnonnull 7
iconst_0
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
astore 3
7: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.FlagRegistry.registry:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.BitSet
astore 4
start local 4 8: aload 4
ifnonnull 11
9: new java.util.BitSet
dup
invokespecial java.util.BitSet.<init>:()V
astore 4
10: aload 0
getfield org.jruby.FlagRegistry.registry:Ljava/util/Map;
aload 1
aload 4
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
11: StackMap locals: java.util.BitSet
StackMap stack:
aload 4
aload 3
invokevirtual java.lang.Integer.intValue:()I
invokevirtual java.util.BitSet.set:(I)V
12: getstatic org.jruby.FlagRegistry.$assertionsDisabled:Z
ifne 13
aload 0
aload 1
aload 3
invokevirtual java.lang.Integer.intValue:()I
invokevirtual org.jruby.FlagRegistry.flagsAreValid:(Ljava/lang/Class;I)Z
ifne 13
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
13: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.FlagRegistry.currentShift:Ljava/util/Map;
aload 1
aload 3
invokevirtual java.lang.Integer.intValue:()I
iconst_1
iadd
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
14: iconst_1
aload 3
dup
invokevirtual java.lang.Integer.intValue:()I
iconst_1
iadd
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
astore 3
invokevirtual java.lang.Integer.intValue:()I
ishl
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/jruby/FlagRegistry;
0 15 1 klass Ljava/lang/Class;
1 15 2 currentKlass Ljava/lang/Class;
2 15 3 shift Ljava/lang/Integer;
8 15 4 flags Ljava/util/BitSet;
MethodParameters:
Name Flags
klass
public synchronized void printFlags();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic java.lang.System.out:Ljava/io/PrintStream;
aload 0
getfield org.jruby.FlagRegistry.registry:Ljava/util/Map;
invokevirtual java.io.PrintStream.println:(Ljava/lang/Object;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/FlagRegistry;
private boolean flagsAreValid(java.lang.Class, int);
descriptor: (Ljava/lang/Class;I)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: new java.util.BitSet
dup
invokespecial java.util.BitSet.<init>:()V
astore 3
start local 3 1: aload 1
astore 4
start local 4 2: goto 9
3: StackMap locals: java.util.BitSet java.lang.Class
StackMap stack:
aload 0
getfield org.jruby.FlagRegistry.registry:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.BitSet
astore 5
start local 5 4: aload 5
ifnull 8
5: aload 5
aload 3
invokevirtual java.util.BitSet.intersects:(Ljava/util/BitSet;)Z
ifeq 7
6: new java.lang.AssertionError
dup
new java.lang.StringBuilder
dup
aload 1
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " uses flag "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " that overlaps with "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
7: StackMap locals: java.util.BitSet
StackMap stack:
aload 3
aload 5
invokevirtual java.util.BitSet.and:(Ljava/util/BitSet;)V
8: StackMap locals:
StackMap stack:
aload 4
invokevirtual java.lang.Class.getSuperclass:()Ljava/lang/Class;
astore 4
end local 5 9: StackMap locals:
StackMap stack:
aload 4
ifnonnull 3
10: iconst_1
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/jruby/FlagRegistry;
0 11 1 klass Ljava/lang/Class;
0 11 2 bitIndex I
1 11 3 gathered Ljava/util/BitSet;
2 11 4 currentKlass Ljava/lang/Class;
4 9 5 flags Ljava/util/BitSet;
MethodParameters:
Name Flags
klass
bitIndex
}
SourceFile: "FlagRegistry.java"