public class com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest extends com.oracle.truffle.api.test.polyglot.AbstractPolyglotTest
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest
super_class: com.oracle.truffle.api.test.polyglot.AbstractPolyglotTest
{
final java.util.Deque<org.graalvm.polyglot.management.ExecutionEvent> events;
descriptor: Ljava/util/Deque;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/Deque<Lorg/graalvm/polyglot/management/ExecutionEvent;>;
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial com.oracle.truffle.api.test.polyglot.AbstractPolyglotTest.<init>:()V
1: aload 0
new java.util.ArrayDeque
dup
invokespecial java.util.ArrayDeque.<init>:()V
putfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;
public static void beforeClass();
descriptor: ()V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic com.oracle.truffle.api.instrumentation.test.CompileImmediatelyCheck.isCompileImmediately:()Z
invokestatic org.junit.Assume.assumeFalse:(Z)V
1: return
LocalVariableTable:
Start End Slot Name Signature
RuntimeVisibleAnnotations:
org.junit.BeforeClass()
private void add(org.graalvm.polyglot.management.ExecutionEvent);
descriptor: (Lorg/graalvm/polyglot/management/ExecutionEvent;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.toString:()Ljava/lang/String;
invokestatic org.junit.Assert.assertNotNull:(Ljava/lang/Object;)V
1: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
aload 1
invokeinterface java.util.Deque.add:(Ljava/lang/Object;)Z
pop
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;
0 3 1 event Lorg/graalvm/polyglot/management/ExecutionEvent;
MethodParameters:
Name Flags
event
public void testSourceEquality();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=1
start local 0 0: aload 0
invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
aload 0
invokedynamic accept(Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;)Ljava/util/function/Consumer;
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;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.add(Lorg/graalvm/polyglot/management/ExecutionEvent;)V (7)
(Lorg/graalvm/polyglot/management/ExecutionEvent;)V
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.onEnter:(Ljava/util/function/Consumer;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.expressions:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.setupListener:(Lorg/graalvm/polyglot/management/ExecutionListener$Builder;)Lorg/graalvm/polyglot/management/ExecutionListener;
pop
1: aload 0
ldc "EXPRESSION"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
astore 2
start local 2 2: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
astore 1
start local 1 3: ldc "EXPRESSION"
aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getLocation:()Lorg/graalvm/polyglot/SourceSection;
invokevirtual org.graalvm.polyglot.SourceSection.getCharacters:()Ljava/lang/CharSequence;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
4: aload 2
aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getLocation:()Lorg/graalvm/polyglot/SourceSection;
invokevirtual org.graalvm.polyglot.SourceSection.getSource:()Lorg/graalvm/polyglot/Source;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
5: aload 0
ldc "EXPRESSION"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
astore 4
start local 4 6: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
astore 5
start local 5 7: aload 1
aload 5
invokestatic org.junit.Assert.assertSame:(Ljava/lang/Object;Ljava/lang/Object;)V
8: aload 2
aload 5
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getLocation:()Lorg/graalvm/polyglot/SourceSection;
invokevirtual org.graalvm.polyglot.SourceSection.getSource:()Lorg/graalvm/polyglot/Source;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
9: aload 4
aload 5
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getLocation:()Lorg/graalvm/polyglot/SourceSection;
invokevirtual org.graalvm.polyglot.SourceSection.getSource:()Lorg/graalvm/polyglot/Source;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
10: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.isEmpty:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
11: return
end local 5 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;
3 12 1 event Lorg/graalvm/polyglot/management/ExecutionEvent;
2 12 2 source Lorg/graalvm/polyglot/Source;
6 12 4 otherSource Lorg/graalvm/polyglot/Source;
7 12 5 otherEvent Lorg/graalvm/polyglot/management/ExecutionEvent;
RuntimeVisibleAnnotations:
org.junit.Test()
public void testOnEnterExpression();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
aload 0
invokedynamic accept(Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;)Ljava/util/function/Consumer;
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;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.add(Lorg/graalvm/polyglot/management/ExecutionEvent;)V (7)
(Lorg/graalvm/polyglot/management/ExecutionEvent;)V
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.onEnter:(Ljava/util/function/Consumer;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.expressions:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.setupListener:(Lorg/graalvm/polyglot/management/ExecutionListener$Builder;)Lorg/graalvm/polyglot/management/ExecutionListener;
pop
1: aload 0
ldc "EXPRESSION"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
2: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
astore 1
start local 1 3: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getException:()Lorg/graalvm/polyglot/PolyglotException;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
4: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getInputValues:()Ljava/util/List;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
5: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getReturnValue:()Lorg/graalvm/polyglot/Value;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
6: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.isRoot:()Z
invokestatic org.junit.Assert.assertFalse:(Z)V
7: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.isStatement:()Z
invokestatic org.junit.Assert.assertFalse:(Z)V
8: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.isExpression:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
9: ldc "EXPRESSION"
aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getLocation:()Lorg/graalvm/polyglot/SourceSection;
invokevirtual org.graalvm.polyglot.SourceSection.getCharacters:()Ljava/lang/CharSequence;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
10: aload 0
ldc "EXPRESSION"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
11: aload 1
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
invokestatic org.junit.Assert.assertSame:(Ljava/lang/Object;Ljava/lang/Object;)V
12: aload 0
ldc "EXPRESSION(EXPRESSION, STATEMENT, EXPRESSION)"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
13: lconst_0
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getLocation:()Lorg/graalvm/polyglot/SourceSection;
invokevirtual org.graalvm.polyglot.SourceSection.getCharIndex:()I
i2l
invokestatic org.junit.Assert.assertEquals:(JJ)V
14: ldc "EXPRESSION"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getLocation:()Lorg/graalvm/polyglot/SourceSection;
invokevirtual org.graalvm.polyglot.SourceSection.getCharacters:()Ljava/lang/CharSequence;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
15: ldc "EXPRESSION"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getLocation:()Lorg/graalvm/polyglot/SourceSection;
invokevirtual org.graalvm.polyglot.SourceSection.getCharacters:()Ljava/lang/CharSequence;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
16: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;
3 17 1 event Lorg/graalvm/polyglot/management/ExecutionEvent;
RuntimeVisibleAnnotations:
org.junit.Test()
public void testOnEnterStatement();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
aload 0
invokedynamic accept(Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;)Ljava/util/function/Consumer;
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;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.add(Lorg/graalvm/polyglot/management/ExecutionEvent;)V (7)
(Lorg/graalvm/polyglot/management/ExecutionEvent;)V
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.onEnter:(Ljava/util/function/Consumer;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.statements:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.setupListener:(Lorg/graalvm/polyglot/management/ExecutionListener$Builder;)Lorg/graalvm/polyglot/management/ExecutionListener;
pop
1: aload 0
ldc "STATEMENT"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
2: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
astore 1
start local 1 3: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getException:()Lorg/graalvm/polyglot/PolyglotException;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
4: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getInputValues:()Ljava/util/List;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
5: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getReturnValue:()Lorg/graalvm/polyglot/Value;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
6: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.isRoot:()Z
invokestatic org.junit.Assert.assertFalse:(Z)V
7: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.isStatement:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
8: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.isExpression:()Z
invokestatic org.junit.Assert.assertFalse:(Z)V
9: ldc "STATEMENT"
aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getLocation:()Lorg/graalvm/polyglot/SourceSection;
invokevirtual org.graalvm.polyglot.SourceSection.getCharacters:()Ljava/lang/CharSequence;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
10: aload 0
ldc "STATEMENT"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
11: aload 1
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
invokestatic org.junit.Assert.assertSame:(Ljava/lang/Object;Ljava/lang/Object;)V
12: aload 0
ldc "STATEMENT(STATEMENT, EXPRESSION, STATEMENT)"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
13: lconst_0
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getLocation:()Lorg/graalvm/polyglot/SourceSection;
invokevirtual org.graalvm.polyglot.SourceSection.getCharIndex:()I
i2l
invokestatic org.junit.Assert.assertEquals:(JJ)V
14: ldc "STATEMENT"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getLocation:()Lorg/graalvm/polyglot/SourceSection;
invokevirtual org.graalvm.polyglot.SourceSection.getCharacters:()Ljava/lang/CharSequence;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
15: ldc "STATEMENT"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getLocation:()Lorg/graalvm/polyglot/SourceSection;
invokevirtual org.graalvm.polyglot.SourceSection.getCharacters:()Ljava/lang/CharSequence;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
16: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;
3 17 1 event Lorg/graalvm/polyglot/management/ExecutionEvent;
RuntimeVisibleAnnotations:
org.junit.Test()
public void testOnEnterRoots();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
aload 0
invokedynamic accept(Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;)Ljava/util/function/Consumer;
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;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.add(Lorg/graalvm/polyglot/management/ExecutionEvent;)V (7)
(Lorg/graalvm/polyglot/management/ExecutionEvent;)V
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.onEnter:(Ljava/util/function/Consumer;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.roots:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.setupListener:(Lorg/graalvm/polyglot/management/ExecutionListener$Builder;)Lorg/graalvm/polyglot/management/ExecutionListener;
pop
1: aload 0
ldc "ROOT"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
2: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
astore 1
start local 1 3: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getException:()Lorg/graalvm/polyglot/PolyglotException;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
4: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getInputValues:()Ljava/util/List;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
5: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getReturnValue:()Lorg/graalvm/polyglot/Value;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
6: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.isRoot:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
7: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.isStatement:()Z
invokestatic org.junit.Assert.assertFalse:(Z)V
8: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.isExpression:()Z
invokestatic org.junit.Assert.assertFalse:(Z)V
9: ldc "ROOT"
aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getLocation:()Lorg/graalvm/polyglot/SourceSection;
invokevirtual org.graalvm.polyglot.SourceSection.getCharacters:()Ljava/lang/CharSequence;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
10: aload 0
ldc "ROOT"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
11: aload 1
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
invokestatic org.junit.Assert.assertSame:(Ljava/lang/Object;Ljava/lang/Object;)V
12: aload 0
ldc "ROOT(ROOT, EXPRESSION, ROOT)"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
13: lconst_0
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getLocation:()Lorg/graalvm/polyglot/SourceSection;
invokevirtual org.graalvm.polyglot.SourceSection.getCharIndex:()I
i2l
invokestatic org.junit.Assert.assertEquals:(JJ)V
14: ldc "ROOT"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getLocation:()Lorg/graalvm/polyglot/SourceSection;
invokevirtual org.graalvm.polyglot.SourceSection.getCharacters:()Ljava/lang/CharSequence;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
15: ldc "ROOT"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getLocation:()Lorg/graalvm/polyglot/SourceSection;
invokevirtual org.graalvm.polyglot.SourceSection.getCharacters:()Ljava/lang/CharSequence;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
16: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;
3 17 1 event Lorg/graalvm/polyglot/management/ExecutionEvent;
RuntimeVisibleAnnotations:
org.junit.Test()
public void testOnReturnExpressions();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
aload 0
invokedynamic accept(Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;)Ljava/util/function/Consumer;
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;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.add(Lorg/graalvm/polyglot/management/ExecutionEvent;)V (7)
(Lorg/graalvm/polyglot/management/ExecutionEvent;)V
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.onReturn:(Ljava/util/function/Consumer;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.expressions:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.setupListener:(Lorg/graalvm/polyglot/management/ExecutionListener$Builder;)Lorg/graalvm/polyglot/management/ExecutionListener;
pop
1: aload 0
ldc "EXPRESSION"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
2: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
astore 1
start local 1 3: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getException:()Lorg/graalvm/polyglot/PolyglotException;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
4: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getInputValues:()Ljava/util/List;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
5: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getReturnValue:()Lorg/graalvm/polyglot/Value;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
6: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.isRoot:()Z
invokestatic org.junit.Assert.assertFalse:(Z)V
7: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.isStatement:()Z
invokestatic org.junit.Assert.assertFalse:(Z)V
8: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.isExpression:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
9: ldc "EXPRESSION"
aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getLocation:()Lorg/graalvm/polyglot/SourceSection;
invokevirtual org.graalvm.polyglot.SourceSection.getCharacters:()Ljava/lang/CharSequence;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
10: aload 0
ldc "EXPRESSION"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
11: aload 1
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
invokestatic org.junit.Assert.assertSame:(Ljava/lang/Object;Ljava/lang/Object;)V
12: aload 0
ldc "EXPRESSION(EXPRESSION, STATEMENT, EXPRESSION)"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
13: ldc "EXPRESSION"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getLocation:()Lorg/graalvm/polyglot/SourceSection;
invokevirtual org.graalvm.polyglot.SourceSection.getCharacters:()Ljava/lang/CharSequence;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
14: ldc "EXPRESSION"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getLocation:()Lorg/graalvm/polyglot/SourceSection;
invokevirtual org.graalvm.polyglot.SourceSection.getCharacters:()Ljava/lang/CharSequence;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
15: lconst_0
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getLocation:()Lorg/graalvm/polyglot/SourceSection;
invokevirtual org.graalvm.polyglot.SourceSection.getCharIndex:()I
i2l
invokestatic org.junit.Assert.assertEquals:(JJ)V
16: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;
3 17 1 event Lorg/graalvm/polyglot/management/ExecutionEvent;
RuntimeVisibleAnnotations:
org.junit.Test()
public void testOnReturnStatements();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
aload 0
invokedynamic accept(Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;)Ljava/util/function/Consumer;
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;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.add(Lorg/graalvm/polyglot/management/ExecutionEvent;)V (7)
(Lorg/graalvm/polyglot/management/ExecutionEvent;)V
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.onReturn:(Ljava/util/function/Consumer;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.statements:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.setupListener:(Lorg/graalvm/polyglot/management/ExecutionListener$Builder;)Lorg/graalvm/polyglot/management/ExecutionListener;
pop
1: aload 0
ldc "STATEMENT"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
2: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
astore 1
start local 1 3: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getException:()Lorg/graalvm/polyglot/PolyglotException;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
4: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getInputValues:()Ljava/util/List;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
5: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getReturnValue:()Lorg/graalvm/polyglot/Value;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
6: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.isRoot:()Z
invokestatic org.junit.Assert.assertFalse:(Z)V
7: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.isStatement:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
8: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.isExpression:()Z
invokestatic org.junit.Assert.assertFalse:(Z)V
9: ldc "STATEMENT"
aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getLocation:()Lorg/graalvm/polyglot/SourceSection;
invokevirtual org.graalvm.polyglot.SourceSection.getCharacters:()Ljava/lang/CharSequence;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
10: aload 0
ldc "STATEMENT"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
11: aload 1
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
invokestatic org.junit.Assert.assertSame:(Ljava/lang/Object;Ljava/lang/Object;)V
12: aload 0
ldc "STATEMENT(STATEMENT, EXPRESSION, STATEMENT)"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
13: ldc "STATEMENT"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getLocation:()Lorg/graalvm/polyglot/SourceSection;
invokevirtual org.graalvm.polyglot.SourceSection.getCharacters:()Ljava/lang/CharSequence;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
14: ldc "STATEMENT"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getLocation:()Lorg/graalvm/polyglot/SourceSection;
invokevirtual org.graalvm.polyglot.SourceSection.getCharacters:()Ljava/lang/CharSequence;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
15: lconst_0
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getLocation:()Lorg/graalvm/polyglot/SourceSection;
invokevirtual org.graalvm.polyglot.SourceSection.getCharIndex:()I
i2l
invokestatic org.junit.Assert.assertEquals:(JJ)V
16: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;
3 17 1 event Lorg/graalvm/polyglot/management/ExecutionEvent;
RuntimeVisibleAnnotations:
org.junit.Test()
public void testOnReturnRoots();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
aload 0
invokedynamic accept(Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;)Ljava/util/function/Consumer;
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;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.add(Lorg/graalvm/polyglot/management/ExecutionEvent;)V (7)
(Lorg/graalvm/polyglot/management/ExecutionEvent;)V
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.onReturn:(Ljava/util/function/Consumer;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.roots:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.setupListener:(Lorg/graalvm/polyglot/management/ExecutionListener$Builder;)Lorg/graalvm/polyglot/management/ExecutionListener;
pop
1: aload 0
ldc "ROOT"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
2: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
astore 1
start local 1 3: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getException:()Lorg/graalvm/polyglot/PolyglotException;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
4: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getInputValues:()Ljava/util/List;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
5: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getReturnValue:()Lorg/graalvm/polyglot/Value;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
6: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.isRoot:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
7: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.isStatement:()Z
invokestatic org.junit.Assert.assertFalse:(Z)V
8: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.isExpression:()Z
invokestatic org.junit.Assert.assertFalse:(Z)V
9: ldc "ROOT"
aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getLocation:()Lorg/graalvm/polyglot/SourceSection;
invokevirtual org.graalvm.polyglot.SourceSection.getCharacters:()Ljava/lang/CharSequence;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
10: aload 0
ldc "ROOT"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
11: aload 1
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
invokestatic org.junit.Assert.assertSame:(Ljava/lang/Object;Ljava/lang/Object;)V
12: aload 0
ldc "ROOT(ROOT, EXPRESSION, ROOT)"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
13: ldc "ROOT"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getLocation:()Lorg/graalvm/polyglot/SourceSection;
invokevirtual org.graalvm.polyglot.SourceSection.getCharacters:()Ljava/lang/CharSequence;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
14: ldc "ROOT"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getLocation:()Lorg/graalvm/polyglot/SourceSection;
invokevirtual org.graalvm.polyglot.SourceSection.getCharacters:()Ljava/lang/CharSequence;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
15: lconst_0
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getLocation:()Lorg/graalvm/polyglot/SourceSection;
invokevirtual org.graalvm.polyglot.SourceSection.getCharIndex:()I
i2l
invokestatic org.junit.Assert.assertEquals:(JJ)V
16: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;
3 17 1 event Lorg/graalvm/polyglot/management/ExecutionEvent;
RuntimeVisibleAnnotations:
org.junit.Test()
public void testOnErrorExpressions();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: aload 0
invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
aload 0
invokedynamic accept(Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;)Ljava/util/function/Consumer;
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;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.add(Lorg/graalvm/polyglot/management/ExecutionEvent;)V (7)
(Lorg/graalvm/polyglot/management/ExecutionEvent;)V
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.onReturn:(Ljava/util/function/Consumer;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.expressions:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.setupListener:(Lorg/graalvm/polyglot/management/ExecutionListener$Builder;)Lorg/graalvm/polyglot/management/ExecutionListener;
pop
1: aload 0
ldc "TRY(EXPRESSION(THROW(error, message)), CATCH(error))"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
2: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
astore 1
start local 1 3: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getException:()Lorg/graalvm/polyglot/PolyglotException;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
4: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getInputValues:()Ljava/util/List;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
5: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getReturnValue:()Lorg/graalvm/polyglot/Value;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
6: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.isRoot:()Z
invokestatic org.junit.Assert.assertFalse:(Z)V
7: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.isStatement:()Z
invokestatic org.junit.Assert.assertFalse:(Z)V
8: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.isExpression:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
9: ldc "EXPRESSION(THROW(error, message))"
aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getLocation:()Lorg/graalvm/polyglot/SourceSection;
invokevirtual org.graalvm.polyglot.SourceSection.getCharacters:()Ljava/lang/CharSequence;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
10: ldc "EXPRESSION(TRY(EXPRESSION(THROW(error0, message)), CATCH(error0)), TRY(STATEMENT(THROW(error1, message)), CATCH(error1)), TRY(EXPRESSION(THROW(error2, message)), CATCH(error2)))"
astore 3
start local 3 11: aload 0
aload 3
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
12: ldc "EXPRESSION(THROW(error0, message))"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getLocation:()Lorg/graalvm/polyglot/SourceSection;
invokevirtual org.graalvm.polyglot.SourceSection.getCharacters:()Ljava/lang/CharSequence;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
13: ldc "EXPRESSION(THROW(error2, message))"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getLocation:()Lorg/graalvm/polyglot/SourceSection;
invokevirtual org.graalvm.polyglot.SourceSection.getCharacters:()Ljava/lang/CharSequence;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
14: aload 3
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getLocation:()Lorg/graalvm/polyglot/SourceSection;
invokevirtual org.graalvm.polyglot.SourceSection.getCharacters:()Ljava/lang/CharSequence;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
15: return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;
3 16 1 event Lorg/graalvm/polyglot/management/ExecutionEvent;
11 16 3 s Ljava/lang/String;
RuntimeVisibleAnnotations:
org.junit.Test()
public void testOnErrorStatements();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
aload 0
invokedynamic accept(Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;)Ljava/util/function/Consumer;
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;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.add(Lorg/graalvm/polyglot/management/ExecutionEvent;)V (7)
(Lorg/graalvm/polyglot/management/ExecutionEvent;)V
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.onReturn:(Ljava/util/function/Consumer;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.statements:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.setupListener:(Lorg/graalvm/polyglot/management/ExecutionListener$Builder;)Lorg/graalvm/polyglot/management/ExecutionListener;
pop
1: aload 0
ldc "TRY(STATEMENT(THROW(error, message)), CATCH(error))"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
2: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
astore 1
start local 1 3: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getException:()Lorg/graalvm/polyglot/PolyglotException;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
4: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getInputValues:()Ljava/util/List;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
5: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getReturnValue:()Lorg/graalvm/polyglot/Value;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
6: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.isRoot:()Z
invokestatic org.junit.Assert.assertFalse:(Z)V
7: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.isStatement:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
8: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.isExpression:()Z
invokestatic org.junit.Assert.assertFalse:(Z)V
9: ldc "STATEMENT(THROW(error, message))"
aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getLocation:()Lorg/graalvm/polyglot/SourceSection;
invokevirtual org.graalvm.polyglot.SourceSection.getCharacters:()Ljava/lang/CharSequence;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
10: aload 0
ldc "EXPRESSION(TRY(STATEMENT(THROW(error0, message)), CATCH(error0)), TRY(EXPRESSION(THROW(error1, message)), CATCH(error1)), TRY(STATEMENT(THROW(error2, message)), CATCH(error2)))"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
11: ldc "STATEMENT(THROW(error0, message))"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getLocation:()Lorg/graalvm/polyglot/SourceSection;
invokevirtual org.graalvm.polyglot.SourceSection.getCharacters:()Ljava/lang/CharSequence;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
12: ldc "STATEMENT(THROW(error2, message))"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getLocation:()Lorg/graalvm/polyglot/SourceSection;
invokevirtual org.graalvm.polyglot.SourceSection.getCharacters:()Ljava/lang/CharSequence;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
13: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;
3 14 1 event Lorg/graalvm/polyglot/management/ExecutionEvent;
RuntimeVisibleAnnotations:
org.junit.Test()
public void testOnErrorRoots();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: aload 0
invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
aload 0
invokedynamic accept(Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;)Ljava/util/function/Consumer;
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;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.add(Lorg/graalvm/polyglot/management/ExecutionEvent;)V (7)
(Lorg/graalvm/polyglot/management/ExecutionEvent;)V
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.onReturn:(Ljava/util/function/Consumer;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.roots:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.setupListener:(Lorg/graalvm/polyglot/management/ExecutionListener$Builder;)Lorg/graalvm/polyglot/management/ExecutionListener;
pop
1: aload 0
ldc "TRY(ROOT(THROW(error, message)), CATCH(error))"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
2: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
astore 1
start local 1 3: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getException:()Lorg/graalvm/polyglot/PolyglotException;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
4: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getInputValues:()Ljava/util/List;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
5: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getReturnValue:()Lorg/graalvm/polyglot/Value;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
6: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.isRoot:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
7: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.isStatement:()Z
invokestatic org.junit.Assert.assertFalse:(Z)V
8: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.isExpression:()Z
invokestatic org.junit.Assert.assertFalse:(Z)V
9: ldc "ROOT(THROW(error, message))"
aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getLocation:()Lorg/graalvm/polyglot/SourceSection;
invokevirtual org.graalvm.polyglot.SourceSection.getCharacters:()Ljava/lang/CharSequence;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
10: ldc "TRY(ROOT(THROW(error, message)), CATCH(error))"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getLocation:()Lorg/graalvm/polyglot/SourceSection;
invokevirtual org.graalvm.polyglot.SourceSection.getCharacters:()Ljava/lang/CharSequence;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
11: ldc "EXPRESSION(TRY(ROOT(THROW(error0, message)), CATCH(error0)), TRY(EXPRESSION(THROW(error1, message)), CATCH(error1)), TRY(ROOT(THROW(error2, message)), CATCH(error2)))"
astore 3
start local 3 12: aload 0
aload 3
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
13: ldc "ROOT(THROW(error0, message))"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getLocation:()Lorg/graalvm/polyglot/SourceSection;
invokevirtual org.graalvm.polyglot.SourceSection.getCharacters:()Ljava/lang/CharSequence;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
14: ldc "ROOT(THROW(error2, message))"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getLocation:()Lorg/graalvm/polyglot/SourceSection;
invokevirtual org.graalvm.polyglot.SourceSection.getCharacters:()Ljava/lang/CharSequence;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
15: aload 3
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getLocation:()Lorg/graalvm/polyglot/SourceSection;
invokevirtual org.graalvm.polyglot.SourceSection.getCharacters:()Ljava/lang/CharSequence;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
16: return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;
3 17 1 event Lorg/graalvm/polyglot/management/ExecutionEvent;
12 17 3 s Ljava/lang/String;
RuntimeVisibleAnnotations:
org.junit.Test()
public void testCollectInputValues();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: aload 0
invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
aload 0
invokedynamic accept(Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;)Ljava/util/function/Consumer;
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;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.add(Lorg/graalvm/polyglot/management/ExecutionEvent;)V (7)
(Lorg/graalvm/polyglot/management/ExecutionEvent;)V
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.onReturn:(Ljava/util/function/Consumer;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.expressions:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.collectInputValues:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.setupListener:(Lorg/graalvm/polyglot/management/ExecutionListener$Builder;)Lorg/graalvm/polyglot/management/ExecutionListener;
pop
1: aload 0
ldc "EXPRESSION"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
2: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
astore 1
start local 1 3: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getInputValues:()Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
4: aload 0
ldc "EXPRESSION(EXPRESSION(CONSTANT(1)), EXPRESSION(EXPRESSION, EXPRESSION))"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
5: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getInputValues:()Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
6: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getInputValues:()Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
7: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getInputValues:()Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
8: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getInputValues:()Ljava/util/List;
astore 3
start local 3 9: ldc 2
aload 3
invokeinterface java.util.List.size:()I
i2l
invokestatic org.junit.Assert.assertEquals:(JJ)V
10: ldc "()"
aload 3
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.graalvm.polyglot.Value
invokevirtual org.graalvm.polyglot.Value.asString:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
11: ldc "()"
aload 3
iconst_1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.graalvm.polyglot.Value
invokevirtual org.graalvm.polyglot.Value.asString:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
12: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getInputValues:()Ljava/util/List;
astore 3
13: ldc 2
aload 3
invokeinterface java.util.List.size:()I
i2l
invokestatic org.junit.Assert.assertEquals:(JJ)V
14: ldc "(1)"
aload 3
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.graalvm.polyglot.Value
invokevirtual org.graalvm.polyglot.Value.asString:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
15: ldc "(()+())"
aload 3
iconst_1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.graalvm.polyglot.Value
invokevirtual org.graalvm.polyglot.Value.asString:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
16: return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;
3 17 1 event Lorg/graalvm/polyglot/management/ExecutionEvent;
9 17 3 inputs Ljava/util/List<Lorg/graalvm/polyglot/Value;>;
RuntimeVisibleAnnotations:
org.junit.Test()
public void testCollectInputValuesDisabled();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
aload 0
invokedynamic accept(Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;)Ljava/util/function/Consumer;
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;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.add(Lorg/graalvm/polyglot/management/ExecutionEvent;)V (7)
(Lorg/graalvm/polyglot/management/ExecutionEvent;)V
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.onReturn:(Ljava/util/function/Consumer;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.expressions:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_0
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.collectInputValues:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.setupListener:(Lorg/graalvm/polyglot/management/ExecutionListener$Builder;)Lorg/graalvm/polyglot/management/ExecutionListener;
pop
1: aload 0
ldc "EXPRESSION"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
2: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
astore 1
start local 1 3: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getInputValues:()Ljava/util/List;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;
3 5 1 event Lorg/graalvm/polyglot/management/ExecutionEvent;
RuntimeVisibleAnnotations:
org.junit.Test()
public void testCollectInputValuesOnEnter();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
aload 0
invokedynamic accept(Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;)Ljava/util/function/Consumer;
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;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.add(Lorg/graalvm/polyglot/management/ExecutionEvent;)V (7)
(Lorg/graalvm/polyglot/management/ExecutionEvent;)V
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.onEnter:(Ljava/util/function/Consumer;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.expressions:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.collectInputValues:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.setupListener:(Lorg/graalvm/polyglot/management/ExecutionListener$Builder;)Lorg/graalvm/polyglot/management/ExecutionListener;
pop
1: aload 0
ldc "EXPRESSION"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
2: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
astore 1
start local 1 3: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getInputValues:()Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;
3 5 1 event Lorg/graalvm/polyglot/management/ExecutionEvent;
RuntimeVisibleAnnotations:
org.junit.Test()
public void testCollectInputValuesOnError();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
aload 0
invokedynamic accept(Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;)Ljava/util/function/Consumer;
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;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.add(Lorg/graalvm/polyglot/management/ExecutionEvent;)V (7)
(Lorg/graalvm/polyglot/management/ExecutionEvent;)V
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.onReturn:(Ljava/util/function/Consumer;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.expressions:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.collectInputValues:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.setupListener:(Lorg/graalvm/polyglot/management/ExecutionListener$Builder;)Lorg/graalvm/polyglot/management/ExecutionListener;
pop
1: aload 0
ldc " EXPRESSION(EXPRESSION, THROW(error, msg), EXPRESSION)"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
2: goto 4
StackMap locals:
StackMap stack: org.graalvm.polyglot.PolyglotException
3: pop
4: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
astore 1
start local 1 5: lconst_0
aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getInputValues:()Ljava/util/List;
invokeinterface java.util.List.size:()I
i2l
invokestatic org.junit.Assert.assertEquals:(JJ)V
6: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
astore 1
7: ldc 2
aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getInputValues:()Ljava/util/List;
invokeinterface java.util.List.size:()I
i2l
invokestatic org.junit.Assert.assertEquals:(JJ)V
8: ldc "()"
aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getInputValues:()Ljava/util/List;
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.graalvm.polyglot.Value
invokevirtual org.graalvm.polyglot.Value.asString:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
9: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getInputValues:()Ljava/util/List;
iconst_1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
10: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;
5 11 1 event Lorg/graalvm/polyglot/management/ExecutionEvent;
Exception table:
from to target type
1 2 3 Class org.graalvm.polyglot.PolyglotException
RuntimeVisibleAnnotations:
org.junit.Test()
public void testCollectReturnValues();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
aload 0
invokedynamic accept(Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;)Ljava/util/function/Consumer;
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;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.add(Lorg/graalvm/polyglot/management/ExecutionEvent;)V (7)
(Lorg/graalvm/polyglot/management/ExecutionEvent;)V
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.onReturn:(Ljava/util/function/Consumer;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.expressions:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.collectReturnValue:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.setupListener:(Lorg/graalvm/polyglot/management/ExecutionListener$Builder;)Lorg/graalvm/polyglot/management/ExecutionListener;
pop
1: aload 0
ldc "EXPRESSION"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
2: ldc "()"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getReturnValue:()Lorg/graalvm/polyglot/Value;
invokevirtual org.graalvm.polyglot.Value.asString:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
3: aload 0
ldc "EXPRESSION(EXPRESSION(CONSTANT(1)), EXPRESSION(EXPRESSION, EXPRESSION))"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
4: ldc "(1)"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getReturnValue:()Lorg/graalvm/polyglot/Value;
invokevirtual org.graalvm.polyglot.Value.asString:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
5: ldc "()"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getReturnValue:()Lorg/graalvm/polyglot/Value;
invokevirtual org.graalvm.polyglot.Value.asString:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
6: ldc "()"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getReturnValue:()Lorg/graalvm/polyglot/Value;
invokevirtual org.graalvm.polyglot.Value.asString:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
7: ldc "(()+())"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getReturnValue:()Lorg/graalvm/polyglot/Value;
invokevirtual org.graalvm.polyglot.Value.asString:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
8: ldc "((1)+(()+()))"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getReturnValue:()Lorg/graalvm/polyglot/Value;
invokevirtual org.graalvm.polyglot.Value.asString:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
9: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;
RuntimeVisibleAnnotations:
org.junit.Test()
public void testCollectReturnValuesDisabled();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
aload 0
invokedynamic accept(Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;)Ljava/util/function/Consumer;
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;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.add(Lorg/graalvm/polyglot/management/ExecutionEvent;)V (7)
(Lorg/graalvm/polyglot/management/ExecutionEvent;)V
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.onReturn:(Ljava/util/function/Consumer;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.expressions:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_0
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.collectReturnValue:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.setupListener:(Lorg/graalvm/polyglot/management/ExecutionListener$Builder;)Lorg/graalvm/polyglot/management/ExecutionListener;
pop
1: aload 0
ldc "EXPRESSION"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
2: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getReturnValue:()Lorg/graalvm/polyglot/Value;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;
RuntimeVisibleAnnotations:
org.junit.Test()
public void testCollectReturnValuesOnEnter();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
aload 0
invokedynamic accept(Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;)Ljava/util/function/Consumer;
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;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.add(Lorg/graalvm/polyglot/management/ExecutionEvent;)V (7)
(Lorg/graalvm/polyglot/management/ExecutionEvent;)V
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.onEnter:(Ljava/util/function/Consumer;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.expressions:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.collectReturnValue:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.setupListener:(Lorg/graalvm/polyglot/management/ExecutionListener$Builder;)Lorg/graalvm/polyglot/management/ExecutionListener;
pop
1: aload 0
ldc "EXPRESSION"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
2: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getReturnValue:()Lorg/graalvm/polyglot/Value;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;
RuntimeVisibleAnnotations:
org.junit.Test()
public void testCollectReturnValuesOnError();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: aload 0
invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
aload 0
invokedynamic accept(Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;)Ljava/util/function/Consumer;
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;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.add(Lorg/graalvm/polyglot/management/ExecutionEvent;)V (7)
(Lorg/graalvm/polyglot/management/ExecutionEvent;)V
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.onReturn:(Ljava/util/function/Consumer;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.expressions:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.collectReturnValue:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.setupListener:(Lorg/graalvm/polyglot/management/ExecutionListener$Builder;)Lorg/graalvm/polyglot/management/ExecutionListener;
pop
1: aconst_null
astore 2
start local 2 2: aload 0
ldc "EXPRESSION(THROW(foo, msg))"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
3: goto 6
StackMap locals: com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest top org.graalvm.polyglot.PolyglotException
StackMap stack: org.graalvm.polyglot.PolyglotException
4: astore 3
start local 3 5: aload 3
astore 2
end local 3 6: StackMap locals:
StackMap stack:
aload 2
invokestatic org.junit.Assert.assertNotNull:(Ljava/lang/Object;)V
7: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getReturnValue:()Lorg/graalvm/polyglot/Value;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
8: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;
2 9 2 thrownError Lorg/graalvm/polyglot/PolyglotException;
5 6 3 e Lorg/graalvm/polyglot/PolyglotException;
Exception table:
from to target type
2 3 4 Class org.graalvm.polyglot.PolyglotException
RuntimeVisibleAnnotations:
org.junit.Test()
public void testCollectErrors();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=7, args_size=1
start local 0 0: aload 0
invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
aload 0
invokedynamic accept(Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;)Ljava/util/function/Consumer;
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;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.add(Lorg/graalvm/polyglot/management/ExecutionEvent;)V (7)
(Lorg/graalvm/polyglot/management/ExecutionEvent;)V
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.onReturn:(Ljava/util/function/Consumer;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.expressions:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.collectExceptions:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.setupListener:(Lorg/graalvm/polyglot/management/ExecutionListener$Builder;)Lorg/graalvm/polyglot/management/ExecutionListener;
pop
1: aconst_null
astore 3
start local 3 2: aload 0
ldc "EXPRESSION(THROW(foo, msg))"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
3: goto 6
StackMap locals: com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest top top org.graalvm.polyglot.PolyglotException
StackMap stack: org.graalvm.polyglot.PolyglotException
4: astore 4
start local 4 5: aload 4
astore 3
end local 4 6: StackMap locals:
StackMap stack:
aload 3
invokestatic org.junit.Assert.assertNotNull:(Ljava/lang/Object;)V
7: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
astore 1
start local 1 8: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getException:()Lorg/graalvm/polyglot/PolyglotException;
invokestatic org.junit.Assert.assertNotNull:(Ljava/lang/Object;)V
9: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getException:()Lorg/graalvm/polyglot/PolyglotException;
aload 3
invokestatic org.junit.Assert.assertNotSame:(Ljava/lang/Object;Ljava/lang/Object;)V
10: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getException:()Lorg/graalvm/polyglot/PolyglotException;
aload 3
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
11: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getException:()Lorg/graalvm/polyglot/PolyglotException;
invokevirtual org.graalvm.polyglot.PolyglotException.getCause:()Ljava/lang/Throwable;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
12: ldc "msg"
aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getException:()Lorg/graalvm/polyglot/PolyglotException;
invokevirtual org.graalvm.polyglot.PolyglotException.getMessage:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
13: ldc "THROW(foo, msg)"
aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getException:()Lorg/graalvm/polyglot/PolyglotException;
invokevirtual org.graalvm.polyglot.PolyglotException.getSourceLocation:()Lorg/graalvm/polyglot/SourceSection;
invokevirtual org.graalvm.polyglot.SourceSection.getCharacters:()Ljava/lang/CharSequence;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
14: ldc "foo: msg"
aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getException:()Lorg/graalvm/polyglot/PolyglotException;
invokevirtual org.graalvm.polyglot.PolyglotException.getGuestObject:()Lorg/graalvm/polyglot/Value;
invokevirtual org.graalvm.polyglot.Value.asString:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
15: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 4
start local 4 16: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getException:()Lorg/graalvm/polyglot/PolyglotException;
invokevirtual org.graalvm.polyglot.PolyglotException.getPolyglotStackTrace:()Ljava/lang/Iterable;
aload 4
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic accept(Ljava/util/List;)Ljava/util/function/Consumer;
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;)V
java/util/List.add(Ljava/lang/Object;)Z (9 itf)
(Lorg/graalvm/polyglot/PolyglotException$StackFrame;)V
invokeinterface java.lang.Iterable.forEach:(Ljava/util/function/Consumer;)V
17: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.context:Lorg/graalvm/polyglot/Context;
invokevirtual org.graalvm.polyglot.Context.getEngine:()Lorg/graalvm/polyglot/Engine;
invokevirtual org.graalvm.polyglot.Engine.getLanguages:()Ljava/util/Map;
ldc "instrumentation-test-language"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
aload 4
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.graalvm.polyglot.PolyglotException$StackFrame
invokevirtual org.graalvm.polyglot.PolyglotException$StackFrame.getLanguage:()Lorg/graalvm/polyglot/Language;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
18: aload 4
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.graalvm.polyglot.PolyglotException$StackFrame
invokevirtual org.graalvm.polyglot.PolyglotException$StackFrame.isHostFrame:()Z
invokestatic org.junit.Assert.assertFalse:(Z)V
19: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getException:()Lorg/graalvm/polyglot/PolyglotException;
invokevirtual org.graalvm.polyglot.PolyglotException.getSourceLocation:()Lorg/graalvm/polyglot/SourceSection;
aload 4
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.graalvm.polyglot.PolyglotException$StackFrame
invokevirtual org.graalvm.polyglot.PolyglotException$StackFrame.getSourceLocation:()Lorg/graalvm/polyglot/SourceSection;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
20: aload 4
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.graalvm.polyglot.PolyglotException$StackFrame
invokevirtual org.graalvm.polyglot.PolyglotException$StackFrame.isGuestFrame:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
21: iconst_1
istore 6
start local 6 22: goto 25
23: StackMap locals: com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest org.graalvm.polyglot.management.ExecutionEvent top org.graalvm.polyglot.PolyglotException java.util.List top int
StackMap stack:
aload 4
iload 6
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.graalvm.polyglot.PolyglotException$StackFrame
invokevirtual org.graalvm.polyglot.PolyglotException$StackFrame.isHostFrame:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
24: iinc 6 1
StackMap locals:
StackMap stack:
25: iload 6
aload 4
invokeinterface java.util.List.size:()I
if_icmplt 23
end local 6 26: aload 0
ldc "EXPRESSION(THROW(internal, msg))"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
27: goto 30
StackMap locals: com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest org.graalvm.polyglot.management.ExecutionEvent top org.graalvm.polyglot.PolyglotException java.util.List
StackMap stack: org.graalvm.polyglot.PolyglotException
28: astore 6
start local 6 29: aload 6
astore 3
end local 6 30: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
astore 1
31: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getException:()Lorg/graalvm/polyglot/PolyglotException;
invokestatic org.junit.Assert.assertNotNull:(Ljava/lang/Object;)V
32: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getException:()Lorg/graalvm/polyglot/PolyglotException;
aload 3
invokestatic org.junit.Assert.assertNotSame:(Ljava/lang/Object;Ljava/lang/Object;)V
33: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getException:()Lorg/graalvm/polyglot/PolyglotException;
aload 3
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
34: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getException:()Lorg/graalvm/polyglot/PolyglotException;
invokevirtual org.graalvm.polyglot.PolyglotException.getCause:()Ljava/lang/Throwable;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
35: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getException:()Lorg/graalvm/polyglot/PolyglotException;
invokevirtual org.graalvm.polyglot.PolyglotException.isInternalError:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
36: return
end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 37 0 this Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;
8 37 1 event Lorg/graalvm/polyglot/management/ExecutionEvent;
2 37 3 thrownError Lorg/graalvm/polyglot/PolyglotException;
5 6 4 e Lorg/graalvm/polyglot/PolyglotException;
16 37 4 stackFrames Ljava/util/List<Lorg/graalvm/polyglot/PolyglotException$StackFrame;>;
22 26 6 i I
29 30 6 e Lorg/graalvm/polyglot/PolyglotException;
Exception table:
from to target type
2 3 4 Class org.graalvm.polyglot.PolyglotException
26 27 28 Class org.graalvm.polyglot.PolyglotException
RuntimeVisibleAnnotations:
org.junit.Test()
public void testCollectErrorsOnReturn();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
aload 0
invokedynamic accept(Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;)Ljava/util/function/Consumer;
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;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.add(Lorg/graalvm/polyglot/management/ExecutionEvent;)V (7)
(Lorg/graalvm/polyglot/management/ExecutionEvent;)V
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.onReturn:(Ljava/util/function/Consumer;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.expressions:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.collectExceptions:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.setupListener:(Lorg/graalvm/polyglot/management/ExecutionListener$Builder;)Lorg/graalvm/polyglot/management/ExecutionListener;
pop
1: aload 0
ldc "EXPRESSION"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
2: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
astore 1
start local 1 3: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getException:()Lorg/graalvm/polyglot/PolyglotException;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;
3 5 1 event Lorg/graalvm/polyglot/management/ExecutionEvent;
RuntimeVisibleAnnotations:
org.junit.Test()
public void testCollectErrorsOnEnter();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=1
start local 0 0: aload 0
invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
aload 0
invokedynamic accept(Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;)Ljava/util/function/Consumer;
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;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.add(Lorg/graalvm/polyglot/management/ExecutionEvent;)V (7)
(Lorg/graalvm/polyglot/management/ExecutionEvent;)V
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.onEnter:(Ljava/util/function/Consumer;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.expressions:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.collectExceptions:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.setupListener:(Lorg/graalvm/polyglot/management/ExecutionListener$Builder;)Lorg/graalvm/polyglot/management/ExecutionListener;
pop
1: aconst_null
astore 3
start local 3 2: aload 0
ldc "EXPRESSION(THROW(foo, msg))"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
3: goto 6
StackMap locals: com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest top top org.graalvm.polyglot.PolyglotException
StackMap stack: org.graalvm.polyglot.PolyglotException
4: astore 4
start local 4 5: aload 4
astore 3
end local 4 6: StackMap locals:
StackMap stack:
aload 3
invokestatic org.junit.Assert.assertNotNull:(Ljava/lang/Object;)V
7: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
astore 1
start local 1 8: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getException:()Lorg/graalvm/polyglot/PolyglotException;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
9: return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;
8 10 1 event Lorg/graalvm/polyglot/management/ExecutionEvent;
2 10 3 thrownError Lorg/graalvm/polyglot/PolyglotException;
5 6 4 e Lorg/graalvm/polyglot/PolyglotException;
Exception table:
from to target type
2 3 4 Class org.graalvm.polyglot.PolyglotException
RuntimeVisibleAnnotations:
org.junit.Test()
public void testCollectErrorsDisabled();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=1
start local 0 0: aload 0
invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
aload 0
invokedynamic accept(Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;)Ljava/util/function/Consumer;
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;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.add(Lorg/graalvm/polyglot/management/ExecutionEvent;)V (7)
(Lorg/graalvm/polyglot/management/ExecutionEvent;)V
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.onReturn:(Ljava/util/function/Consumer;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.expressions:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_0
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.collectExceptions:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.setupListener:(Lorg/graalvm/polyglot/management/ExecutionListener$Builder;)Lorg/graalvm/polyglot/management/ExecutionListener;
pop
1: aconst_null
astore 3
start local 3 2: aload 0
ldc "EXPRESSION(THROW(foo, msg))"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
3: goto 6
StackMap locals: com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest top top org.graalvm.polyglot.PolyglotException
StackMap stack: org.graalvm.polyglot.PolyglotException
4: astore 4
start local 4 5: aload 4
astore 3
end local 4 6: StackMap locals:
StackMap stack:
aload 3
invokestatic org.junit.Assert.assertNotNull:(Ljava/lang/Object;)V
7: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
astore 1
start local 1 8: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getException:()Lorg/graalvm/polyglot/PolyglotException;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
9: return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;
8 10 1 event Lorg/graalvm/polyglot/management/ExecutionEvent;
2 10 3 thrownError Lorg/graalvm/polyglot/PolyglotException;
5 6 4 e Lorg/graalvm/polyglot/PolyglotException;
Exception table:
from to target type
2 3 4 Class org.graalvm.polyglot.PolyglotException
RuntimeVisibleAnnotations:
org.junit.Test()
public void testCombinedElements();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
aload 0
invokedynamic accept(Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;)Ljava/util/function/Consumer;
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;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.add(Lorg/graalvm/polyglot/management/ExecutionEvent;)V (7)
(Lorg/graalvm/polyglot/management/ExecutionEvent;)V
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.onEnter:(Ljava/util/function/Consumer;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.expressions:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.setupListener:(Lorg/graalvm/polyglot/management/ExecutionListener$Builder;)Lorg/graalvm/polyglot/management/ExecutionListener;
pop
1: aload 0
ldc "MULTIPLE[EXPRESSION, STATEMENT, ROOT]"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
2: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
astore 1
start local 1 3: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.isExpression:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
4: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.isStatement:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
5: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.isRoot:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
6: aload 0
invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
aload 0
invokedynamic accept(Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;)Ljava/util/function/Consumer;
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;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.add(Lorg/graalvm/polyglot/management/ExecutionEvent;)V (7)
(Lorg/graalvm/polyglot/management/ExecutionEvent;)V
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.onEnter:(Ljava/util/function/Consumer;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.statements:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.setupListener:(Lorg/graalvm/polyglot/management/ExecutionListener$Builder;)Lorg/graalvm/polyglot/management/ExecutionListener;
pop
7: aload 0
ldc "MULTIPLE[EXPRESSION, STATEMENT, ROOT]"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
8: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
astore 1
9: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.isExpression:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
10: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.isStatement:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
11: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.isRoot:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
12: aload 0
invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
aload 0
invokedynamic accept(Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;)Ljava/util/function/Consumer;
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;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.add(Lorg/graalvm/polyglot/management/ExecutionEvent;)V (7)
(Lorg/graalvm/polyglot/management/ExecutionEvent;)V
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.onEnter:(Ljava/util/function/Consumer;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.roots:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.setupListener:(Lorg/graalvm/polyglot/management/ExecutionListener$Builder;)Lorg/graalvm/polyglot/management/ExecutionListener;
pop
13: aload 0
ldc "ROOT(MULTIPLE[EXPRESSION, STATEMENT, ROOT])"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
14: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.isRoot:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
15: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
astore 1
16: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.isExpression:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
17: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.isStatement:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
18: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.isRoot:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
19: aload 0
invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
aload 0
invokedynamic accept(Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;)Ljava/util/function/Consumer;
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;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.add(Lorg/graalvm/polyglot/management/ExecutionEvent;)V (7)
(Lorg/graalvm/polyglot/management/ExecutionEvent;)V
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.onEnter:(Ljava/util/function/Consumer;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.expressions:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.statements:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.roots:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.setupListener:(Lorg/graalvm/polyglot/management/ExecutionListener$Builder;)Lorg/graalvm/polyglot/management/ExecutionListener;
pop
20: aload 0
ldc "ROOT(MULTIPLE[EXPRESSION, STATEMENT, ROOT])"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
21: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.isRoot:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
22: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
astore 1
23: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.isExpression:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
24: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.isStatement:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
25: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.isRoot:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
26: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;
3 27 1 event Lorg/graalvm/polyglot/management/ExecutionEvent;
RuntimeVisibleAnnotations:
org.junit.Test()
public void testSourceFilter();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=1
start local 0 0: aload 0
invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
aload 0
invokedynamic accept(Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;)Ljava/util/function/Consumer;
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;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.add(Lorg/graalvm/polyglot/management/ExecutionEvent;)V (7)
(Lorg/graalvm/polyglot/management/ExecutionEvent;)V
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.onEnter:(Ljava/util/function/Consumer;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.expressions:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
invokedynamic test()Ljava/util/function/Predicate;
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;)Z
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.lambda$28(Lorg/graalvm/polyglot/Source;)Z (6)
(Lorg/graalvm/polyglot/Source;)Z
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.sourceFilter:(Ljava/util/function/Predicate;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.setupListener:(Lorg/graalvm/polyglot/management/ExecutionListener$Builder;)Lorg/graalvm/polyglot/management/ExecutionListener;
pop
1: ldc "instrumentation-test-language"
ldc "EXPRESSION"
ldc "test0"
invokestatic org.graalvm.polyglot.Source.newBuilder:(Ljava/lang/String;Ljava/lang/CharSequence;Ljava/lang/String;)Lorg/graalvm/polyglot/Source$Builder;
invokevirtual org.graalvm.polyglot.Source$Builder.buildLiteral:()Lorg/graalvm/polyglot/Source;
astore 3
start local 3 2: ldc "instrumentation-test-language"
ldc "EXPRESSION"
ldc "test1"
invokestatic org.graalvm.polyglot.Source.newBuilder:(Ljava/lang/String;Ljava/lang/CharSequence;Ljava/lang/String;)Lorg/graalvm/polyglot/Source$Builder;
invokevirtual org.graalvm.polyglot.Source$Builder.buildLiteral:()Lorg/graalvm/polyglot/Source;
astore 4
start local 4 3: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.context:Lorg/graalvm/polyglot/Context;
aload 3
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
pop
4: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.context:Lorg/graalvm/polyglot/Context;
aload 4
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
pop
5: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
astore 1
start local 1 6: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.isExpression:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
7: ldc "test1"
aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getLocation:()Lorg/graalvm/polyglot/SourceSection;
invokevirtual org.graalvm.polyglot.SourceSection.getSource:()Lorg/graalvm/polyglot/Source;
invokevirtual org.graalvm.polyglot.Source.getName:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
8: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.isEmpty:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
9: return
end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;
6 10 1 event Lorg/graalvm/polyglot/management/ExecutionEvent;
2 10 3 source0 Lorg/graalvm/polyglot/Source;
3 10 4 source1 Lorg/graalvm/polyglot/Source;
RuntimeVisibleAnnotations:
org.junit.Test()
public void testDispose();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic accept(Ljava/util/Deque;)Ljava/util/function/Consumer;
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;)V
java/util/Deque.add(Ljava/lang/Object;)Z (9 itf)
(Lorg/graalvm/polyglot/management/ExecutionEvent;)V
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.onEnter:(Ljava/util/function/Consumer;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.expressions:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.setupListener:(Lorg/graalvm/polyglot/management/ExecutionListener$Builder;)Lorg/graalvm/polyglot/management/ExecutionListener;
astore 1
start local 1 1: aload 0
ldc "EXPRESSION"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
2: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.isExpression:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
3: aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionListener.close:()V
4: aload 0
ldc "EXPRESSION"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
5: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.isEmpty:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;
1 7 1 listener Lorg/graalvm/polyglot/management/ExecutionListener;
RuntimeVisibleAnnotations:
org.junit.Test()
public void testParallelAttachDispose();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=8, args_size=1
start local 0 0: aload 0
iconst_0
anewarray java.lang.String
invokestatic org.graalvm.polyglot.Context.create:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context;
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.setupEnv:(Lorg/graalvm/polyglot/Context;)V
1: bipush 10
invokestatic java.util.concurrent.Executors.newFixedThreadPool:(I)Ljava/util/concurrent/ExecutorService;
astore 1
start local 1 2: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.context:Lorg/graalvm/polyglot/Context;
invokevirtual org.graalvm.polyglot.Context.leave:()V
3: aload 1
aload 0
invokedynamic call(Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;)Ljava/util/concurrent/Callable;
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/instrumentation/test/ExecutionListenerTest.lambda$30()Lorg/graalvm/polyglot/Source; (7)
()Lorg/graalvm/polyglot/Source;
invokeinterface java.util.concurrent.ExecutorService.submit:(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Future;
astore 2
start local 2 4: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 3
start local 3 5: iconst_0
istore 4
start local 4 6: goto 10
7: StackMap locals: com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest java.util.concurrent.ExecutorService java.util.concurrent.Future java.util.List int
StackMap stack:
aload 1
aload 0
invokedynamic call(Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;)Ljava/util/concurrent/Callable;
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/instrumentation/test/ExecutionListenerTest.lambda$31()Lorg/graalvm/polyglot/management/ExecutionListener; (7)
()Lorg/graalvm/polyglot/management/ExecutionListener;
invokeinterface java.util.concurrent.ExecutorService.submit:(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Future;
astore 5
start local 5 8: aload 3
aload 5
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 5 9: iinc 4 1
StackMap locals:
StackMap stack:
10: iload 4
bipush 100
if_icmplt 7
end local 4 11: ldc 100
invokestatic java.lang.Thread.sleep:(J)V
12: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 4
start local 4 13: aload 3
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 17
StackMap locals: com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest java.util.concurrent.ExecutorService java.util.concurrent.Future java.util.List java.util.List top java.util.Iterator
StackMap stack:
14: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.concurrent.Future
astore 5
start local 5 15: aload 5
invokeinterface java.util.concurrent.Future.get:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionListener
astore 7
start local 7 16: aload 4
aload 1
aload 7
invokedynamic run(Lorg/graalvm/polyglot/management/ExecutionListener;)Ljava/lang/Runnable;
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:
()V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.lambda$33(Lorg/graalvm/polyglot/management/ExecutionListener;)V (6)
()V
invokeinterface java.util.concurrent.ExecutorService.submit:(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 7 end local 5 17: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 14
18: aload 4
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 21
StackMap locals:
StackMap stack:
19: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.concurrent.Future
astore 5
start local 5 20: aload 5
invokeinterface java.util.concurrent.Future.get:()Ljava/lang/Object;
pop
end local 5 21: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 19
22: invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
invokedynamic accept()Ljava/util/function/Consumer;
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;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.lambda$34(Lorg/graalvm/polyglot/management/ExecutionEvent;)V (6)
(Lorg/graalvm/polyglot/management/ExecutionEvent;)V
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.onEnter:(Ljava/util/function/Consumer;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
23: iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.expressions:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.context:Lorg/graalvm/polyglot/Context;
invokevirtual org.graalvm.polyglot.Context.getEngine:()Lorg/graalvm/polyglot/Engine;
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.attach:(Lorg/graalvm/polyglot/Engine;)Lorg/graalvm/polyglot/management/ExecutionListener;
pop
24: aload 2
invokeinterface java.util.concurrent.Future.get:()Ljava/lang/Object;
pop
25: ldc "exception expected"
invokestatic org.junit.Assert.fail:(Ljava/lang/String;)V
26: goto 30
StackMap locals: com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest java.util.concurrent.ExecutorService java.util.concurrent.Future java.util.List java.util.List
StackMap stack: java.util.concurrent.ExecutionException
27: astore 5
start local 5 28: aload 5
invokevirtual java.util.concurrent.ExecutionException.getCause:()Ljava/lang/Throwable;
instanceof org.graalvm.polyglot.PolyglotException
invokestatic org.junit.Assert.assertTrue:(Z)V
29: aload 5
invokevirtual java.util.concurrent.ExecutionException.getCause:()Ljava/lang/Throwable;
checkcast org.graalvm.polyglot.PolyglotException
invokevirtual org.graalvm.polyglot.PolyglotException.asHostException:()Ljava/lang/Throwable;
instanceof java.lang.RuntimeException
invokestatic org.junit.Assert.assertTrue:(Z)V
end local 5 30: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.concurrent.ExecutorService.shutdown:()V
31: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.context:Lorg/graalvm/polyglot/Context;
invokevirtual org.graalvm.polyglot.Context.enter:()V
32: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 33 0 this Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;
2 33 1 service Ljava/util/concurrent/ExecutorService;
4 33 2 code Ljava/util/concurrent/Future<*>;
5 33 3 attachTasks Ljava/util/List<Ljava/util/concurrent/Future<Lorg/graalvm/polyglot/management/ExecutionListener;>;>;
6 11 4 i I
8 9 5 attachTask Ljava/util/concurrent/Future<Lorg/graalvm/polyglot/management/ExecutionListener;>;
13 33 4 closingTasks Ljava/util/List<Ljava/util/concurrent/Future<*>;>;
15 17 5 attachTask Ljava/util/concurrent/Future<Lorg/graalvm/polyglot/management/ExecutionListener;>;
16 17 7 listener Lorg/graalvm/polyglot/management/ExecutionListener;
20 21 5 task Ljava/util/concurrent/Future<*>;
28 30 5 e Ljava/util/concurrent/ExecutionException;
Exception table:
from to target type
24 26 27 Class java.util.concurrent.ExecutionException
Exceptions:
throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
RuntimeVisibleAnnotations:
org.junit.Test()
public void testRootName();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
aload 0
invokedynamic accept(Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;)Ljava/util/function/Consumer;
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;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.add(Lorg/graalvm/polyglot/management/ExecutionEvent;)V (7)
(Lorg/graalvm/polyglot/management/ExecutionEvent;)V
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.onEnter:(Ljava/util/function/Consumer;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
1: invokedynamic test()Ljava/util/function/Predicate;
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;)Z
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.lambda$36(Ljava/lang/String;)Z (6)
(Ljava/lang/String;)Z
2: invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.rootNameFilter:(Ljava/util/function/Predicate;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
3: iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.expressions:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
4: invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.setupListener:(Lorg/graalvm/polyglot/management/ExecutionListener$Builder;)Lorg/graalvm/polyglot/management/ExecutionListener;
pop
5: aload 0
ldc "DEFINE(foo, EXPRESSION)"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
6: aload 0
ldc "DEFINE(bar, EXPRESSION)"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
7: aload 0
ldc "DEFINE(baz, EXPRESSION)"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
8: aload 0
ldc "CALL(foo)"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
9: ldc "foo"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getRootName:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
10: aload 0
ldc "CALL(bar)"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
11: ldc "bar"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.management.ExecutionEvent
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getRootName:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
12: aload 0
ldc "CALL(baz)"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
13: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;
RuntimeVisibleAnnotations:
org.junit.Test()
public void testErrorInRootName();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=1
start local 0 0: aload 0
invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
aload 0
invokedynamic accept(Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;)Ljava/util/function/Consumer;
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;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.add(Lorg/graalvm/polyglot/management/ExecutionEvent;)V (7)
(Lorg/graalvm/polyglot/management/ExecutionEvent;)V
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.onEnter:(Ljava/util/function/Consumer;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
1: invokedynamic test()Ljava/util/function/Predicate;
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;)Z
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.lambda$38(Ljava/lang/String;)Z (6)
(Ljava/lang/String;)Z
2: invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.rootNameFilter:(Ljava/util/function/Predicate;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
3: iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.expressions:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
4: invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.setupListener:(Lorg/graalvm/polyglot/management/ExecutionListener$Builder;)Lorg/graalvm/polyglot/management/ExecutionListener;
astore 1
start local 1 5: aload 0
ldc "DEFINE(foo, EXPRESSION)"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
6: aload 0
ldc "CALL(foo)"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
7: invokestatic org.junit.Assert.fail:()V
8: goto 11
StackMap locals: com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest org.graalvm.polyglot.management.ExecutionListener
StackMap stack: org.graalvm.polyglot.PolyglotException
9: astore 3
start local 3 10: aload 3
invokevirtual org.graalvm.polyglot.PolyglotException.asHostException:()Ljava/lang/Throwable;
instanceof java.lang.RuntimeException
invokestatic org.junit.Assert.assertTrue:(Z)V
end local 3 11: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionListener.close:()V
12: invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
aload 0
invokedynamic accept(Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;)Ljava/util/function/Consumer;
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;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.add(Lorg/graalvm/polyglot/management/ExecutionEvent;)V (7)
(Lorg/graalvm/polyglot/management/ExecutionEvent;)V
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.onEnter:(Ljava/util/function/Consumer;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.expressions:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
invokedynamic test()Ljava/util/function/Predicate;
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;)Z
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.lambda$40(Ljava/lang/String;)Z (6)
(Ljava/lang/String;)Z
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.rootNameFilter:(Ljava/util/function/Predicate;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
astore 3
start local 3 13: aload 3
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.context:Lorg/graalvm/polyglot/Context;
invokevirtual org.graalvm.polyglot.Context.getEngine:()Lorg/graalvm/polyglot/Engine;
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.attach:(Lorg/graalvm/polyglot/Engine;)Lorg/graalvm/polyglot/management/ExecutionListener;
pop
14: invokestatic org.junit.Assert.fail:()V
15: goto 18
StackMap locals: com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest org.graalvm.polyglot.management.ExecutionListener top org.graalvm.polyglot.management.ExecutionListener$Builder
StackMap stack: org.graalvm.polyglot.PolyglotException
16: astore 5
start local 5 17: aload 5
invokevirtual org.graalvm.polyglot.PolyglotException.asHostException:()Ljava/lang/Throwable;
instanceof java.lang.RuntimeException
invokestatic org.junit.Assert.assertTrue:(Z)V
end local 5 18: StackMap locals:
StackMap stack:
return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;
5 19 1 listener Lorg/graalvm/polyglot/management/ExecutionListener;
10 11 3 e Lorg/graalvm/polyglot/PolyglotException;
13 19 3 builder Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
17 18 5 e Lorg/graalvm/polyglot/PolyglotException;
Exception table:
from to target type
5 8 9 Class org.graalvm.polyglot.PolyglotException
13 15 16 Class org.graalvm.polyglot.PolyglotException
RuntimeVisibleAnnotations:
org.junit.Test()
public void testErrorInSourceFilter();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=1
start local 0 0: aload 0
invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
aload 0
invokedynamic accept(Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;)Ljava/util/function/Consumer;
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;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.add(Lorg/graalvm/polyglot/management/ExecutionEvent;)V (7)
(Lorg/graalvm/polyglot/management/ExecutionEvent;)V
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.onEnter:(Ljava/util/function/Consumer;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
1: invokedynamic test()Ljava/util/function/Predicate;
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;)Z
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.lambda$42(Lorg/graalvm/polyglot/Source;)Z (6)
(Lorg/graalvm/polyglot/Source;)Z
2: invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.sourceFilter:(Ljava/util/function/Predicate;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
3: iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.expressions:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
4: invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.setupListener:(Lorg/graalvm/polyglot/management/ExecutionListener$Builder;)Lorg/graalvm/polyglot/management/ExecutionListener;
astore 1
start local 1 5: aload 0
ldc "DEFINE(foo, EXPRESSION)"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
6: invokestatic org.junit.Assert.fail:()V
7: goto 10
StackMap locals: com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest org.graalvm.polyglot.management.ExecutionListener
StackMap stack: org.graalvm.polyglot.PolyglotException
8: astore 3
start local 3 9: aload 3
invokevirtual org.graalvm.polyglot.PolyglotException.asHostException:()Ljava/lang/Throwable;
instanceof java.lang.RuntimeException
invokestatic org.junit.Assert.assertTrue:(Z)V
end local 3 10: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.graalvm.polyglot.management.ExecutionListener.close:()V
11: invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
aload 0
invokedynamic accept(Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;)Ljava/util/function/Consumer;
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;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.add(Lorg/graalvm/polyglot/management/ExecutionEvent;)V (7)
(Lorg/graalvm/polyglot/management/ExecutionEvent;)V
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.onEnter:(Ljava/util/function/Consumer;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.expressions:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
invokedynamic test()Ljava/util/function/Predicate;
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;)Z
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.lambda$44(Lorg/graalvm/polyglot/Source;)Z (6)
(Lorg/graalvm/polyglot/Source;)Z
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.sourceFilter:(Ljava/util/function/Predicate;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
astore 3
start local 3 12: aload 3
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.context:Lorg/graalvm/polyglot/Context;
invokevirtual org.graalvm.polyglot.Context.getEngine:()Lorg/graalvm/polyglot/Engine;
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.attach:(Lorg/graalvm/polyglot/Engine;)Lorg/graalvm/polyglot/management/ExecutionListener;
pop
13: invokestatic org.junit.Assert.fail:()V
14: goto 17
StackMap locals: com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest org.graalvm.polyglot.management.ExecutionListener top org.graalvm.polyglot.management.ExecutionListener$Builder
StackMap stack: org.graalvm.polyglot.PolyglotException
15: astore 5
start local 5 16: aload 5
invokevirtual org.graalvm.polyglot.PolyglotException.asHostException:()Ljava/lang/Throwable;
instanceof java.lang.RuntimeException
invokestatic org.junit.Assert.assertTrue:(Z)V
end local 5 17: StackMap locals:
StackMap stack:
return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;
5 18 1 listener Lorg/graalvm/polyglot/management/ExecutionListener;
9 10 3 e Lorg/graalvm/polyglot/PolyglotException;
12 18 3 builder Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
16 17 5 e Lorg/graalvm/polyglot/PolyglotException;
Exception table:
from to target type
5 7 8 Class org.graalvm.polyglot.PolyglotException
12 14 15 Class org.graalvm.polyglot.PolyglotException
RuntimeVisibleAnnotations:
org.junit.Test()
public void testErrorInOnEnter();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
invokedynamic accept()Ljava/util/function/Consumer;
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;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.lambda$45(Lorg/graalvm/polyglot/management/ExecutionEvent;)V (6)
(Lorg/graalvm/polyglot/management/ExecutionEvent;)V
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.onEnter:(Ljava/util/function/Consumer;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
1: iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.expressions:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
2: invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.setupListener:(Lorg/graalvm/polyglot/management/ExecutionListener$Builder;)Lorg/graalvm/polyglot/management/ExecutionListener;
pop
3: aload 0
ldc "EXPRESSION"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
4: invokestatic org.junit.Assert.fail:()V
5: goto 8
StackMap locals:
StackMap stack: org.graalvm.polyglot.PolyglotException
6: astore 1
start local 1 7: aload 1
invokevirtual org.graalvm.polyglot.PolyglotException.asHostException:()Ljava/lang/Throwable;
instanceof java.lang.RuntimeException
invokestatic org.junit.Assert.assertTrue:(Z)V
end local 1 8: StackMap locals:
StackMap stack:
aload 0
invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
invokedynamic accept()Ljava/util/function/Consumer;
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;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.lambda$46(Lorg/graalvm/polyglot/management/ExecutionEvent;)V (6)
(Lorg/graalvm/polyglot/management/ExecutionEvent;)V
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.onEnter:(Ljava/util/function/Consumer;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
9: iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.expressions:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.collectExceptions:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.collectInputValues:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.collectReturnValue:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
10: invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.setupListener:(Lorg/graalvm/polyglot/management/ExecutionListener$Builder;)Lorg/graalvm/polyglot/management/ExecutionListener;
pop
11: aload 0
ldc "EXPRESSION"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
12: invokestatic org.junit.Assert.fail:()V
13: goto 16
StackMap locals:
StackMap stack: org.graalvm.polyglot.PolyglotException
14: astore 1
start local 1 15: aload 1
invokevirtual org.graalvm.polyglot.PolyglotException.asHostException:()Ljava/lang/Throwable;
instanceof java.lang.RuntimeException
invokestatic org.junit.Assert.assertTrue:(Z)V
end local 1 16: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;
7 8 1 e Lorg/graalvm/polyglot/PolyglotException;
15 16 1 e Lorg/graalvm/polyglot/PolyglotException;
Exception table:
from to target type
3 5 6 Class org.graalvm.polyglot.PolyglotException
11 13 14 Class org.graalvm.polyglot.PolyglotException
RuntimeVisibleAnnotations:
org.junit.Test()
public void testErrorInOnReturn();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
invokedynamic accept()Ljava/util/function/Consumer;
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;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.lambda$47(Lorg/graalvm/polyglot/management/ExecutionEvent;)V (6)
(Lorg/graalvm/polyglot/management/ExecutionEvent;)V
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.onReturn:(Ljava/util/function/Consumer;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
1: iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.expressions:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
2: invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.setupListener:(Lorg/graalvm/polyglot/management/ExecutionListener$Builder;)Lorg/graalvm/polyglot/management/ExecutionListener;
pop
3: aload 0
ldc "EXPRESSION"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
4: invokestatic org.junit.Assert.fail:()V
5: goto 8
StackMap locals:
StackMap stack: org.graalvm.polyglot.PolyglotException
6: astore 1
start local 1 7: aload 1
invokevirtual org.graalvm.polyglot.PolyglotException.asHostException:()Ljava/lang/Throwable;
instanceof java.lang.RuntimeException
invokestatic org.junit.Assert.assertTrue:(Z)V
end local 1 8: StackMap locals:
StackMap stack:
aload 0
invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
invokedynamic accept()Ljava/util/function/Consumer;
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;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.lambda$48(Lorg/graalvm/polyglot/management/ExecutionEvent;)V (6)
(Lorg/graalvm/polyglot/management/ExecutionEvent;)V
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.onReturn:(Ljava/util/function/Consumer;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
9: iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.expressions:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.collectExceptions:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.collectInputValues:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.collectReturnValue:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
10: invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.setupListener:(Lorg/graalvm/polyglot/management/ExecutionListener$Builder;)Lorg/graalvm/polyglot/management/ExecutionListener;
pop
11: aload 0
ldc "EXPRESSION"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
12: invokestatic org.junit.Assert.fail:()V
13: goto 16
StackMap locals:
StackMap stack: org.graalvm.polyglot.PolyglotException
14: astore 1
start local 1 15: aload 1
invokevirtual org.graalvm.polyglot.PolyglotException.asHostException:()Ljava/lang/Throwable;
instanceof java.lang.RuntimeException
invokestatic org.junit.Assert.assertTrue:(Z)V
end local 1 16: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;
7 8 1 e Lorg/graalvm/polyglot/PolyglotException;
15 16 1 e Lorg/graalvm/polyglot/PolyglotException;
Exception table:
from to target type
3 5 6 Class org.graalvm.polyglot.PolyglotException
11 13 14 Class org.graalvm.polyglot.PolyglotException
RuntimeVisibleAnnotations:
org.junit.Test()
public void testErrorInOnError();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
invokedynamic accept()Ljava/util/function/Consumer;
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;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.lambda$49(Lorg/graalvm/polyglot/management/ExecutionEvent;)V (6)
(Lorg/graalvm/polyglot/management/ExecutionEvent;)V
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.onReturn:(Ljava/util/function/Consumer;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
1: iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.expressions:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
2: invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.setupListener:(Lorg/graalvm/polyglot/management/ExecutionListener$Builder;)Lorg/graalvm/polyglot/management/ExecutionListener;
pop
3: aload 0
ldc "TRY(EXPRESSION(THROW(error, message)), CATCH(error))"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
4: invokestatic org.junit.Assert.fail:()V
5: goto 8
StackMap locals:
StackMap stack: org.graalvm.polyglot.PolyglotException
6: astore 1
start local 1 7: aload 1
invokevirtual org.graalvm.polyglot.PolyglotException.asHostException:()Ljava/lang/Throwable;
instanceof java.lang.RuntimeException
invokestatic org.junit.Assert.assertTrue:(Z)V
end local 1 8: StackMap locals:
StackMap stack:
aload 0
invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
invokedynamic accept()Ljava/util/function/Consumer;
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;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.lambda$50(Lorg/graalvm/polyglot/management/ExecutionEvent;)V (6)
(Lorg/graalvm/polyglot/management/ExecutionEvent;)V
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.onReturn:(Ljava/util/function/Consumer;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
9: iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.expressions:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.collectExceptions:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.collectInputValues:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.collectReturnValue:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
10: invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.setupListener:(Lorg/graalvm/polyglot/management/ExecutionListener$Builder;)Lorg/graalvm/polyglot/management/ExecutionListener;
pop
11: aload 0
ldc "TRY(EXPRESSION(THROW(error, message)), CATCH(error))"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
pop
12: invokestatic org.junit.Assert.fail:()V
13: goto 18
StackMap locals:
StackMap stack: org.graalvm.polyglot.PolyglotException
14: astore 1
start local 1 15: aload 1
invokevirtual org.graalvm.polyglot.PolyglotException.asHostException:()Ljava/lang/Throwable;
instanceof java.lang.RuntimeException
invokestatic org.junit.Assert.assertTrue:(Z)V
16: aload 1
invokevirtual org.graalvm.polyglot.PolyglotException.asHostException:()Ljava/lang/Throwable;
invokevirtual java.lang.Throwable.getCause:()Ljava/lang/Throwable;
instanceof org.graalvm.polyglot.PolyglotException
invokestatic org.junit.Assert.assertTrue:(Z)V
17: ldc "message"
aload 1
invokevirtual org.graalvm.polyglot.PolyglotException.asHostException:()Ljava/lang/Throwable;
invokevirtual java.lang.Throwable.getCause:()Ljava/lang/Throwable;
checkcast org.graalvm.polyglot.PolyglotException
invokevirtual org.graalvm.polyglot.PolyglotException.getMessage:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
end local 1 18: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;
7 8 1 e Lorg/graalvm/polyglot/PolyglotException;
15 18 1 e Lorg/graalvm/polyglot/PolyglotException;
Exception table:
from to target type
3 5 6 Class org.graalvm.polyglot.PolyglotException
11 13 14 Class org.graalvm.polyglot.PolyglotException
RuntimeVisibleAnnotations:
org.junit.Test()
public void testInvalidBuilder();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: iconst_0
anewarray java.lang.String
invokestatic org.graalvm.polyglot.Context.create:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context;
astore 1
start local 1 1: invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
aload 1
invokevirtual org.graalvm.polyglot.Context.getEngine:()Lorg/graalvm/polyglot/Engine;
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.attach:(Lorg/graalvm/polyglot/Engine;)Lorg/graalvm/polyglot/management/ExecutionListener;
pop
2: invokestatic org.junit.Assert.fail:()V
3: goto 5
StackMap locals: com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest org.graalvm.polyglot.Context
StackMap stack: java.lang.IllegalArgumentException
4: pop
5: StackMap locals:
StackMap stack:
invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
invokedynamic accept()Ljava/util/function/Consumer;
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;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.lambda$51(Lorg/graalvm/polyglot/management/ExecutionEvent;)V (6)
(Lorg/graalvm/polyglot/management/ExecutionEvent;)V
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.onEnter:(Ljava/util/function/Consumer;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
6: aload 1
invokevirtual org.graalvm.polyglot.Context.getEngine:()Lorg/graalvm/polyglot/Engine;
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.attach:(Lorg/graalvm/polyglot/Engine;)Lorg/graalvm/polyglot/management/ExecutionListener;
pop
7: invokestatic org.junit.Assert.fail:()V
8: goto 10
StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
9: pop
10: StackMap locals:
StackMap stack:
invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.statements:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
aload 1
invokevirtual org.graalvm.polyglot.Context.getEngine:()Lorg/graalvm/polyglot/Engine;
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.attach:(Lorg/graalvm/polyglot/Engine;)Lorg/graalvm/polyglot/management/ExecutionListener;
pop
11: invokestatic org.junit.Assert.fail:()V
12: goto 14
StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
13: pop
14: StackMap locals:
StackMap stack:
invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.expressions:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
aload 1
invokevirtual org.graalvm.polyglot.Context.getEngine:()Lorg/graalvm/polyglot/Engine;
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.attach:(Lorg/graalvm/polyglot/Engine;)Lorg/graalvm/polyglot/management/ExecutionListener;
pop
15: invokestatic org.junit.Assert.fail:()V
16: goto 18
StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
17: pop
18: StackMap locals:
StackMap stack:
invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.roots:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
aload 1
invokevirtual org.graalvm.polyglot.Context.getEngine:()Lorg/graalvm/polyglot/Engine;
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.attach:(Lorg/graalvm/polyglot/Engine;)Lorg/graalvm/polyglot/management/ExecutionListener;
pop
19: invokestatic org.junit.Assert.fail:()V
20: goto 22
StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
21: pop
22: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.graalvm.polyglot.Context.close:()V
23: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;
1 24 1 ctx Lorg/graalvm/polyglot/Context;
Exception table:
from to target type
1 3 4 Class java.lang.IllegalArgumentException
5 8 9 Class java.lang.IllegalArgumentException
10 12 13 Class java.lang.IllegalArgumentException
14 16 17 Class java.lang.IllegalArgumentException
18 20 21 Class java.lang.IllegalArgumentException
RuntimeVisibleAnnotations:
org.junit.Test()
public void testDifferentSourcesInAST();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
iconst_0
anewarray java.lang.String
invokestatic org.graalvm.polyglot.Context.create:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context;
new com.oracle.truffle.api.instrumentation.test.SourceListenerTest$MultiSourceASTLanguage
dup
invokespecial com.oracle.truffle.api.instrumentation.test.SourceListenerTest$MultiSourceASTLanguage.<init>:()V
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.setupEnv:(Lorg/graalvm/polyglot/Context;Lcom/oracle/truffle/api/test/polyglot/ProxyLanguage;)V
1: ldc "abcd"
astore 1
start local 1 2: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 2
start local 2 3: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.instrumentEnv:Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
invokevirtual com.oracle.truffle.api.instrumentation.TruffleInstrument$Env.getInstrumenter:()Lcom/oracle/truffle/api/instrumentation/Instrumenter;
getstatic com.oracle.truffle.api.instrumentation.SourceFilter.ANY:Lcom/oracle/truffle/api/instrumentation/SourceFilter;
aload 2
invokedynamic onExecute(Ljava/lang/StringBuilder;)Lcom/oracle/truffle/api/instrumentation/ExecuteSourceListener;
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/instrumentation/ExecuteSourceEvent;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.lambda$52(Ljava/lang/StringBuilder;Lcom/oracle/truffle/api/instrumentation/ExecuteSourceEvent;)V (6)
(Lcom/oracle/truffle/api/instrumentation/ExecuteSourceEvent;)V
iconst_1
invokevirtual com.oracle.truffle.api.instrumentation.Instrumenter.attachExecuteSourceListener:(Lcom/oracle/truffle/api/instrumentation/SourceFilter;Lcom/oracle/truffle/api/instrumentation/ExecuteSourceListener;Z)Lcom/oracle/truffle/api/instrumentation/EventBinding;
pop
4: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.context:Lorg/graalvm/polyglot/Context;
ldc "proxyLanguage"
aload 1
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
5: new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;
2 7 1 code Ljava/lang/String;
3 7 2 loadedCode Ljava/lang/StringBuilder;
RuntimeVisibleAnnotations:
org.junit.Test()
public void testMaterializedSourcesInAST();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
iconst_0
anewarray java.lang.String
invokestatic org.graalvm.polyglot.Context.create:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context;
new com.oracle.truffle.api.instrumentation.test.SourceListenerTest$MultiSourceASTLanguage
dup
invokespecial com.oracle.truffle.api.instrumentation.test.SourceListenerTest$MultiSourceASTLanguage.<init>:()V
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.setupEnv:(Lorg/graalvm/polyglot/Context;Lcom/oracle/truffle/api/test/polyglot/ProxyLanguage;)V
1: ldc "Mabcd"
astore 1
start local 1 2: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 2
start local 2 3: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.instrumentEnv:Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
invokevirtual com.oracle.truffle.api.instrumentation.TruffleInstrument$Env.getInstrumenter:()Lcom/oracle/truffle/api/instrumentation/Instrumenter;
getstatic com.oracle.truffle.api.instrumentation.SourceFilter.ANY:Lcom/oracle/truffle/api/instrumentation/SourceFilter;
aload 2
invokedynamic onExecute(Ljava/lang/StringBuilder;)Lcom/oracle/truffle/api/instrumentation/ExecuteSourceListener;
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/instrumentation/ExecuteSourceEvent;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.lambda$53(Ljava/lang/StringBuilder;Lcom/oracle/truffle/api/instrumentation/ExecuteSourceEvent;)V (6)
(Lcom/oracle/truffle/api/instrumentation/ExecuteSourceEvent;)V
iconst_1
invokevirtual com.oracle.truffle.api.instrumentation.Instrumenter.attachExecuteSourceListener:(Lcom/oracle/truffle/api/instrumentation/SourceFilter;Lcom/oracle/truffle/api/instrumentation/ExecuteSourceListener;Z)Lcom/oracle/truffle/api/instrumentation/EventBinding;
pop
4: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.context:Lorg/graalvm/polyglot/Context;
ldc "proxyLanguage"
aload 1
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
5: new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "M"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
6: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.instrumentEnv:Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
invokevirtual com.oracle.truffle.api.instrumentation.TruffleInstrument$Env.getInstrumenter:()Lcom/oracle/truffle/api/instrumentation/Instrumenter;
getstatic com.oracle.truffle.api.instrumentation.SourceSectionFilter.ANY:Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter;
invokedynamic onLoad()Lcom/oracle/truffle/api/instrumentation/LoadSourceSectionListener;
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/instrumentation/LoadSourceSectionEvent;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.lambda$54(Lcom/oracle/truffle/api/instrumentation/LoadSourceSectionEvent;)V (6)
(Lcom/oracle/truffle/api/instrumentation/LoadSourceSectionEvent;)V
7: iconst_1
8: invokevirtual com.oracle.truffle.api.instrumentation.Instrumenter.attachLoadSourceSectionListener:(Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter;Lcom/oracle/truffle/api/instrumentation/LoadSourceSectionListener;Z)Lcom/oracle/truffle/api/instrumentation/EventBinding;
pop
9: new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
10: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;
2 11 1 code Ljava/lang/String;
3 11 2 loadedCode Ljava/lang/StringBuilder;
RuntimeVisibleAnnotations:
org.junit.Test()
public void testInsertedSourcesInAST();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
iconst_0
anewarray java.lang.String
invokestatic org.graalvm.polyglot.Context.create:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context;
new com.oracle.truffle.api.instrumentation.test.SourceListenerTest$MultiSourceASTLanguage
dup
invokespecial com.oracle.truffle.api.instrumentation.test.SourceListenerTest$MultiSourceASTLanguage.<init>:()V
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.setupEnv:(Lorg/graalvm/polyglot/Context;Lcom/oracle/truffle/api/test/polyglot/ProxyLanguage;)V
1: ldc "Iabcd"
astore 1
start local 1 2: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 2
start local 2 3: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.instrumentEnv:Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
invokevirtual com.oracle.truffle.api.instrumentation.TruffleInstrument$Env.getInstrumenter:()Lcom/oracle/truffle/api/instrumentation/Instrumenter;
getstatic com.oracle.truffle.api.instrumentation.SourceFilter.ANY:Lcom/oracle/truffle/api/instrumentation/SourceFilter;
aload 2
invokedynamic onExecute(Ljava/lang/StringBuilder;)Lcom/oracle/truffle/api/instrumentation/ExecuteSourceListener;
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/instrumentation/ExecuteSourceEvent;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.lambda$55(Ljava/lang/StringBuilder;Lcom/oracle/truffle/api/instrumentation/ExecuteSourceEvent;)V (6)
(Lcom/oracle/truffle/api/instrumentation/ExecuteSourceEvent;)V
iconst_1
invokevirtual com.oracle.truffle.api.instrumentation.Instrumenter.attachExecuteSourceListener:(Lcom/oracle/truffle/api/instrumentation/SourceFilter;Lcom/oracle/truffle/api/instrumentation/ExecuteSourceListener;Z)Lcom/oracle/truffle/api/instrumentation/EventBinding;
pop
4: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.context:Lorg/graalvm/polyglot/Context;
ldc "proxyLanguage"
aload 1
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
5: new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;
2 7 1 code Ljava/lang/String;
3 7 2 loadedCode Ljava/lang/StringBuilder;
RuntimeVisibleAnnotations:
org.junit.Test()
private org.graalvm.polyglot.Source eval(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: ldc "Previous events are not consumed"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.isEmpty:()Z
invokestatic org.junit.Assert.assertTrue:(Ljava/lang/String;Z)V
1: ldc "instrumentation-test-language"
aload 1
invokestatic org.graalvm.polyglot.Source.create:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Source;
astore 2
start local 2 2: aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.context:Lorg/graalvm/polyglot/Context;
aload 2
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
pop
3: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;
0 4 1 code Ljava/lang/String;
2 4 2 source Lorg/graalvm/polyglot/Source;
MethodParameters:
Name Flags
code
private org.graalvm.polyglot.management.ExecutionListener setupListener(org.graalvm.polyglot.management.ExecutionListener$Builder);
descriptor: (Lorg/graalvm/polyglot/management/ExecutionListener$Builder;)Lorg/graalvm/polyglot/management/ExecutionListener;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: iconst_0
anewarray java.lang.String
invokestatic org.graalvm.polyglot.Context.create:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context;
astore 2
start local 2 1: aload 1
aload 2
invokevirtual org.graalvm.polyglot.Context.getEngine:()Lorg/graalvm/polyglot/Engine;
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.attach:(Lorg/graalvm/polyglot/Engine;)Lorg/graalvm/polyglot/management/ExecutionListener;
astore 3
start local 3 2: aload 0
aload 2
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.setupEnv:(Lorg/graalvm/polyglot/Context;)V
3: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;
0 4 1 listenerBuilder Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
1 4 2 c Lorg/graalvm/polyglot/Context;
2 4 3 listener Lorg/graalvm/polyglot/management/ExecutionListener;
MethodParameters:
Name Flags
listenerBuilder
public void tearDown();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: ldc "Previous events are not consumed"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.events:Ljava/util/Deque;
invokeinterface java.util.Deque.isEmpty:()Z
invokestatic org.junit.Assert.assertTrue:(Ljava/lang/String;Z)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;
RuntimeVisibleAnnotations:
org.junit.After()
private static boolean lambda$28(org.graalvm.polyglot.Source);
descriptor: (Lorg/graalvm/polyglot/Source;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.graalvm.polyglot.Source.getName:()Ljava/lang/String;
ldc "test1"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 s Lorg/graalvm/polyglot/Source;
private org.graalvm.polyglot.Source lambda$30();
descriptor: ()Lorg/graalvm/polyglot/Source;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "LOOP(infinity, EXPRESSION)"
invokevirtual com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.eval:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;
Exceptions:
throws java.lang.Exception
private org.graalvm.polyglot.management.ExecutionListener lambda$31();
descriptor: ()Lorg/graalvm/polyglot/management/ExecutionListener;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: invokestatic org.graalvm.polyglot.management.ExecutionListener.newBuilder:()Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
invokedynamic accept()Ljava/util/function/Consumer;
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;)V
com/oracle/truffle/api/instrumentation/test/ExecutionListenerTest.lambda$32(Lorg/graalvm/polyglot/management/ExecutionEvent;)V (6)
(Lorg/graalvm/polyglot/management/ExecutionEvent;)V
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.onEnter:(Ljava/util/function/Consumer;)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
1: iconst_1
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.expressions:(Z)Lorg/graalvm/polyglot/management/ExecutionListener$Builder;
aload 0
getfield com.oracle.truffle.api.instrumentation.test.ExecutionListenerTest.context:Lorg/graalvm/polyglot/Context;
invokevirtual org.graalvm.polyglot.Context.getEngine:()Lorg/graalvm/polyglot/Engine;
invokevirtual org.graalvm.polyglot.management.ExecutionListener$Builder.attach:(Lorg/graalvm/polyglot/Engine;)Lorg/graalvm/polyglot/management/ExecutionListener;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/api/instrumentation/test/ExecutionListenerTest;
Exceptions:
throws java.lang.Exception
private static void lambda$33(org.graalvm.polyglot.management.ExecutionListener);
descriptor: (Lorg/graalvm/polyglot/management/ExecutionListener;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual org.graalvm.polyglot.management.ExecutionListener.close:()V
return
LocalVariableTable:
Start End Slot Name Signature
private static void lambda$34(org.graalvm.polyglot.management.ExecutionEvent);
descriptor: (Lorg/graalvm/polyglot/management/ExecutionEvent;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.RuntimeException
dup
ldc ""
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 e Lorg/graalvm/polyglot/management/ExecutionEvent;
private static boolean lambda$36(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "foo"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 1
aload 0
ldc "bar"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 s Ljava/lang/String;
private static boolean lambda$38(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: new java.lang.RuntimeException
dup
invokespecial java.lang.RuntimeException.<init>:()V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 s Ljava/lang/String;
private static boolean lambda$40(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: new java.lang.RuntimeException
dup
invokespecial java.lang.RuntimeException.<init>:()V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 s Ljava/lang/String;
private static boolean lambda$42(org.graalvm.polyglot.Source);
descriptor: (Lorg/graalvm/polyglot/Source;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: new java.lang.RuntimeException
dup
invokespecial java.lang.RuntimeException.<init>:()V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 s Lorg/graalvm/polyglot/Source;
private static boolean lambda$44(org.graalvm.polyglot.Source);
descriptor: (Lorg/graalvm/polyglot/Source;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: new java.lang.RuntimeException
dup
invokespecial java.lang.RuntimeException.<init>:()V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 s Lorg/graalvm/polyglot/Source;
private static void lambda$45(org.graalvm.polyglot.management.ExecutionEvent);
descriptor: (Lorg/graalvm/polyglot/management/ExecutionEvent;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: new java.lang.RuntimeException
dup
invokespecial java.lang.RuntimeException.<init>:()V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 e Lorg/graalvm/polyglot/management/ExecutionEvent;
private static void lambda$46(org.graalvm.polyglot.management.ExecutionEvent);
descriptor: (Lorg/graalvm/polyglot/management/ExecutionEvent;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: new java.lang.RuntimeException
dup
invokespecial java.lang.RuntimeException.<init>:()V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 e Lorg/graalvm/polyglot/management/ExecutionEvent;
private static void lambda$47(org.graalvm.polyglot.management.ExecutionEvent);
descriptor: (Lorg/graalvm/polyglot/management/ExecutionEvent;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: new java.lang.RuntimeException
dup
invokespecial java.lang.RuntimeException.<init>:()V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 e Lorg/graalvm/polyglot/management/ExecutionEvent;
private static void lambda$48(org.graalvm.polyglot.management.ExecutionEvent);
descriptor: (Lorg/graalvm/polyglot/management/ExecutionEvent;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: new java.lang.RuntimeException
dup
invokespecial java.lang.RuntimeException.<init>:()V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 e Lorg/graalvm/polyglot/management/ExecutionEvent;
private static void lambda$49(org.graalvm.polyglot.management.ExecutionEvent);
descriptor: (Lorg/graalvm/polyglot/management/ExecutionEvent;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: new java.lang.RuntimeException
dup
invokespecial java.lang.RuntimeException.<init>:()V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 e Lorg/graalvm/polyglot/management/ExecutionEvent;
private static void lambda$50(org.graalvm.polyglot.management.ExecutionEvent);
descriptor: (Lorg/graalvm/polyglot/management/ExecutionEvent;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.RuntimeException
dup
aload 0
invokevirtual org.graalvm.polyglot.management.ExecutionEvent.getException:()Lorg/graalvm/polyglot/PolyglotException;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 e Lorg/graalvm/polyglot/management/ExecutionEvent;
private static void lambda$51(org.graalvm.polyglot.management.ExecutionEvent);
descriptor: (Lorg/graalvm/polyglot/management/ExecutionEvent;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 e Lorg/graalvm/polyglot/management/ExecutionEvent;
private static void lambda$52(java.lang.StringBuilder, com.oracle.truffle.api.instrumentation.ExecuteSourceEvent);
descriptor: (Ljava/lang/StringBuilder;Lcom/oracle/truffle/api/instrumentation/ExecuteSourceEvent;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 0
aload 1
invokevirtual com.oracle.truffle.api.instrumentation.ExecuteSourceEvent.getSource:()Lcom/oracle/truffle/api/source/Source;
invokevirtual com.oracle.truffle.api.source.Source.getCharacters:()Ljava/lang/CharSequence;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/CharSequence;)Ljava/lang/StringBuilder;
return
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 s Lcom/oracle/truffle/api/instrumentation/ExecuteSourceEvent;
private static void lambda$53(java.lang.StringBuilder, com.oracle.truffle.api.instrumentation.ExecuteSourceEvent);
descriptor: (Ljava/lang/StringBuilder;Lcom/oracle/truffle/api/instrumentation/ExecuteSourceEvent;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 0
aload 1
invokevirtual com.oracle.truffle.api.instrumentation.ExecuteSourceEvent.getSource:()Lcom/oracle/truffle/api/source/Source;
invokevirtual com.oracle.truffle.api.source.Source.getCharacters:()Ljava/lang/CharSequence;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/CharSequence;)Ljava/lang/StringBuilder;
return
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 s Lcom/oracle/truffle/api/instrumentation/ExecuteSourceEvent;
private static void lambda$54(com.oracle.truffle.api.instrumentation.LoadSourceSectionEvent);
descriptor: (Lcom/oracle/truffle/api/instrumentation/LoadSourceSectionEvent;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 e Lcom/oracle/truffle/api/instrumentation/LoadSourceSectionEvent;
private static void lambda$55(java.lang.StringBuilder, com.oracle.truffle.api.instrumentation.ExecuteSourceEvent);
descriptor: (Ljava/lang/StringBuilder;Lcom/oracle/truffle/api/instrumentation/ExecuteSourceEvent;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 0
aload 1
invokevirtual com.oracle.truffle.api.instrumentation.ExecuteSourceEvent.getSource:()Lcom/oracle/truffle/api/source/Source;
invokevirtual com.oracle.truffle.api.source.Source.getCharacters:()Ljava/lang/CharSequence;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/CharSequence;)Ljava/lang/StringBuilder;
return
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 s Lcom/oracle/truffle/api/instrumentation/ExecuteSourceEvent;
private static void lambda$32(org.graalvm.polyglot.management.ExecutionEvent);
descriptor: (Lorg/graalvm/polyglot/management/ExecutionEvent;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 e Lorg/graalvm/polyglot/management/ExecutionEvent;
}
SourceFile: "ExecutionListenerTest.java"
InnerClasses:
public final Env = com.oracle.truffle.api.instrumentation.TruffleInstrument$Env of com.oracle.truffle.api.instrumentation.TruffleInstrument
MultiSourceASTLanguage = com.oracle.truffle.api.instrumentation.test.SourceListenerTest$MultiSourceASTLanguage of com.oracle.truffle.api.instrumentation.test.SourceListenerTest
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public final StackFrame = org.graalvm.polyglot.PolyglotException$StackFrame of org.graalvm.polyglot.PolyglotException
public Builder = org.graalvm.polyglot.Source$Builder of org.graalvm.polyglot.Source
public final Builder = org.graalvm.polyglot.management.ExecutionListener$Builder of org.graalvm.polyglot.management.ExecutionListener