public class org.jruby.ext.coverage.CoverageModule
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.ext.coverage.CoverageModule
super_class: java.lang.Object
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
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/coverage/CoverageModule;
public static org.jruby.runtime.builtin.IRubyObject start(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: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 2
start local 2 1: aload 2
invokevirtual org.jruby.Ruby.getCoverageData:()Lorg/jruby/ext/coverage/CoverageData;
invokevirtual org.jruby.ext.coverage.CoverageData.isCoverageEnabled:()Z
ifne 3
2: aload 2
invokevirtual org.jruby.Ruby.getCoverageData:()Lorg/jruby/ext/coverage/CoverageData;
aload 2
iconst_1
invokevirtual org.jruby.ext.coverage.CoverageData.setCoverageEnabled:(Lorg/jruby/Ruby;Z)V
3: StackMap locals: org.jruby.Ruby
StackMap stack:
aload 0
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 context Lorg/jruby/runtime/ThreadContext;
0 4 1 self Lorg/jruby/runtime/builtin/IRubyObject;
1 4 2 runtime Lorg/jruby/Ruby;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(module = true)
MethodParameters:
Name Flags
context
self
public static org.jruby.runtime.builtin.IRubyObject result(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: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 2
start local 2 1: aload 2
invokevirtual org.jruby.Ruby.getCoverageData:()Lorg/jruby/ext/coverage/CoverageData;
invokevirtual org.jruby.ext.coverage.CoverageData.isCoverageEnabled:()Z
ifne 3
2: aload 2
ldc "coverage measurement is not enabled"
invokevirtual org.jruby.Ruby.newRuntimeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
3: StackMap locals: org.jruby.Ruby
StackMap stack:
aload 0
aload 2
aload 2
invokevirtual org.jruby.Ruby.getCoverageData:()Lorg/jruby/ext/coverage/CoverageData;
invokevirtual org.jruby.ext.coverage.CoverageData.getCoverage:()Ljava/util/Map;
invokestatic org.jruby.ext.coverage.CoverageModule.convertCoverageToRuby:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/Ruby;Ljava/util/Map;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 3
start local 3 4: aload 2
invokevirtual org.jruby.Ruby.getCoverageData:()Lorg/jruby/ext/coverage/CoverageData;
aload 2
invokevirtual org.jruby.ext.coverage.CoverageData.resetCoverage:(Lorg/jruby/Ruby;)Ljava/util/Map;
pop
5: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 context Lorg/jruby/runtime/ThreadContext;
0 6 1 self Lorg/jruby/runtime/builtin/IRubyObject;
1 6 2 runtime Lorg/jruby/Ruby;
4 6 3 result Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(module = true)
MethodParameters:
Name Flags
context
self
public static org.jruby.runtime.builtin.IRubyObject peek_result(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: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 2
start local 2 1: aload 2
invokevirtual org.jruby.Ruby.getCoverageData:()Lorg/jruby/ext/coverage/CoverageData;
invokevirtual org.jruby.ext.coverage.CoverageData.isCoverageEnabled:()Z
ifne 3
2: aload 2
ldc "coverage measurement is not enabled"
invokevirtual org.jruby.Ruby.newRuntimeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
3: StackMap locals: org.jruby.Ruby
StackMap stack:
aload 0
aload 2
aload 2
invokevirtual org.jruby.Ruby.getCoverageData:()Lorg/jruby/ext/coverage/CoverageData;
invokevirtual org.jruby.ext.coverage.CoverageData.getCoverage:()Ljava/util/Map;
invokestatic org.jruby.ext.coverage.CoverageModule.convertCoverageToRuby:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/Ruby;Ljava/util/Map;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 context Lorg/jruby/runtime/ThreadContext;
0 4 1 self Lorg/jruby/runtime/builtin/IRubyObject;
1 4 2 runtime Lorg/jruby/Ruby;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(module = true)
MethodParameters:
Name Flags
context
self
public static org.jruby.runtime.builtin.IRubyObject running_p(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: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, 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.getCoverageData:()Lorg/jruby/ext/coverage/CoverageData;
invokevirtual org.jruby.ext.coverage.CoverageData.isCoverageEnabled:()Z
ifeq 1
aload 0
getfield org.jruby.runtime.ThreadContext.tru:Lorg/jruby/RubyBoolean;
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield org.jruby.runtime.ThreadContext.fals:Lorg/jruby/RubyBoolean;
StackMap locals:
StackMap stack: org.jruby.RubyBoolean
2: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 context Lorg/jruby/runtime/ThreadContext;
0 3 1 self Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"running?"}, module = true)
MethodParameters:
Name Flags
context
self
private static org.jruby.runtime.builtin.IRubyObject convertCoverageToRuby(org.jruby.runtime.ThreadContext, org.jruby.Ruby, java.util.Map<java.lang.String, int[]>);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/Ruby;Ljava/util/Map;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=9, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic org.jruby.RubyHash.newHash:(Lorg/jruby/Ruby;)Lorg/jruby/RubyHash;
astore 3
start local 3 1: aload 2
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 5
goto 14
StackMap locals: org.jruby.runtime.ThreadContext org.jruby.Ruby java.util.Map org.jruby.RubyHash top java.util.Iterator
StackMap stack:
2: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 4
start local 4 3: aload 4
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
ldc ""
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 4
goto 14
4: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.Ruby java.util.Map org.jruby.RubyHash java.util.Map$Entry java.util.Iterator
StackMap stack:
aload 1
aload 4
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast int[]
arraylength
invokestatic org.jruby.RubyArray.newArray:(Lorg/jruby/Ruby;I)Lorg/jruby/RubyArray;
astore 6
start local 6 5: iconst_0
istore 7
start local 7 6: goto 12
7: StackMap locals: org.jruby.RubyArray int
StackMap stack:
aload 4
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast int[]
iload 7
iaload
istore 8
start local 8 8: aload 6
iload 7
i2l
iload 8
iconst_m1
if_icmpne 9
aload 0
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
goto 10
StackMap locals: org.jruby.runtime.ThreadContext org.jruby.Ruby java.util.Map org.jruby.RubyHash java.util.Map$Entry java.util.Iterator org.jruby.RubyArray int int
StackMap stack: org.jruby.RubyArray long
9: aload 1
iload 8
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
StackMap locals: org.jruby.runtime.ThreadContext org.jruby.Ruby java.util.Map org.jruby.RubyHash java.util.Map$Entry java.util.Iterator org.jruby.RubyArray int int
StackMap stack: org.jruby.RubyArray long org.jruby.runtime.builtin.IRubyObject
10: invokevirtual org.jruby.RubyArray.store:(JLorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
end local 8 11: iinc 7 1
StackMap locals:
StackMap stack:
12: iload 7
aload 4
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast int[]
arraylength
if_icmplt 7
end local 7 13: aload 3
aload 1
aload 1
aload 4
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
invokestatic org.jruby.RubyString.newString:(Lorg/jruby/Ruby;Ljava/lang/String;)Lorg/jruby/RubyString;
aload 6
invokevirtual org.jruby.RubyHash.fastASetCheckString:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)V
end local 6 end local 4 14: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.Ruby java.util.Map org.jruby.RubyHash top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
15: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 context Lorg/jruby/runtime/ThreadContext;
0 16 1 runtime Lorg/jruby/Ruby;
0 16 2 coverage Ljava/util/Map<Ljava/lang/String;[I>;
1 16 3 covHash Lorg/jruby/RubyHash;
3 14 4 entry Ljava/util/Map$Entry<Ljava/lang/String;[I>;
5 14 6 ary Lorg/jruby/RubyArray;
6 13 7 i I
8 11 8 integer I
Signature: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/Ruby;Ljava/util/Map<Ljava/lang/String;[I>;)Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
context
runtime
coverage
}
SourceFile: "CoverageModule.java"
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map