public class com.oracle.truffle.api.debug.test.DebuggerContextsTest extends com.oracle.truffle.api.debug.test.AbstractDebugTest
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.oracle.truffle.api.debug.test.DebuggerContextsTest
super_class: com.oracle.truffle.api.debug.test.AbstractDebugTest
{
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 Lcom/oracle/truffle/api/debug/test/DebuggerContextsTest;
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 com.oracle.truffle.api.debug.test.DebuggerContextsTest.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial com.oracle.truffle.api.debug.test.AbstractDebugTest.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/api/debug/test/DebuggerContextsTest;
public void testSingleContext();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=7, args_size=1
start local 0 0: aload 0
ldc "STATEMENT()"
invokevirtual com.oracle.truffle.api.debug.test.DebuggerContextsTest.testSource:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
astore 1
start local 1 1: new com.oracle.truffle.api.debug.test.DebuggerContextsTest$TestContextsListener
dup
invokespecial com.oracle.truffle.api.debug.test.DebuggerContextsTest$TestContextsListener.<init>:()V
astore 2
start local 2 2: aload 2
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$TestContextsListener.events:Ljava/util/List;
astore 3
start local 3 3: aconst_null
astore 4
aconst_null
astore 5
4: aload 0
invokevirtual com.oracle.truffle.api.debug.test.DebuggerContextsTest.startSession:()Lcom/oracle/truffle/api/debug/DebuggerSession;
astore 6
start local 6 5: aload 6
invokevirtual com.oracle.truffle.api.debug.DebuggerSession.suspendNextExecution:()V
6: aload 6
aload 2
iconst_0
invokevirtual com.oracle.truffle.api.debug.DebuggerSession.setContextsListener:(Lcom/oracle/truffle/api/debug/DebugContextsListener;Z)V
7: aload 0
aload 1
invokevirtual com.oracle.truffle.api.debug.test.DebuggerContextsTest.startEval:(Lorg/graalvm/polyglot/Source;)V
8: aload 0
aload 3
invokedynamic onSuspend(Ljava/util/List;)Lcom/oracle/truffle/api/debug/SuspendedCallback;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Lcom/oracle/truffle/api/debug/SuspendedEvent;)V
com/oracle/truffle/api/debug/test/DebuggerContextsTest.lambda$0(Ljava/util/List;Lcom/oracle/truffle/api/debug/SuspendedEvent;)V (6)
(Lcom/oracle/truffle/api/debug/SuspendedEvent;)V
invokevirtual com.oracle.truffle.api.debug.test.DebuggerContextsTest.expectSuspended:(Lcom/oracle/truffle/api/debug/SuspendedCallback;)V
9: aload 0
invokevirtual com.oracle.truffle.api.debug.test.DebuggerContextsTest.expectDone:()Ljava/lang/String;
pop
10: aload 0
invokevirtual com.oracle.truffle.api.debug.test.DebuggerContextsTest.closeEngine:()V
11: ldc 5
aload 3
invokeinterface java.util.List.size:()I
i2l
invokestatic org.junit.Assert.assertEquals:(JJ)V
12: aload 3
iconst_2
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.languageFinalized:Z
invokestatic org.junit.Assert.assertTrue:(Z)V
13: ldc "instrumentation-test-language"
aload 3
iconst_2
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.language:Lcom/oracle/truffle/api/nodes/LanguageInfo;
invokevirtual com.oracle.truffle.api.nodes.LanguageInfo.getId:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
14: aload 3
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.context:Lcom/oracle/truffle/api/debug/DebugContext;
aload 3
iconst_2
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.context:Lcom/oracle/truffle/api/debug/DebugContext;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
15: aload 3
iconst_3
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.created:Z
invokestatic org.junit.Assert.assertFalse:(Z)V
16: ldc "instrumentation-test-language"
aload 3
iconst_3
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.language:Lcom/oracle/truffle/api/nodes/LanguageInfo;
invokevirtual com.oracle.truffle.api.nodes.LanguageInfo.getId:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
17: aload 3
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.context:Lcom/oracle/truffle/api/debug/DebugContext;
aload 3
iconst_3
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.context:Lcom/oracle/truffle/api/debug/DebugContext;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
18: aload 3
iconst_4
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.created:Z
invokestatic org.junit.Assert.assertFalse:(Z)V
19: aload 3
iconst_4
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.language:Lcom/oracle/truffle/api/nodes/LanguageInfo;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
20: aload 3
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.context:Lcom/oracle/truffle/api/debug/DebugContext;
aload 3
iconst_4
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.context:Lcom/oracle/truffle/api/debug/DebugContext;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
21: aload 6
ifnull 27
aload 6
invokevirtual com.oracle.truffle.api.debug.DebuggerSession.close:()V
goto 27
StackMap locals: com.oracle.truffle.api.debug.test.DebuggerContextsTest org.graalvm.polyglot.Source com.oracle.truffle.api.debug.test.DebuggerContextsTest$TestContextsListener java.util.List java.lang.Throwable java.lang.Throwable com.oracle.truffle.api.debug.DebuggerSession
StackMap stack: java.lang.Throwable
22: astore 4
aload 6
ifnull 23
aload 6
invokevirtual com.oracle.truffle.api.debug.DebuggerSession.close:()V
end local 6 StackMap locals:
StackMap stack:
23: aload 4
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
24: astore 5
aload 4
ifnonnull 25
aload 5
astore 4
goto 26
StackMap locals:
StackMap stack:
25: aload 4
aload 5
if_acmpeq 26
aload 4
aload 5
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
26: aload 4
athrow
27: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.List.clear:()V
28: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Lcom/oracle/truffle/api/debug/test/DebuggerContextsTest;
1 29 1 source Lorg/graalvm/polyglot/Source;
2 29 2 contextsListener Lcom/oracle/truffle/api/debug/test/DebuggerContextsTest$TestContextsListener;
3 29 3 events Ljava/util/List<Lcom/oracle/truffle/api/debug/test/DebuggerContextsTest$ContextEvent;>;
5 23 6 session Lcom/oracle/truffle/api/debug/DebuggerSession;
Exception table:
from to target type
5 21 22 any
4 24 24 any
RuntimeVisibleAnnotations:
org.junit.Test()
public void testInnerContext();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=7, args_size=1
start local 0 0: aload 0
ldc "ROOT(STATEMENT(), CONTEXT(STATEMENT()))"
invokevirtual com.oracle.truffle.api.debug.test.DebuggerContextsTest.testSource:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
astore 1
start local 1 1: new com.oracle.truffle.api.debug.test.DebuggerContextsTest$TestContextsListener
dup
invokespecial com.oracle.truffle.api.debug.test.DebuggerContextsTest$TestContextsListener.<init>:()V
astore 2
start local 2 2: aload 2
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$TestContextsListener.events:Ljava/util/List;
astore 3
start local 3 3: aconst_null
astore 4
aconst_null
astore 5
4: aload 0
invokevirtual com.oracle.truffle.api.debug.test.DebuggerContextsTest.startSession:()Lcom/oracle/truffle/api/debug/DebuggerSession;
astore 6
start local 6 5: aload 6
aload 2
iconst_0
invokevirtual com.oracle.truffle.api.debug.DebuggerSession.setContextsListener:(Lcom/oracle/truffle/api/debug/DebugContextsListener;Z)V
6: aload 0
aload 1
invokevirtual com.oracle.truffle.api.debug.test.DebuggerContextsTest.startEval:(Lorg/graalvm/polyglot/Source;)V
7: aload 0
invokevirtual com.oracle.truffle.api.debug.test.DebuggerContextsTest.expectDone:()Ljava/lang/String;
pop
8: ldc 8
aload 3
invokeinterface java.util.List.size:()I
i2l
invokestatic org.junit.Assert.assertEquals:(JJ)V
9: aload 3
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.created:Z
invokestatic org.junit.Assert.assertTrue:(Z)V
10: aload 3
iconst_1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.languageInitialized:Z
invokestatic org.junit.Assert.assertTrue:(Z)V
11: aload 3
iconst_1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.context:Lcom/oracle/truffle/api/debug/DebugContext;
aload 3
iconst_2
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.context:Lcom/oracle/truffle/api/debug/DebugContext;
invokestatic org.junit.Assert.assertNotEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
12: aload 3
iconst_1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.context:Lcom/oracle/truffle/api/debug/DebugContext;
aload 3
iconst_2
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.context:Lcom/oracle/truffle/api/debug/DebugContext;
invokevirtual com.oracle.truffle.api.debug.DebugContext.getParent:()Lcom/oracle/truffle/api/debug/DebugContext;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
13: aload 3
iconst_2
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.created:Z
invokestatic org.junit.Assert.assertTrue:(Z)V
14: aload 3
iconst_2
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.language:Lcom/oracle/truffle/api/nodes/LanguageInfo;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
15: aload 3
iconst_3
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.created:Z
invokestatic org.junit.Assert.assertTrue:(Z)V
16: aload 3
iconst_3
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.language:Lcom/oracle/truffle/api/nodes/LanguageInfo;
invokestatic org.junit.Assert.assertNotNull:(Ljava/lang/Object;)V
17: aload 3
iconst_4
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.languageInitialized:Z
invokestatic org.junit.Assert.assertTrue:(Z)V
18: aload 3
iconst_5
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.languageFinalized:Z
invokestatic org.junit.Assert.assertTrue:(Z)V
19: aload 3
bipush 6
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.created:Z
invokestatic org.junit.Assert.assertFalse:(Z)V
20: ldc "instrumentation-test-language"
aload 3
bipush 6
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.language:Lcom/oracle/truffle/api/nodes/LanguageInfo;
invokevirtual com.oracle.truffle.api.nodes.LanguageInfo.getId:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
21: aload 3
bipush 7
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.created:Z
invokestatic org.junit.Assert.assertFalse:(Z)V
22: aload 3
bipush 7
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.language:Lcom/oracle/truffle/api/nodes/LanguageInfo;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
23: aload 3
iconst_2
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.context:Lcom/oracle/truffle/api/debug/DebugContext;
aload 3
bipush 7
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.context:Lcom/oracle/truffle/api/debug/DebugContext;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
24: aload 0
invokevirtual com.oracle.truffle.api.debug.test.DebuggerContextsTest.closeEngine:()V
25: aload 6
ifnull 31
aload 6
invokevirtual com.oracle.truffle.api.debug.DebuggerSession.close:()V
goto 31
StackMap locals: com.oracle.truffle.api.debug.test.DebuggerContextsTest org.graalvm.polyglot.Source com.oracle.truffle.api.debug.test.DebuggerContextsTest$TestContextsListener java.util.List java.lang.Throwable java.lang.Throwable com.oracle.truffle.api.debug.DebuggerSession
StackMap stack: java.lang.Throwable
26: astore 4
aload 6
ifnull 27
aload 6
invokevirtual com.oracle.truffle.api.debug.DebuggerSession.close:()V
end local 6 StackMap locals:
StackMap stack:
27: aload 4
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
28: astore 5
aload 4
ifnonnull 29
aload 5
astore 4
goto 30
StackMap locals:
StackMap stack:
29: aload 4
aload 5
if_acmpeq 30
aload 4
aload 5
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
30: aload 4
athrow
31: StackMap locals:
StackMap stack:
ldc 11
aload 3
invokeinterface java.util.List.size:()I
i2l
invokestatic org.junit.Assert.assertEquals:(JJ)V
32: aload 3
bipush 8
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.languageFinalized:Z
invokestatic org.junit.Assert.assertTrue:(Z)V
33: aload 3
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.context:Lcom/oracle/truffle/api/debug/DebugContext;
aload 3
bipush 8
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.context:Lcom/oracle/truffle/api/debug/DebugContext;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
34: aload 3
bipush 9
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.created:Z
invokestatic org.junit.Assert.assertFalse:(Z)V
35: ldc "instrumentation-test-language"
aload 3
bipush 9
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.language:Lcom/oracle/truffle/api/nodes/LanguageInfo;
invokevirtual com.oracle.truffle.api.nodes.LanguageInfo.getId:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
36: aload 3
bipush 10
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.created:Z
invokestatic org.junit.Assert.assertFalse:(Z)V
37: aload 3
bipush 10
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.language:Lcom/oracle/truffle/api/nodes/LanguageInfo;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
38: aload 3
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.context:Lcom/oracle/truffle/api/debug/DebugContext;
aload 3
bipush 10
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.context:Lcom/oracle/truffle/api/debug/DebugContext;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
39: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 40 0 this Lcom/oracle/truffle/api/debug/test/DebuggerContextsTest;
1 40 1 source Lorg/graalvm/polyglot/Source;
2 40 2 contextsListener Lcom/oracle/truffle/api/debug/test/DebuggerContextsTest$TestContextsListener;
3 40 3 events Ljava/util/List<Lcom/oracle/truffle/api/debug/test/DebuggerContextsTest$ContextEvent;>;
5 27 6 session Lcom/oracle/truffle/api/debug/DebuggerSession;
Exception table:
from to target type
5 25 26 any
4 28 28 any
RuntimeVisibleAnnotations:
org.junit.Test()
public void testMultipleContexts();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=14, args_size=1
start local 0 0: ldc "instrumentation-test-language"
ldc "STATEMENT()"
invokestatic org.graalvm.polyglot.Source.create:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Source;
astore 1
start local 1 1: invokestatic org.graalvm.polyglot.Engine.create:()Lorg/graalvm/polyglot/Engine;
astore 2
start local 2 2: new com.oracle.truffle.api.debug.test.DebuggerContextsTest$TestContextsListener
dup
invokespecial com.oracle.truffle.api.debug.test.DebuggerContextsTest$TestContextsListener.<init>:()V
astore 3
start local 3 3: aload 3
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$TestContextsListener.events:Ljava/util/List;
astore 4
start local 4 4: iconst_5
istore 5
start local 5 5: aload 2
invokevirtual org.graalvm.polyglot.Engine.getInstruments:()Ljava/util/Map;
ldc "debugger"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.graalvm.polyglot.Instrument
ldc Lcom/oracle/truffle/api/debug/Debugger;
invokevirtual org.graalvm.polyglot.Instrument.lookup:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.Debugger
astore 6
start local 6 6: aconst_null
astore 7
aconst_null
astore 8
7: aload 6
aconst_null
invokevirtual com.oracle.truffle.api.debug.Debugger.startSession:(Lcom/oracle/truffle/api/debug/SuspendedCallback;)Lcom/oracle/truffle/api/debug/DebuggerSession;
astore 9
start local 9 8: aload 9
aload 3
iconst_0
invokevirtual com.oracle.truffle.api.debug.DebuggerSession.setContextsListener:(Lcom/oracle/truffle/api/debug/DebugContextsListener;Z)V
9: iconst_0
istore 10
start local 10 10: goto 23
11: StackMap locals: com.oracle.truffle.api.debug.test.DebuggerContextsTest org.graalvm.polyglot.Source org.graalvm.polyglot.Engine com.oracle.truffle.api.debug.test.DebuggerContextsTest$TestContextsListener java.util.List int com.oracle.truffle.api.debug.Debugger java.lang.Throwable java.lang.Throwable com.oracle.truffle.api.debug.DebuggerSession int
StackMap stack:
aconst_null
astore 11
aconst_null
astore 12
12: iconst_0
anewarray java.lang.String
invokestatic org.graalvm.polyglot.Context.newBuilder:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
aload 2
invokevirtual org.graalvm.polyglot.Context$Builder.engine:(Lorg/graalvm/polyglot/Engine;)Lorg/graalvm/polyglot/Context$Builder;
invokevirtual org.graalvm.polyglot.Context$Builder.build:()Lorg/graalvm/polyglot/Context;
astore 13
start local 13 13: bipush 6
iload 10
imul
iconst_1
iadd
i2l
aload 4
invokeinterface java.util.List.size:()I
i2l
invokestatic org.junit.Assert.assertEquals:(JJ)V
14: aload 13
aload 1
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
pop
15: aload 13
ifnull 21
aload 13
invokevirtual org.graalvm.polyglot.Context.close:()V
goto 21
StackMap locals: com.oracle.truffle.api.debug.test.DebuggerContextsTest org.graalvm.polyglot.Source org.graalvm.polyglot.Engine com.oracle.truffle.api.debug.test.DebuggerContextsTest$TestContextsListener java.util.List int com.oracle.truffle.api.debug.Debugger java.lang.Throwable java.lang.Throwable com.oracle.truffle.api.debug.DebuggerSession int java.lang.Throwable java.lang.Throwable org.graalvm.polyglot.Context
StackMap stack: java.lang.Throwable
16: astore 11
aload 13
ifnull 17
aload 13
invokevirtual org.graalvm.polyglot.Context.close:()V
end local 13 StackMap locals:
StackMap stack:
17: aload 11
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
18: astore 12
aload 11
ifnonnull 19
aload 12
astore 11
goto 20
StackMap locals:
StackMap stack:
19: aload 11
aload 12
if_acmpeq 20
aload 11
aload 12
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
20: aload 11
athrow
21: StackMap locals:
StackMap stack:
bipush 6
iload 10
imul
bipush 6
iadd
i2l
aload 4
invokeinterface java.util.List.size:()I
i2l
invokestatic org.junit.Assert.assertEquals:(JJ)V
22: iinc 10 1
StackMap locals:
StackMap stack:
23: iload 10
iload 5
if_icmplt 11
end local 10 24: bipush 6
iload 5
imul
i2l
aload 4
invokeinterface java.util.List.size:()I
i2l
invokestatic org.junit.Assert.assertEquals:(JJ)V
25: aconst_null
astore 10
start local 10 26: iconst_0
istore 11
start local 11 27: goto 41
28: StackMap locals: com.oracle.truffle.api.debug.test.DebuggerContextsTest org.graalvm.polyglot.Source org.graalvm.polyglot.Engine com.oracle.truffle.api.debug.test.DebuggerContextsTest$TestContextsListener java.util.List int com.oracle.truffle.api.debug.Debugger java.lang.Throwable java.lang.Throwable com.oracle.truffle.api.debug.DebuggerSession com.oracle.truffle.api.debug.DebugContext int
StackMap stack:
bipush 6
iload 11
imul
istore 12
start local 12 29: aload 4
iload 12
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.created:Z
invokestatic org.junit.Assert.assertTrue:(Z)V
30: aload 4
iload 12
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.language:Lcom/oracle/truffle/api/nodes/LanguageInfo;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
31: aload 10
aload 4
iload 12
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.context:Lcom/oracle/truffle/api/debug/DebugContext;
invokestatic org.junit.Assert.assertNotEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
32: aload 4
iload 12
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.context:Lcom/oracle/truffle/api/debug/DebugContext;
astore 10
33: aload 4
iload 12
iconst_1
iadd
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.created:Z
invokestatic org.junit.Assert.assertTrue:(Z)V
34: aload 4
iload 12
iconst_1
iadd
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.language:Lcom/oracle/truffle/api/nodes/LanguageInfo;
invokestatic org.junit.Assert.assertNotNull:(Ljava/lang/Object;)V
35: aload 10
aload 4
iload 12
iconst_1
iadd
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.context:Lcom/oracle/truffle/api/debug/DebugContext;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
36: aload 4
iload 12
iconst_2
iadd
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.languageInitialized:Z
invokestatic org.junit.Assert.assertTrue:(Z)V
37: aload 4
iload 12
iconst_3
iadd
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.languageFinalized:Z
invokestatic org.junit.Assert.assertTrue:(Z)V
38: aload 4
iload 12
iconst_4
iadd
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.language:Lcom/oracle/truffle/api/nodes/LanguageInfo;
invokestatic org.junit.Assert.assertNotNull:(Ljava/lang/Object;)V
39: aload 4
iload 12
iconst_5
iadd
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.language:Lcom/oracle/truffle/api/nodes/LanguageInfo;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
end local 12 40: iinc 11 1
StackMap locals:
StackMap stack:
41: iload 11
iload 5
if_icmplt 28
end local 11 42: aload 2
invokevirtual org.graalvm.polyglot.Engine.close:()V
end local 10 43: aload 9
ifnull 49
aload 9
invokevirtual com.oracle.truffle.api.debug.DebuggerSession.close:()V
goto 49
StackMap locals: com.oracle.truffle.api.debug.test.DebuggerContextsTest org.graalvm.polyglot.Source org.graalvm.polyglot.Engine com.oracle.truffle.api.debug.test.DebuggerContextsTest$TestContextsListener java.util.List int com.oracle.truffle.api.debug.Debugger java.lang.Throwable java.lang.Throwable com.oracle.truffle.api.debug.DebuggerSession
StackMap stack: java.lang.Throwable
44: astore 7
aload 9
ifnull 45
aload 9
invokevirtual com.oracle.truffle.api.debug.DebuggerSession.close:()V
end local 9 StackMap locals:
StackMap stack:
45: aload 7
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
46: astore 8
aload 7
ifnonnull 47
aload 8
astore 7
goto 48
StackMap locals:
StackMap stack:
47: aload 7
aload 8
if_acmpeq 48
aload 7
aload 8
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
48: aload 7
athrow
49: StackMap locals:
StackMap stack:
bipush 6
iload 5
imul
i2l
aload 4
invokeinterface java.util.List.size:()I
i2l
invokestatic org.junit.Assert.assertEquals:(JJ)V
50: 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 51 0 this Lcom/oracle/truffle/api/debug/test/DebuggerContextsTest;
1 51 1 source Lorg/graalvm/polyglot/Source;
2 51 2 engine Lorg/graalvm/polyglot/Engine;
3 51 3 contextsListener Lcom/oracle/truffle/api/debug/test/DebuggerContextsTest$TestContextsListener;
4 51 4 events Ljava/util/List<Lcom/oracle/truffle/api/debug/test/DebuggerContextsTest$ContextEvent;>;
5 51 5 numContexts I
6 51 6 debugger Lcom/oracle/truffle/api/debug/Debugger;
8 45 9 session Lcom/oracle/truffle/api/debug/DebuggerSession;
10 24 10 i I
13 17 13 context Lorg/graalvm/polyglot/Context;
26 43 10 lastContext Lcom/oracle/truffle/api/debug/DebugContext;
27 42 11 i I
29 40 12 ci I
Exception table:
from to target type
13 15 16 any
12 18 18 any
8 43 44 any
7 46 46 any
RuntimeVisibleAnnotations:
org.junit.Test()
public void testGetActiveContexts();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=14, args_size=1
start local 0 0: iconst_1
anewarray com.oracle.truffle.api.debug.DebuggerSession
astore 1
start local 1 1: aconst_null
astore 2
aconst_null
astore 3
2: invokestatic org.graalvm.polyglot.Engine.create:()Lorg/graalvm/polyglot/Engine;
astore 4
start local 4 3: new com.oracle.truffle.api.debug.test.DebuggerContextsTest$TestContextsListener
dup
invokespecial com.oracle.truffle.api.debug.test.DebuggerContextsTest$TestContextsListener.<init>:()V
astore 5
start local 5 4: aload 5
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$TestContextsListener.events:Ljava/util/List;
astore 6
start local 6 5: aload 4
invokevirtual org.graalvm.polyglot.Engine.getInstruments:()Ljava/util/Map;
ldc "debugger"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.graalvm.polyglot.Instrument
ldc Lcom/oracle/truffle/api/debug/Debugger;
invokevirtual org.graalvm.polyglot.Instrument.lookup:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.Debugger
astore 7
start local 7 6: aconst_null
astore 8
aconst_null
astore 9
7: aload 7
new com.oracle.truffle.api.debug.test.DebuggerContextsTest$1
dup
aload 0
aload 1
aload 5
aload 6
invokespecial com.oracle.truffle.api.debug.test.DebuggerContextsTest$1.<init>:(Lcom/oracle/truffle/api/debug/test/DebuggerContextsTest;[Lcom/oracle/truffle/api/debug/DebuggerSession;Lcom/oracle/truffle/api/debug/test/DebuggerContextsTest$TestContextsListener;Ljava/util/List;)V
invokevirtual com.oracle.truffle.api.debug.Debugger.startSession:(Lcom/oracle/truffle/api/debug/SuspendedCallback;)Lcom/oracle/truffle/api/debug/DebuggerSession;
astore 10
start local 10 8: aload 10
aload 5
iconst_1
invokevirtual com.oracle.truffle.api.debug.DebuggerSession.setContextsListener:(Lcom/oracle/truffle/api/debug/DebugContextsListener;Z)V
9: aconst_null
astore 11
aconst_null
astore 12
10: iconst_0
anewarray java.lang.String
invokestatic org.graalvm.polyglot.Context.newBuilder:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
aload 4
invokevirtual org.graalvm.polyglot.Context$Builder.engine:(Lorg/graalvm/polyglot/Engine;)Lorg/graalvm/polyglot/Context$Builder;
invokevirtual org.graalvm.polyglot.Context$Builder.build:()Lorg/graalvm/polyglot/Context;
astore 13
start local 13 11: aload 13
ldc "instrumentation-test-language"
ldc "STATEMENT()"
invokestatic org.graalvm.polyglot.Source.create:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Source;
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
pop
12: ldc 3
aload 6
invokeinterface java.util.List.size:()I
i2l
invokestatic org.junit.Assert.assertEquals:(JJ)V
13: aload 6
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.created:Z
invokestatic org.junit.Assert.assertTrue:(Z)V
14: aload 6
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.context:Lcom/oracle/truffle/api/debug/DebugContext;
invokestatic org.junit.Assert.assertNotNull:(Ljava/lang/Object;)V
15: aload 6
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.language:Lcom/oracle/truffle/api/nodes/LanguageInfo;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
16: aload 6
iconst_1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.created:Z
invokestatic org.junit.Assert.assertTrue:(Z)V
17: aload 6
iconst_1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.language:Lcom/oracle/truffle/api/nodes/LanguageInfo;
invokestatic org.junit.Assert.assertNotNull:(Ljava/lang/Object;)V
18: aload 6
iconst_2
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.languageInitialized:Z
invokestatic org.junit.Assert.assertTrue:(Z)V
19: aload 13
ifnull 25
aload 13
invokevirtual org.graalvm.polyglot.Context.close:()V
goto 25
StackMap locals: com.oracle.truffle.api.debug.test.DebuggerContextsTest com.oracle.truffle.api.debug.DebuggerSession[] java.lang.Throwable java.lang.Throwable org.graalvm.polyglot.Engine com.oracle.truffle.api.debug.test.DebuggerContextsTest$TestContextsListener java.util.List com.oracle.truffle.api.debug.Debugger java.lang.Throwable java.lang.Throwable com.oracle.truffle.api.debug.DebuggerSession java.lang.Throwable java.lang.Throwable org.graalvm.polyglot.Context
StackMap stack: java.lang.Throwable
20: astore 11
aload 13
ifnull 21
aload 13
invokevirtual org.graalvm.polyglot.Context.close:()V
end local 13 StackMap locals:
StackMap stack:
21: aload 11
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
22: astore 12
aload 11
ifnonnull 23
aload 12
astore 11
goto 24
StackMap locals:
StackMap stack:
23: aload 11
aload 12
if_acmpeq 24
aload 11
aload 12
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
24: aload 11
athrow
25: StackMap locals:
StackMap stack:
ldc 6
aload 6
invokeinterface java.util.List.size:()I
i2l
invokestatic org.junit.Assert.assertEquals:(JJ)V
26: aload 10
aconst_null
iconst_1
invokevirtual com.oracle.truffle.api.debug.DebuggerSession.setContextsListener:(Lcom/oracle/truffle/api/debug/DebugContextsListener;Z)V
27: aload 6
invokeinterface java.util.List.clear:()V
28: aconst_null
astore 11
aconst_null
astore 12
29: iconst_0
anewarray java.lang.String
invokestatic org.graalvm.polyglot.Context.newBuilder:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
aload 4
invokevirtual org.graalvm.polyglot.Context$Builder.engine:(Lorg/graalvm/polyglot/Engine;)Lorg/graalvm/polyglot/Context$Builder;
invokevirtual org.graalvm.polyglot.Context$Builder.build:()Lorg/graalvm/polyglot/Context;
astore 13
start local 13 30: aload 13
ldc "instrumentation-test-language"
ldc "STATEMENT()"
invokestatic org.graalvm.polyglot.Source.create:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Source;
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
pop
31: aload 13
ldc "instrumentation-test-language"
ldc "CONTEXT(STATEMENT())"
invokestatic org.graalvm.polyglot.Source.create:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Source;
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
pop
32: aload 13
ifnull 38
aload 13
invokevirtual org.graalvm.polyglot.Context.close:()V
goto 38
StackMap locals: com.oracle.truffle.api.debug.test.DebuggerContextsTest com.oracle.truffle.api.debug.DebuggerSession[] java.lang.Throwable java.lang.Throwable org.graalvm.polyglot.Engine com.oracle.truffle.api.debug.test.DebuggerContextsTest$TestContextsListener java.util.List com.oracle.truffle.api.debug.Debugger java.lang.Throwable java.lang.Throwable com.oracle.truffle.api.debug.DebuggerSession java.lang.Throwable java.lang.Throwable org.graalvm.polyglot.Context
StackMap stack: java.lang.Throwable
33: astore 11
aload 13
ifnull 34
aload 13
invokevirtual org.graalvm.polyglot.Context.close:()V
end local 13 StackMap locals:
StackMap stack:
34: aload 11
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
35: astore 12
aload 11
ifnonnull 36
aload 12
astore 11
goto 37
StackMap locals:
StackMap stack:
36: aload 11
aload 12
if_acmpeq 37
aload 11
aload 12
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
37: aload 11
athrow
38: StackMap locals:
StackMap stack:
lconst_0
aload 6
invokeinterface java.util.List.size:()I
i2l
invokestatic org.junit.Assert.assertEquals:(JJ)V
39: aload 1
iconst_0
aload 10
aastore
40: aload 10
invokevirtual com.oracle.truffle.api.debug.DebuggerSession.suspendNextExecution:()V
41: iconst_0
anewarray java.lang.String
invokestatic org.graalvm.polyglot.Context.newBuilder:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
aload 4
invokevirtual org.graalvm.polyglot.Context$Builder.engine:(Lorg/graalvm/polyglot/Engine;)Lorg/graalvm/polyglot/Context$Builder;
invokevirtual org.graalvm.polyglot.Context$Builder.build:()Lorg/graalvm/polyglot/Context;
astore 11
start local 11 42: aload 11
ldc "instrumentation-test-language"
ldc "ROOT(CONTEXT(EXPRESSION()), CONTEXT(STATEMENT))"
invokestatic org.graalvm.polyglot.Source.create:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Source;
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
pop
end local 11 43: aload 10
ifnull 49
aload 10
invokevirtual com.oracle.truffle.api.debug.DebuggerSession.close:()V
goto 49
StackMap locals:
StackMap stack: java.lang.Throwable
44: astore 8
aload 10
ifnull 45
aload 10
invokevirtual com.oracle.truffle.api.debug.DebuggerSession.close:()V
end local 10 StackMap locals:
StackMap stack:
45: aload 8
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
46: astore 9
aload 8
ifnonnull 47
aload 9
astore 8
goto 48
StackMap locals:
StackMap stack:
47: aload 8
aload 9
if_acmpeq 48
aload 8
aload 9
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
48: aload 8
athrow
end local 7 end local 6 end local 5 49: StackMap locals: com.oracle.truffle.api.debug.test.DebuggerContextsTest com.oracle.truffle.api.debug.DebuggerSession[] java.lang.Throwable java.lang.Throwable org.graalvm.polyglot.Engine
StackMap stack:
aload 4
ifnull 55
aload 4
invokevirtual org.graalvm.polyglot.Engine.close:()V
goto 55
StackMap locals:
StackMap stack: java.lang.Throwable
50: astore 2
aload 4
ifnull 51
aload 4
invokevirtual org.graalvm.polyglot.Engine.close:()V
end local 4 StackMap locals:
StackMap stack:
51: aload 2
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
52: astore 3
aload 2
ifnonnull 53
aload 3
astore 2
goto 54
StackMap locals:
StackMap stack:
53: aload 2
aload 3
if_acmpeq 54
aload 2
aload 3
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
54: aload 2
athrow
55: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 56 0 this Lcom/oracle/truffle/api/debug/test/DebuggerContextsTest;
1 56 1 sessionPtr [Lcom/oracle/truffle/api/debug/DebuggerSession;
3 51 4 engine Lorg/graalvm/polyglot/Engine;
4 49 5 contextsListener Lcom/oracle/truffle/api/debug/test/DebuggerContextsTest$TestContextsListener;
5 49 6 events Ljava/util/List<Lcom/oracle/truffle/api/debug/test/DebuggerContextsTest$ContextEvent;>;
6 49 7 debugger Lcom/oracle/truffle/api/debug/Debugger;
8 45 10 session Lcom/oracle/truffle/api/debug/DebuggerSession;
11 21 13 context Lorg/graalvm/polyglot/Context;
30 34 13 context Lorg/graalvm/polyglot/Context;
42 43 11 context Lorg/graalvm/polyglot/Context;
Exception table:
from to target type
11 19 20 any
10 22 22 any
30 32 33 any
29 35 35 any
8 43 44 any
7 46 46 any
3 49 50 any
2 52 52 any
RuntimeVisibleAnnotations:
org.junit.Test()
public void testInContextEval();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=14, args_size=1
start local 0 0: aconst_null
astore 1
aconst_null
astore 2
1: invokestatic org.graalvm.polyglot.Engine.create:()Lorg/graalvm/polyglot/Engine;
astore 3
start local 3 2: new com.oracle.truffle.api.debug.test.DebuggerContextsTest$TestContextsListener
dup
invokespecial com.oracle.truffle.api.debug.test.DebuggerContextsTest$TestContextsListener.<init>:()V
astore 4
start local 4 3: aload 4
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$TestContextsListener.events:Ljava/util/List;
astore 5
start local 5 4: aload 3
invokevirtual org.graalvm.polyglot.Engine.getInstruments:()Ljava/util/Map;
ldc "debugger"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.graalvm.polyglot.Instrument
ldc Lcom/oracle/truffle/api/debug/Debugger;
invokevirtual org.graalvm.polyglot.Instrument.lookup:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.Debugger
astore 6
start local 6 5: aconst_null
astore 7
aconst_null
astore 8
6: aload 6
aconst_null
invokevirtual com.oracle.truffle.api.debug.Debugger.startSession:(Lcom/oracle/truffle/api/debug/SuspendedCallback;)Lcom/oracle/truffle/api/debug/DebuggerSession;
astore 9
start local 9 7: aload 9
aload 4
iconst_0
invokevirtual com.oracle.truffle.api.debug.DebuggerSession.setContextsListener:(Lcom/oracle/truffle/api/debug/DebugContextsListener;Z)V
8: iconst_0
anewarray java.lang.String
invokestatic org.graalvm.polyglot.Context.newBuilder:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
aload 3
invokevirtual org.graalvm.polyglot.Context$Builder.engine:(Lorg/graalvm/polyglot/Engine;)Lorg/graalvm/polyglot/Context$Builder;
invokevirtual org.graalvm.polyglot.Context$Builder.build:()Lorg/graalvm/polyglot/Context;
astore 10
start local 10 9: getstatic com.oracle.truffle.api.debug.test.DebuggerContextsTest.$assertionsDisabled:Z
ifne 10
aload 10
ifnonnull 10
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
10: StackMap locals: com.oracle.truffle.api.debug.test.DebuggerContextsTest java.lang.Throwable java.lang.Throwable org.graalvm.polyglot.Engine com.oracle.truffle.api.debug.test.DebuggerContextsTest$TestContextsListener java.util.List com.oracle.truffle.api.debug.Debugger java.lang.Throwable java.lang.Throwable com.oracle.truffle.api.debug.DebuggerSession org.graalvm.polyglot.Context
StackMap stack:
lconst_1
aload 5
invokeinterface java.util.List.size:()I
i2l
invokestatic org.junit.Assert.assertEquals:(JJ)V
11: aload 5
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.created:Z
invokestatic org.junit.Assert.assertTrue:(Z)V
12: aload 5
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.context:Lcom/oracle/truffle/api/debug/DebugContext;
astore 11
start local 11 13: aload 11
invokestatic org.junit.Assert.assertNotNull:(Ljava/lang/Object;)V
14: aload 5
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.language:Lcom/oracle/truffle/api/nodes/LanguageInfo;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
15: aload 11
ldc "VARIABLE(a, 10)"
ldc "instrumentation-test-language"
invokevirtual com.oracle.truffle.api.debug.DebugContext.evaluate:(Ljava/lang/String;Ljava/lang/String;)Lcom/oracle/truffle/api/debug/DebugValue;
astore 12
start local 12 16: ldc 3
aload 5
invokeinterface java.util.List.size:()I
i2l
invokestatic org.junit.Assert.assertEquals:(JJ)V
17: aload 5
iconst_1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.created:Z
invokestatic org.junit.Assert.assertTrue:(Z)V
18: ldc "instrumentation-test-language"
aload 5
iconst_1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.language:Lcom/oracle/truffle/api/nodes/LanguageInfo;
invokevirtual com.oracle.truffle.api.nodes.LanguageInfo.getId:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
19: aload 5
iconst_2
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.languageInitialized:Z
invokestatic org.junit.Assert.assertTrue:(Z)V
20: aload 11
aload 12
invokedynamic get(Lcom/oracle/truffle/api/debug/DebugValue;)Ljava/util/function/Supplier;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
com/oracle/truffle/api/debug/test/DebuggerContextsTest.lambda$1(Lcom/oracle/truffle/api/debug/DebugValue;)Ljava/lang/String; (6)
()Ljava/lang/String;
invokevirtual com.oracle.truffle.api.debug.DebugContext.runInContext:(Ljava/util/function/Supplier;)Ljava/lang/Object;
checkcast java.lang.String
astore 13
start local 13 21: ldc "Integer"
aload 13
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
22: ldc 3
aload 5
invokeinterface java.util.List.size:()I
i2l
invokestatic org.junit.Assert.assertEquals:(JJ)V
end local 13 end local 12 end local 11 end local 10 23: aload 9
ifnull 29
aload 9
invokevirtual com.oracle.truffle.api.debug.DebuggerSession.close:()V
goto 29
StackMap locals: com.oracle.truffle.api.debug.test.DebuggerContextsTest java.lang.Throwable java.lang.Throwable org.graalvm.polyglot.Engine com.oracle.truffle.api.debug.test.DebuggerContextsTest$TestContextsListener java.util.List com.oracle.truffle.api.debug.Debugger java.lang.Throwable java.lang.Throwable com.oracle.truffle.api.debug.DebuggerSession
StackMap stack: java.lang.Throwable
24: astore 7
aload 9
ifnull 25
aload 9
invokevirtual com.oracle.truffle.api.debug.DebuggerSession.close:()V
end local 9 StackMap locals:
StackMap stack:
25: aload 7
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
26: astore 8
aload 7
ifnonnull 27
aload 8
astore 7
goto 28
StackMap locals:
StackMap stack:
27: aload 7
aload 8
if_acmpeq 28
aload 7
aload 8
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
28: aload 7
athrow
end local 6 end local 5 end local 4 29: StackMap locals: com.oracle.truffle.api.debug.test.DebuggerContextsTest java.lang.Throwable java.lang.Throwable org.graalvm.polyglot.Engine
StackMap stack:
aload 3
ifnull 35
aload 3
invokevirtual org.graalvm.polyglot.Engine.close:()V
goto 35
StackMap locals:
StackMap stack: java.lang.Throwable
30: astore 1
aload 3
ifnull 31
aload 3
invokevirtual org.graalvm.polyglot.Engine.close:()V
end local 3 StackMap locals:
StackMap stack:
31: aload 1
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
32: astore 2
aload 1
ifnonnull 33
aload 2
astore 1
goto 34
StackMap locals:
StackMap stack:
33: aload 1
aload 2
if_acmpeq 34
aload 1
aload 2
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
34: aload 1
athrow
35: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 36 0 this Lcom/oracle/truffle/api/debug/test/DebuggerContextsTest;
2 31 3 engine Lorg/graalvm/polyglot/Engine;
3 29 4 contextsListener Lcom/oracle/truffle/api/debug/test/DebuggerContextsTest$TestContextsListener;
4 29 5 events Ljava/util/List<Lcom/oracle/truffle/api/debug/test/DebuggerContextsTest$ContextEvent;>;
5 29 6 debugger Lcom/oracle/truffle/api/debug/Debugger;
7 25 9 session Lcom/oracle/truffle/api/debug/DebuggerSession;
9 23 10 context Lorg/graalvm/polyglot/Context;
13 23 11 dc Lcom/oracle/truffle/api/debug/DebugContext;
16 23 12 result Lcom/oracle/truffle/api/debug/DebugValue;
21 23 13 type Ljava/lang/String;
Exception table:
from to target type
7 23 24 any
6 26 26 any
2 29 30 any
1 32 32 any
RuntimeVisibleAnnotations:
org.junit.Test()
private static void lambda$0(java.util.List, com.oracle.truffle.api.debug.SuspendedEvent);
descriptor: (Ljava/util/List;Lcom/oracle/truffle/api/debug/SuspendedEvent;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=4, locals=2, args_size=2
start local 1 0: ldc 2
aload 0
invokeinterface java.util.List.size:()I
i2l
invokestatic org.junit.Assert.assertEquals:(JJ)V
1: aload 0
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.created:Z
invokestatic org.junit.Assert.assertTrue:(Z)V
2: ldc "instrumentation-test-language"
aload 0
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.language:Lcom/oracle/truffle/api/nodes/LanguageInfo;
invokevirtual com.oracle.truffle.api.nodes.LanguageInfo.getId:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
3: aload 0
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.context:Lcom/oracle/truffle/api/debug/DebugContext;
invokestatic org.junit.Assert.assertNotNull:(Ljava/lang/Object;)V
4: aload 0
iconst_1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent
getfield com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent.languageInitialized:Z
invokestatic org.junit.Assert.assertTrue:(Z)V
5: return
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 6 1 event Lcom/oracle/truffle/api/debug/SuspendedEvent;
private static java.lang.String lambda$1(com.oracle.truffle.api.debug.DebugValue);
descriptor: (Lcom/oracle/truffle/api/debug/DebugValue;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=1
0: ldc "10"
aload 0
invokevirtual com.oracle.truffle.api.debug.DebugValue.toDisplayString:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
1: aload 0
invokevirtual com.oracle.truffle.api.debug.DebugValue.getMetaObject:()Lcom/oracle/truffle/api/debug/DebugValue;
astore 1
start local 1 2: aload 1
invokevirtual com.oracle.truffle.api.debug.DebugValue.getMetaQualifiedName:()Ljava/lang/String;
areturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
2 3 1 metaObj Lcom/oracle/truffle/api/debug/DebugValue;
}
SourceFile: "DebuggerContextsTest.java"
NestMembers:
com.oracle.truffle.api.debug.test.DebuggerContextsTest$1 com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent com.oracle.truffle.api.debug.test.DebuggerContextsTest$TestContextsListener
InnerClasses:
com.oracle.truffle.api.debug.test.DebuggerContextsTest$1
private ContextEvent = com.oracle.truffle.api.debug.test.DebuggerContextsTest$ContextEvent of com.oracle.truffle.api.debug.test.DebuggerContextsTest
private TestContextsListener = com.oracle.truffle.api.debug.test.DebuggerContextsTest$TestContextsListener of com.oracle.truffle.api.debug.test.DebuggerContextsTest
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public final Builder = org.graalvm.polyglot.Context$Builder of org.graalvm.polyglot.Context