public class com.oracle.truffle.tck.tests.InlineExecutionTest
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.oracle.truffle.tck.tests.InlineExecutionTest
super_class: java.lang.Object
{
private static final com.oracle.truffle.tck.tests.TestUtil$CollectingMatcher<com.oracle.truffle.tck.tests.TestRun> TEST_RESULT_MATCHER;
descriptor: Lcom/oracle/truffle/tck/tests/TestUtil$CollectingMatcher;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Lcom/oracle/truffle/tck/tests/TestUtil$CollectingMatcher<Lcom/oracle/truffle/tck/tests/TestRun;>;
private static com.oracle.truffle.tck.tests.TestContext context;
descriptor: Lcom/oracle/truffle/tck/tests/TestContext;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private final com.oracle.truffle.tck.tests.InlineTestRun testRun;
descriptor: Lcom/oracle/truffle/tck/tests/InlineTestRun;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic com.oracle.truffle.tck.tests.TestUtil.createTooManyFailuresMatcher:()Lcom/oracle/truffle/tck/tests/TestUtil$CollectingMatcher;
putstatic com.oracle.truffle.tck.tests.InlineExecutionTest.TEST_RESULT_MATCHER:Lcom/oracle/truffle/tck/tests/TestUtil$CollectingMatcher;
1: return
LocalVariableTable:
Start End Slot Name Signature
public static java.util.Collection<com.oracle.truffle.tck.tests.InlineTestRun> createScriptTests();
descriptor: ()Ljava/util/Collection;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=5, args_size=0
0: new com.oracle.truffle.tck.tests.TestContext
dup
ldc Lcom/oracle/truffle/tck/tests/InlineExecutionTest;
invokespecial com.oracle.truffle.tck.tests.TestContext.<init>:(Ljava/lang/Class;)V
putstatic com.oracle.truffle.tck.tests.InlineExecutionTest.context:Lcom/oracle/truffle/tck/tests/TestContext;
1: new java.util.TreeSet
dup
invokedynamic compare()Ljava/util/Comparator;
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;Ljava/lang/Object;)I
com/oracle/truffle/tck/tests/InlineExecutionTest.lambda$0(Lcom/oracle/truffle/tck/tests/InlineTestRun;Lcom/oracle/truffle/tck/tests/InlineTestRun;)I (6)
(Lcom/oracle/truffle/tck/tests/InlineTestRun;Lcom/oracle/truffle/tck/tests/InlineTestRun;)I
invokespecial java.util.TreeSet.<init>:(Ljava/util/Comparator;)V
astore 0
start local 0 2: getstatic com.oracle.truffle.tck.tests.InlineExecutionTest.context:Lcom/oracle/truffle/tck/tests/TestContext;
invokestatic com.oracle.truffle.tck.tests.TestUtil.getRequiredLanguages:(Lcom/oracle/truffle/tck/tests/TestContext;)Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 2
goto 8
StackMap locals: java.util.Collection top java.util.Iterator
StackMap stack:
3: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 1
start local 1 4: getstatic com.oracle.truffle.tck.tests.InlineExecutionTest.context:Lcom/oracle/truffle/tck/tests/TestContext;
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 1
aastore
invokevirtual com.oracle.truffle.tck.tests.TestContext.getInlineScripts:([Ljava/lang/String;)Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 4
goto 7
StackMap locals: java.util.Collection java.lang.String java.util.Iterator top java.util.Iterator
StackMap stack:
5: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.tck.InlineSnippet
astore 3
start local 3 6: aload 0
new com.oracle.truffle.tck.tests.InlineTestRun
dup
new java.util.AbstractMap$SimpleImmutableEntry
dup
aload 1
aload 3
invokevirtual org.graalvm.polyglot.tck.InlineSnippet.getScript:()Lorg/graalvm/polyglot/tck/Snippet;
invokespecial java.util.AbstractMap$SimpleImmutableEntry.<init>:(Ljava/lang/Object;Ljava/lang/Object;)V
aload 3
invokespecial com.oracle.truffle.tck.tests.InlineTestRun.<init>:(Ljava/util/Map$Entry;Lorg/graalvm/polyglot/tck/InlineSnippet;)V
invokeinterface java.util.Collection.add:(Ljava/lang/Object;)Z
pop
end local 3 7: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
end local 1 8: StackMap locals: java.util.Collection top java.util.Iterator
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
9: aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
2 10 0 res Ljava/util/Collection<Lcom/oracle/truffle/tck/tests/InlineTestRun;>;
4 8 1 lang Ljava/lang/String;
6 7 3 snippet Lorg/graalvm/polyglot/tck/InlineSnippet;
Signature: ()Ljava/util/Collection<Lcom/oracle/truffle/tck/tests/InlineTestRun;>;
RuntimeVisibleAnnotations:
org.junit.runners.Parameterized$Parameters(name = "{0}")
public static void afterClass();
descriptor: ()V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic com.oracle.truffle.tck.tests.InlineExecutionTest.context:Lcom/oracle/truffle/tck/tests/TestContext;
invokevirtual com.oracle.truffle.tck.tests.TestContext.close:()V
1: aconst_null
putstatic com.oracle.truffle.tck.tests.InlineExecutionTest.context:Lcom/oracle/truffle/tck/tests/TestContext;
2: return
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.io.IOException
RuntimeVisibleAnnotations:
org.junit.AfterClass()
public void <init>(com.oracle.truffle.tck.tests.InlineTestRun);
descriptor: (Lcom/oracle/truffle/tck/tests/InlineTestRun;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 0
aload 1
putfield com.oracle.truffle.tck.tests.InlineExecutionTest.testRun:Lcom/oracle/truffle/tck/tests/InlineTestRun;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/truffle/tck/tests/InlineExecutionTest;
0 4 1 testRun Lcom/oracle/truffle/tck/tests/InlineTestRun;
MethodParameters:
Name Flags
testRun final
public void testInline();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.tck.tests.InlineExecutionTest.testRun:Lcom/oracle/truffle/tck/tests/InlineTestRun;
getstatic com.oracle.truffle.tck.tests.InlineExecutionTest.TEST_RESULT_MATCHER:Lcom/oracle/truffle/tck/tests/TestUtil$CollectingMatcher;
invokestatic org.junit.Assume.assumeThat:(Ljava/lang/Object;Lorg/hamcrest/Matcher;)V
1: iconst_0
istore 1
start local 1 2: aload 0
getfield com.oracle.truffle.tck.tests.InlineExecutionTest.testRun:Lcom/oracle/truffle/tck/tests/InlineTestRun;
invokevirtual com.oracle.truffle.tck.tests.InlineTestRun.getInlineSnippet:()Lorg/graalvm/polyglot/tck/InlineSnippet;
astore 2
start local 2 3: aload 0
getfield com.oracle.truffle.tck.tests.InlineExecutionTest.testRun:Lcom/oracle/truffle/tck/tests/InlineTestRun;
invokevirtual com.oracle.truffle.tck.tests.InlineTestRun.getInlineSnippet:()Lorg/graalvm/polyglot/tck/InlineSnippet;
invokevirtual org.graalvm.polyglot.tck.InlineSnippet.getResultVerifier:()Lorg/graalvm/polyglot/tck/ResultVerifier;
ifnull 6
4: new com.oracle.truffle.tck.tests.InlineExecutionTest$TestResultVerifier
dup
aload 0
invokespecial com.oracle.truffle.tck.tests.InlineExecutionTest$TestResultVerifier.<init>:(Lcom/oracle/truffle/tck/tests/InlineExecutionTest;)V
astore 3
start local 3 5: goto 7
end local 3 6: StackMap locals: int org.graalvm.polyglot.tck.InlineSnippet
StackMap stack:
aconst_null
astore 3
start local 3 7: StackMap locals: com.oracle.truffle.tck.tests.InlineExecutionTest$TestResultVerifier
StackMap stack:
getstatic com.oracle.truffle.tck.tests.InlineExecutionTest.context:Lcom/oracle/truffle/tck/tests/TestContext;
invokevirtual com.oracle.truffle.tck.tests.TestContext.getContext:()Lorg/graalvm/polyglot/Context;
aload 0
getfield com.oracle.truffle.tck.tests.InlineExecutionTest.testRun:Lcom/oracle/truffle/tck/tests/InlineTestRun;
invokevirtual com.oracle.truffle.tck.tests.InlineTestRun.getID:()Ljava/lang/String;
invokevirtual org.graalvm.polyglot.Context.initialize:(Ljava/lang/String;)Z
pop
8: getstatic com.oracle.truffle.tck.tests.InlineExecutionTest.context:Lcom/oracle/truffle/tck/tests/TestContext;
aload 0
getfield com.oracle.truffle.tck.tests.InlineExecutionTest.testRun:Lcom/oracle/truffle/tck/tests/InlineTestRun;
invokevirtual com.oracle.truffle.tck.tests.InlineTestRun.getID:()Ljava/lang/String;
aload 2
aload 3
invokevirtual com.oracle.truffle.tck.tests.TestContext.setInlineSnippet:(Ljava/lang/String;Lorg/graalvm/polyglot/tck/InlineSnippet;Lcom/oracle/truffle/tck/common/inline/InlineVerifier$ResultVerifier;)V
9: aload 0
getfield com.oracle.truffle.tck.tests.InlineExecutionTest.testRun:Lcom/oracle/truffle/tck/tests/InlineTestRun;
invokevirtual com.oracle.truffle.tck.tests.InlineTestRun.getSnippet:()Lorg/graalvm/polyglot/tck/Snippet;
invokevirtual org.graalvm.polyglot.tck.Snippet.getExecutableValue:()Lorg/graalvm/polyglot/Value;
aload 0
getfield com.oracle.truffle.tck.tests.InlineExecutionTest.testRun:Lcom/oracle/truffle/tck/tests/InlineTestRun;
invokevirtual com.oracle.truffle.tck.tests.InlineTestRun.getActualParameters:()Ljava/util/List;
invokeinterface java.util.List.toArray:()[Ljava/lang/Object;
invokevirtual org.graalvm.polyglot.Value.execute:([Ljava/lang/Object;)Lorg/graalvm/polyglot/Value;
astore 4
start local 4 10: aload 0
getfield com.oracle.truffle.tck.tests.InlineExecutionTest.testRun:Lcom/oracle/truffle/tck/tests/InlineTestRun;
aload 4
aconst_null
iconst_1
invokestatic com.oracle.truffle.tck.tests.TestUtil.validateResult:(Lcom/oracle/truffle/tck/tests/TestRun;Lorg/graalvm/polyglot/Value;Lorg/graalvm/polyglot/PolyglotException;Z)V
11: iconst_1
istore 1
end local 4 12: goto 16
StackMap locals:
StackMap stack: org.graalvm.polyglot.PolyglotException
13: astore 4
start local 4 14: aload 0
getfield com.oracle.truffle.tck.tests.InlineExecutionTest.testRun:Lcom/oracle/truffle/tck/tests/InlineTestRun;
aconst_null
aload 4
iconst_1
invokestatic com.oracle.truffle.tck.tests.TestUtil.validateResult:(Lcom/oracle/truffle/tck/tests/TestRun;Lorg/graalvm/polyglot/Value;Lorg/graalvm/polyglot/PolyglotException;Z)V
15: iconst_1
istore 1
end local 4 16: StackMap locals:
StackMap stack:
aload 3
ifnull 31
aload 3
getfield com.oracle.truffle.tck.tests.InlineExecutionTest$TestResultVerifier.exception:Ljava/lang/Exception;
ifnull 31
17: iconst_0
istore 1
18: aload 3
getfield com.oracle.truffle.tck.tests.InlineExecutionTest$TestResultVerifier.exception:Ljava/lang/Exception;
athrow
19: StackMap locals:
StackMap stack: java.lang.Throwable
astore 4
start local 4 20: new java.lang.AssertionError
dup
21: new java.lang.StringBuilder
dup
ldc "Unexpected Exception: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.Throwable.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
22: aload 0
getfield com.oracle.truffle.tck.tests.InlineExecutionTest.testRun:Lcom/oracle/truffle/tck/tests/InlineTestRun;
23: getstatic com.oracle.truffle.tck.tests.InlineExecutionTest.context:Lcom/oracle/truffle/tck/tests/TestContext;
24: invokestatic com.oracle.truffle.tck.tests.TestUtil.formatErrorMessage:(Ljava/lang/String;Lcom/oracle/truffle/tck/tests/TestRun;Lcom/oracle/truffle/tck/tests/TestContext;)Ljava/lang/String;
25: aload 4
26: invokespecial java.lang.AssertionError.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 4 27: StackMap locals:
StackMap stack: java.lang.Throwable
astore 5
28: getstatic com.oracle.truffle.tck.tests.InlineExecutionTest.context:Lcom/oracle/truffle/tck/tests/TestContext;
aconst_null
aconst_null
aconst_null
invokevirtual com.oracle.truffle.tck.tests.TestContext.setInlineSnippet:(Ljava/lang/String;Lorg/graalvm/polyglot/tck/InlineSnippet;Lcom/oracle/truffle/tck/common/inline/InlineVerifier$ResultVerifier;)V
29: getstatic com.oracle.truffle.tck.tests.InlineExecutionTest.TEST_RESULT_MATCHER:Lcom/oracle/truffle/tck/tests/TestUtil$CollectingMatcher;
new java.util.AbstractMap$SimpleImmutableEntry
dup
aload 0
getfield com.oracle.truffle.tck.tests.InlineExecutionTest.testRun:Lcom/oracle/truffle/tck/tests/InlineTestRun;
iload 1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokespecial java.util.AbstractMap$SimpleImmutableEntry.<init>:(Ljava/lang/Object;Ljava/lang/Object;)V
invokevirtual com.oracle.truffle.tck.tests.TestUtil$CollectingMatcher.accept:(Ljava/lang/Object;)V
30: aload 5
athrow
31: StackMap locals:
StackMap stack:
getstatic com.oracle.truffle.tck.tests.InlineExecutionTest.context:Lcom/oracle/truffle/tck/tests/TestContext;
aconst_null
aconst_null
aconst_null
invokevirtual com.oracle.truffle.tck.tests.TestContext.setInlineSnippet:(Ljava/lang/String;Lorg/graalvm/polyglot/tck/InlineSnippet;Lcom/oracle/truffle/tck/common/inline/InlineVerifier$ResultVerifier;)V
32: getstatic com.oracle.truffle.tck.tests.InlineExecutionTest.TEST_RESULT_MATCHER:Lcom/oracle/truffle/tck/tests/TestUtil$CollectingMatcher;
new java.util.AbstractMap$SimpleImmutableEntry
dup
aload 0
getfield com.oracle.truffle.tck.tests.InlineExecutionTest.testRun:Lcom/oracle/truffle/tck/tests/InlineTestRun;
iload 1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokespecial java.util.AbstractMap$SimpleImmutableEntry.<init>:(Ljava/lang/Object;Ljava/lang/Object;)V
invokevirtual com.oracle.truffle.tck.tests.TestUtil$CollectingMatcher.accept:(Ljava/lang/Object;)V
33: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 34 0 this Lcom/oracle/truffle/tck/tests/InlineExecutionTest;
2 34 1 success Z
3 34 2 inlineSnippet Lorg/graalvm/polyglot/tck/InlineSnippet;
5 6 3 verifier Lcom/oracle/truffle/tck/tests/InlineExecutionTest$TestResultVerifier;
7 34 3 verifier Lcom/oracle/truffle/tck/tests/InlineExecutionTest$TestResultVerifier;
10 12 4 result Lorg/graalvm/polyglot/Value;
14 16 4 pe Lorg/graalvm/polyglot/PolyglotException;
20 27 4 e Ljava/lang/Throwable;
Exception table:
from to target type
9 12 13 Class org.graalvm.polyglot.PolyglotException
9 19 19 Class org.graalvm.polyglot.PolyglotException
9 19 19 Class java.lang.AssertionError
9 27 27 any
Exceptions:
throws java.lang.Exception
RuntimeVisibleAnnotations:
org.junit.Test()
private static int lambda$0(com.oracle.truffle.tck.tests.InlineTestRun, com.oracle.truffle.tck.tests.InlineTestRun);
descriptor: (Lcom/oracle/truffle/tck/tests/InlineTestRun;Lcom/oracle/truffle/tck/tests/InlineTestRun;)I
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual com.oracle.truffle.tck.tests.InlineTestRun.toString:()Ljava/lang/String;
aload 1
invokevirtual com.oracle.truffle.tck.tests.InlineTestRun.toString:()Ljava/lang/String;
invokevirtual java.lang.String.compareTo:(Ljava/lang/String;)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 a Lcom/oracle/truffle/tck/tests/InlineTestRun;
0 1 1 b Lcom/oracle/truffle/tck/tests/InlineTestRun;
}
SourceFile: "InlineExecutionTest.java"
NestMembers:
com.oracle.truffle.tck.tests.InlineExecutionTest$TestResultVerifier
InnerClasses:
public abstract ResultVerifier = com.oracle.truffle.tck.common.inline.InlineVerifier$ResultVerifier of com.oracle.truffle.tck.common.inline.InlineVerifier
private TestResultVerifier = com.oracle.truffle.tck.tests.InlineExecutionTest$TestResultVerifier of com.oracle.truffle.tck.tests.InlineExecutionTest
abstract CollectingMatcher = com.oracle.truffle.tck.tests.TestUtil$CollectingMatcher of com.oracle.truffle.tck.tests.TestUtil
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public SimpleImmutableEntry = java.util.AbstractMap$SimpleImmutableEntry of java.util.AbstractMap
public abstract Entry = java.util.Map$Entry of java.util.Map
public abstract Parameters = org.junit.runners.Parameterized$Parameters of org.junit.runners.Parameterized
RuntimeVisibleAnnotations:
org.junit.runner.RunWith(value = Lorg/junit/runners/Parameterized;)