class com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1 implements com.oracle.truffle.api.instrumentation.ExecutionEventListener
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1
super_class: java.lang.Object
{
private int count;
descriptor: I
flags: (0x0002) ACC_PRIVATE
final com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument this$1;
descriptor: Lcom/oracle/truffle/api/instrumentation/test/InstrumentationTest$AsynchronousStacksInstrument;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
private final com.oracle.truffle.api.instrumentation.TruffleInstrument$Env val$env;
descriptor: Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
void <init>(com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument, com.oracle.truffle.api.instrumentation.TruffleInstrument$Env);
descriptor: (Lcom/oracle/truffle/api/instrumentation/test/InstrumentationTest$AsynchronousStacksInstrument;Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 0: aload 0
aload 1
putfield com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1.this$1:Lcom/oracle/truffle/api/instrumentation/test/InstrumentationTest$AsynchronousStacksInstrument;
aload 0
aload 2
putfield com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1.val$env:Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1.count:I
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/api/instrumentation/test/InstrumentationTest$AsynchronousStacksInstrument$1;
MethodParameters:
Name Flags
this$0 final
val$env final
public void onEnter(com.oracle.truffle.api.instrumentation.EventContext, com.oracle.truffle.api.frame.VirtualFrame);
descriptor: (Lcom/oracle/truffle/api/instrumentation/EventContext;Lcom/oracle/truffle/api/frame/VirtualFrame;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=7, args_size=3
start local 0 start local 1 start local 2 0: iconst_1
anewarray com.oracle.truffle.api.CallTarget
astore 3
start local 3 1: iconst_1
anewarray com.oracle.truffle.api.frame.Frame
astore 4
start local 4 2: invokestatic com.oracle.truffle.api.Truffle.getRuntime:()Lcom/oracle/truffle/api/TruffleRuntime;
new com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1$1
dup
aload 0
aload 3
aload 4
invokespecial com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1$1.<init>:(Lcom/oracle/truffle/api/instrumentation/test/InstrumentationTest$AsynchronousStacksInstrument$1;[Lcom/oracle/truffle/api/CallTarget;[Lcom/oracle/truffle/api/frame/Frame;)V
invokeinterface com.oracle.truffle.api.TruffleRuntime.iterateFrames:(Lcom/oracle/truffle/api/frame/FrameInstanceVisitor;)Ljava/lang/Object;
pop
3: aload 3
iconst_0
aaload
aload 4
iconst_0
aaload
invokestatic com.oracle.truffle.api.TruffleStackTrace.getAsynchronousStackTrace:(Lcom/oracle/truffle/api/CallTarget;Lcom/oracle/truffle/api/frame/Frame;)Ljava/util/List;
astore 5
start local 5 4: aload 0
getfield com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1.count:I
tableswitch { // 0 - 2
0: 5
1: 7
2: 12
default: 20
}
5: StackMap locals: com.oracle.truffle.api.CallTarget[] com.oracle.truffle.api.frame.Frame[] java.util.List
StackMap stack:
aload 0
aload 5
invokevirtual com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1.checkNull:(Ljava/lang/Object;)V
6: goto 21
7: StackMap locals:
StackMap stack:
aload 0
iconst_2
aload 5
invokeinterface java.util.List.size:()I
invokevirtual com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1.checkEquals:(II)V
8: aload 5
iconst_1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.TruffleStackTraceElement
astore 6
start local 6 9: aload 0
aload 6
invokevirtual com.oracle.truffle.api.TruffleStackTraceElement.getFrame:()Lcom/oracle/truffle/api/frame/Frame;
invokevirtual com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1.checkNull:(Ljava/lang/Object;)V
10: aload 0
getfield com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1.val$env:Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
ldc 2147483647
invokevirtual com.oracle.truffle.api.instrumentation.TruffleInstrument$Env.setAsynchronousStackDepth:(I)V
11: goto 21
end local 6 12: StackMap locals:
StackMap stack:
aload 0
iconst_5
aload 5
invokeinterface java.util.List.size:()I
invokevirtual com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1.checkEquals:(II)V
13: aload 5
iconst_4
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.TruffleStackTraceElement
astore 6
start local 6 14: aload 6
invokevirtual com.oracle.truffle.api.TruffleStackTraceElement.getTarget:()Lcom/oracle/truffle/api/RootCallTarget;
aload 6
invokevirtual com.oracle.truffle.api.TruffleStackTraceElement.getFrame:()Lcom/oracle/truffle/api/frame/Frame;
invokestatic com.oracle.truffle.api.TruffleStackTrace.getAsynchronousStackTrace:(Lcom/oracle/truffle/api/CallTarget;Lcom/oracle/truffle/api/frame/Frame;)Ljava/util/List;
astore 5
15: aload 0
iconst_2
aload 5
invokeinterface java.util.List.size:()I
invokevirtual com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1.checkEquals:(II)V
16: aload 5
iconst_1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.TruffleStackTraceElement
astore 6
17: aload 0
aload 6
invokevirtual com.oracle.truffle.api.TruffleStackTraceElement.getFrame:()Lcom/oracle/truffle/api/frame/Frame;
invokevirtual com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1.checkNull:(Ljava/lang/Object;)V
18: aload 0
getfield com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1.this$1:Lcom/oracle/truffle/api/instrumentation/test/InstrumentationTest$AsynchronousStacksInstrument;
getfield com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument.instrumentationFinished:Ljava/util/concurrent/CountDownLatch;
invokevirtual java.util.concurrent.CountDownLatch.countDown:()V
19: goto 21
end local 6 20: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1.illegalState:()V
21: StackMap locals:
StackMap stack:
aload 0
dup
getfield com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1.count:I
iconst_1
iadd
putfield com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1.count:I
22: return
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 23 0 this Lcom/oracle/truffle/api/instrumentation/test/InstrumentationTest$AsynchronousStacksInstrument$1;
0 23 1 ctx Lcom/oracle/truffle/api/instrumentation/EventContext;
0 23 2 frame Lcom/oracle/truffle/api/frame/VirtualFrame;
1 23 3 lastCallTarget [Lcom/oracle/truffle/api/CallTarget;
2 23 4 lastFrame [Lcom/oracle/truffle/api/frame/Frame;
4 23 5 asyncStack Ljava/util/List<Lcom/oracle/truffle/api/TruffleStackTraceElement;>;
9 12 6 lastElement Lcom/oracle/truffle/api/TruffleStackTraceElement;
14 20 6 lastElement Lcom/oracle/truffle/api/TruffleStackTraceElement;
MethodParameters:
Name Flags
ctx
frame
private void illegalState();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.IllegalStateException
dup
aload 0
getfield com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1.count:I
invokestatic java.lang.Integer.toString:(I)Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/api/instrumentation/test/InstrumentationTest$AsynchronousStacksInstrument$1;
Exceptions:
throws java.lang.IllegalStateException
RuntimeVisibleAnnotations:
com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
private void checkEquals(int, int);
descriptor: (II)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 1
i2l
iload 2
i2l
invokestatic org.junit.Assert.assertEquals:(JJ)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/api/instrumentation/test/InstrumentationTest$AsynchronousStacksInstrument$1;
0 2 1 expected I
0 2 2 found I
RuntimeVisibleAnnotations:
com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
MethodParameters:
Name Flags
expected
found
private void checkNull(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/api/instrumentation/test/InstrumentationTest$AsynchronousStacksInstrument$1;
0 2 1 obj Ljava/lang/Object;
RuntimeVisibleAnnotations:
com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
MethodParameters:
Name Flags
obj
public void onReturnValue(com.oracle.truffle.api.instrumentation.EventContext, com.oracle.truffle.api.frame.VirtualFrame, java.lang.Object);
descriptor: (Lcom/oracle/truffle/api/instrumentation/EventContext;Lcom/oracle/truffle/api/frame/VirtualFrame;Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/api/instrumentation/test/InstrumentationTest$AsynchronousStacksInstrument$1;
0 1 1 ctx Lcom/oracle/truffle/api/instrumentation/EventContext;
0 1 2 frame Lcom/oracle/truffle/api/frame/VirtualFrame;
0 1 3 result Ljava/lang/Object;
MethodParameters:
Name Flags
ctx
frame
result
public void onReturnExceptional(com.oracle.truffle.api.instrumentation.EventContext, com.oracle.truffle.api.frame.VirtualFrame, java.lang.Throwable);
descriptor: (Lcom/oracle/truffle/api/instrumentation/EventContext;Lcom/oracle/truffle/api/frame/VirtualFrame;Ljava/lang/Throwable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/api/instrumentation/test/InstrumentationTest$AsynchronousStacksInstrument$1;
0 1 1 ctx Lcom/oracle/truffle/api/instrumentation/EventContext;
0 1 2 frame Lcom/oracle/truffle/api/frame/VirtualFrame;
0 1 3 exception Ljava/lang/Throwable;
MethodParameters:
Name Flags
ctx
frame
exception
}
SourceFile: "InstrumentationTest.java"
EnclosingMethod: com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument.onCreate:(Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;)V
NestHost: com.oracle.truffle.api.instrumentation.test.InstrumentationTest
InnerClasses:
public abstract TruffleBoundary = com.oracle.truffle.api.CompilerDirectives$TruffleBoundary of com.oracle.truffle.api.CompilerDirectives
public final Env = com.oracle.truffle.api.instrumentation.TruffleInstrument$Env of com.oracle.truffle.api.instrumentation.TruffleInstrument
public AsynchronousStacksInstrument = com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument of com.oracle.truffle.api.instrumentation.test.InstrumentationTest
com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1
com.oracle.truffle.api.instrumentation.test.InstrumentationTest$AsynchronousStacksInstrument$1$1