final class com.oracle.truffle.llvm.tests.linker.LoaderTest$Runner implements java.lang.AutoCloseable
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.oracle.truffle.llvm.tests.linker.LoaderTest$Runner
super_class: java.lang.Object
{
private final org.graalvm.polyglot.Context context;
descriptor: Lorg/graalvm/polyglot/Context;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.oracle.truffle.llvm.tests.pipe.CaptureOutput out;
descriptor: Lcom/oracle/truffle/llvm/tests/pipe/CaptureOutput;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=1
start local 0 // com.oracle.truffle.llvm.tests.linker.LoaderTest$Runner this
0: .line 79
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 80
iconst_0
anewarray java.lang.String
invokestatic org.graalvm.polyglot.Context.newBuilder:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
astore 1 /* builder */
start local 1 // org.graalvm.polyglot.Context$Builder builder
2: .line 81
aload 0 /* this */
invokestatic com.oracle.truffle.llvm.tests.linker.LoaderTest.getCaptureOutput:()Ljava/util/function/Function;
aload 1 /* builder */
invokeinterface java.util.function.Function.apply:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.oracle.truffle.llvm.tests.pipe.CaptureOutput
putfield com.oracle.truffle.llvm.tests.linker.LoaderTest$Runner.out:Lcom/oracle/truffle/llvm/tests/pipe/CaptureOutput;
3: .line 82
aload 0 /* this */
aload 1 /* builder */
invokestatic com.oracle.truffle.llvm.tests.linker.LoaderTest.getSulongTestLibContextOptions:()Ljava/util/Map;
invokevirtual org.graalvm.polyglot.Context$Builder.options:(Ljava/util/Map;)Lorg/graalvm/polyglot/Context$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.Context$Builder.allowAllAccess:(Z)Lorg/graalvm/polyglot/Context$Builder;
invokevirtual org.graalvm.polyglot.Context$Builder.build:()Lorg/graalvm/polyglot/Context;
putfield com.oracle.truffle.llvm.tests.linker.LoaderTest$Runner.context:Lorg/graalvm/polyglot/Context;
4: .line 83
return
end local 1 // org.graalvm.polyglot.Context$Builder builder
end local 0 // com.oracle.truffle.llvm.tests.linker.LoaderTest$Runner this
LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/oracle/truffle/llvm/tests/linker/LoaderTest$Runner;
2 5 1 builder Lorg/graalvm/polyglot/Context$Builder;
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 // com.oracle.truffle.llvm.tests.linker.LoaderTest$Runner this
0: .line 87
aload 0 /* this */
getfield com.oracle.truffle.llvm.tests.linker.LoaderTest$Runner.context:Lorg/graalvm/polyglot/Context;
invokevirtual org.graalvm.polyglot.Context.close:()V
1: .line 89
aload 0 /* this */
getfield com.oracle.truffle.llvm.tests.linker.LoaderTest$Runner.out:Lcom/oracle/truffle/llvm/tests/pipe/CaptureOutput;
invokeinterface com.oracle.truffle.llvm.tests.pipe.CaptureOutput.close:()V
2: .line 90
goto 5
StackMap locals:
StackMap stack: java.io.IOException
3: astore 1 /* e */
start local 1 // java.io.IOException e
4: .line 91
new java.lang.RuntimeException
dup
aload 1 /* e */
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 // java.io.IOException e
5: .line 93
StackMap locals:
StackMap stack:
return
end local 0 // com.oracle.truffle.llvm.tests.linker.LoaderTest$Runner this
LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/oracle/truffle/llvm/tests/linker/LoaderTest$Runner;
4 5 1 e Ljava/io/IOException;
Exception table:
from to target type
1 2 3 Class java.io.IOException
org.graalvm.polyglot.Value load(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/graalvm/polyglot/Value;
flags: (0x0000)
Code:
stack=4, locals=5, args_size=2
start local 0 // com.oracle.truffle.llvm.tests.linker.LoaderTest$Runner this
start local 1 // java.lang.String testName
0: .line 98
new java.io.File
dup
getstatic com.oracle.truffle.llvm.tests.linker.LoaderTest.TEST_DIR:Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
aload 1 /* testName */
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
astore 3 /* file */
start local 3 // java.io.File file
1: .line 99
ldc "llvm"
aload 3 /* file */
invokestatic org.graalvm.polyglot.Source.newBuilder:(Ljava/lang/String;Ljava/io/File;)Lorg/graalvm/polyglot/Source$Builder;
invokevirtual org.graalvm.polyglot.Source$Builder.build:()Lorg/graalvm/polyglot/Source;
astore 4 /* source */
start local 4 // org.graalvm.polyglot.Source source
2: .line 100
aload 0 /* this */
getfield com.oracle.truffle.llvm.tests.linker.LoaderTest$Runner.context:Lorg/graalvm/polyglot/Context;
aload 4 /* source */
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
astore 2 /* library */
end local 4 // org.graalvm.polyglot.Source source
end local 3 // java.io.File file
start local 2 // org.graalvm.polyglot.Value library
3: .line 101
goto 8
end local 2 // org.graalvm.polyglot.Value library
StackMap locals:
StackMap stack: java.lang.RuntimeException
4: astore 3 /* e */
start local 3 // java.lang.RuntimeException e
5: .line 102
aload 3 /* e */
athrow
end local 3 // java.lang.RuntimeException e
6: .line 103
StackMap locals:
StackMap stack: java.lang.Exception
astore 3 /* e */
start local 3 // java.lang.Exception e
7: .line 104
new java.lang.RuntimeException
dup
aload 3 /* e */
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 // java.lang.Exception e
start local 2 // org.graalvm.polyglot.Value library
8: .line 106
StackMap locals: org.graalvm.polyglot.Value
StackMap stack:
aload 2 /* library */
areturn
end local 2 // org.graalvm.polyglot.Value library
end local 1 // java.lang.String testName
end local 0 // com.oracle.truffle.llvm.tests.linker.LoaderTest$Runner this
LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/oracle/truffle/llvm/tests/linker/LoaderTest$Runner;
0 9 1 testName Ljava/lang/String;
3 4 2 library Lorg/graalvm/polyglot/Value;
8 9 2 library Lorg/graalvm/polyglot/Value;
1 3 3 file Ljava/io/File;
2 3 4 source Lorg/graalvm/polyglot/Source;
5 6 3 e Ljava/lang/RuntimeException;
7 8 3 e Ljava/lang/Exception;
Exception table:
from to target type
0 3 4 Class java.lang.RuntimeException
0 3 6 Class java.lang.Exception
MethodParameters:
Name Flags
testName
}
SourceFile: "LoaderTest.java"
NestHost: com.oracle.truffle.llvm.tests.linker.LoaderTest
InnerClasses:
private final Runner = com.oracle.truffle.llvm.tests.linker.LoaderTest$Runner of com.oracle.truffle.llvm.tests.linker.LoaderTest
public final Builder = org.graalvm.polyglot.Context$Builder of org.graalvm.polyglot.Context
public Builder = org.graalvm.polyglot.Source$Builder of org.graalvm.polyglot.Source