public class org.jruby.Ruby$CallTraceFuncHook extends org.jruby.runtime.EventHook
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.Ruby$CallTraceFuncHook
super_class: org.jruby.runtime.EventHook
{
private org.jruby.RubyProc traceFunc;
descriptor: Lorg/jruby/RubyProc;
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.jruby.runtime.EventHook.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/Ruby$CallTraceFuncHook;
public void setTraceFunc(org.jruby.RubyProc);
descriptor: (Lorg/jruby/RubyProc;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.jruby.Ruby$CallTraceFuncHook.traceFunc:Lorg/jruby/RubyProc;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/Ruby$CallTraceFuncHook;
0 2 1 traceFunc Lorg/jruby/RubyProc;
MethodParameters:
Name Flags
traceFunc
public void eventHandler(org.jruby.runtime.ThreadContext, java.lang.String, java.lang.String, int, java.lang.String, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=11, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 0: aload 1
invokevirtual org.jruby.runtime.ThreadContext.isWithinTrace:()Z
ifne 27
1: aload 3
ifnonnull 2
ldc "(ruby)"
astore 3
2: StackMap locals:
StackMap stack:
aload 6
ifnonnull 3
aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
astore 6
3: StackMap locals:
StackMap stack:
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 7
start local 7 4: aload 7
aload 1
invokevirtual org.jruby.runtime.ThreadContext.currentBinding:()Lorg/jruby/runtime/Binding;
invokestatic org.jruby.RubyBinding.newBinding:(Lorg/jruby/Ruby;Lorg/jruby/runtime/Binding;)Lorg/jruby/RubyBinding;
astore 8
start local 8 5: aload 2
dup
astore 9
invokevirtual java.lang.String.hashCode:()I
lookupswitch { // 2
-1781361524: 6
-1369900870: 7
default: 11
}
StackMap locals: org.jruby.Ruby org.jruby.RubyBinding java.lang.String
StackMap stack:
6: aload 9
ldc "c_return"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 8
goto 11
StackMap locals:
StackMap stack:
7: aload 9
ldc "c_call"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 10
goto 11
8: StackMap locals:
StackMap stack:
ldc "c-return"
astore 2
9: goto 11
10: StackMap locals:
StackMap stack:
ldc "c-call"
astore 2
11: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.jruby.runtime.ThreadContext.preTrace:()V
12: aload 0
getfield org.jruby.Ruby$CallTraceFuncHook.traceFunc:Lorg/jruby/RubyProc;
aload 1
bipush 6
anewarray org.jruby.runtime.builtin.IRubyObject
dup
iconst_0
13: aload 7
aload 2
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
aastore
dup
iconst_1
14: aload 7
aload 3
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
aastore
dup
iconst_2
15: aload 7
iload 4
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
aastore
dup
iconst_3
16: aload 5
ifnull 17
aload 7
aload 5
invokevirtual org.jruby.Ruby.newSymbol:(Ljava/lang/String;)Lorg/jruby/RubySymbol;
goto 18
StackMap locals: org.jruby.Ruby$CallTraceFuncHook org.jruby.runtime.ThreadContext java.lang.String java.lang.String int java.lang.String org.jruby.runtime.builtin.IRubyObject org.jruby.Ruby org.jruby.RubyBinding
StackMap stack: org.jruby.RubyProc org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.runtime.builtin.IRubyObject[] int
17: aload 7
invokevirtual org.jruby.Ruby.getNil:()Lorg/jruby/runtime/builtin/IRubyObject;
StackMap locals: org.jruby.Ruby$CallTraceFuncHook org.jruby.runtime.ThreadContext java.lang.String java.lang.String int java.lang.String org.jruby.runtime.builtin.IRubyObject org.jruby.Ruby org.jruby.RubyBinding
StackMap stack: org.jruby.RubyProc org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.runtime.builtin.IRubyObject[] int org.jruby.runtime.builtin.IRubyObject
18: aastore
dup
iconst_4
19: aload 8
aastore
dup
iconst_5
20: aload 6
aastore
21: invokevirtual org.jruby.RubyProc.call:(Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
22: goto 26
StackMap locals:
StackMap stack: java.lang.Throwable
23: astore 10
24: aload 1
invokevirtual org.jruby.runtime.ThreadContext.postTrace:()V
25: aload 10
athrow
26: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.jruby.runtime.ThreadContext.postTrace:()V
end local 8 end local 7 27: StackMap locals:
StackMap stack:
return
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 28 0 this Lorg/jruby/Ruby$CallTraceFuncHook;
0 28 1 context Lorg/jruby/runtime/ThreadContext;
0 28 2 eventName Ljava/lang/String;
0 28 3 file Ljava/lang/String;
0 28 4 line I
0 28 5 name Ljava/lang/String;
0 28 6 type Lorg/jruby/runtime/builtin/IRubyObject;
4 27 7 runtime Lorg/jruby/Ruby;
5 27 8 binding Lorg/jruby/RubyBinding;
Exception table:
from to target type
12 23 23 any
MethodParameters:
Name Flags
context
eventName
file
line
name
type
public boolean isInterestedInEvent(org.jruby.runtime.RubyEvent);
descriptor: (Lorg/jruby/runtime/RubyEvent;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: getstatic org.jruby.Ruby.interest:Ljava/util/EnumSet;
aload 1
invokevirtual java.util.EnumSet.contains:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/Ruby$CallTraceFuncHook;
0 1 1 event Lorg/jruby/runtime/RubyEvent;
MethodParameters:
Name Flags
event
public java.util.EnumSet<org.jruby.runtime.RubyEvent> eventSet();
descriptor: ()Ljava/util/EnumSet;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: getstatic org.jruby.Ruby.interest:Ljava/util/EnumSet;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/Ruby$CallTraceFuncHook;
Signature: ()Ljava/util/EnumSet<Lorg/jruby/runtime/RubyEvent;>;
public java.util.Set eventSet();
descriptor: ()Ljava/util/Set;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual org.jruby.Ruby$CallTraceFuncHook.eventSet:()Ljava/util/EnumSet;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "Ruby.java"
NestHost: org.jruby.Ruby
InnerClasses:
public CallTraceFuncHook = org.jruby.Ruby$CallTraceFuncHook of org.jruby.Ruby