public class com.oracle.truffle.llvm.runtime.options.TargetStream extends java.io.PrintStream
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.oracle.truffle.llvm.runtime.options.TargetStream
super_class: java.io.PrintStream
{
private boolean needsDisposal;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private static final java.lang.String FILE_TARGET_PREFIX;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "file://"
public void <init>(com.oracle.truffle.api.TruffleLanguage$Env, java.lang.String);
descriptor: (Lcom/oracle/truffle/api/TruffleLanguage$Env;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokestatic com.oracle.truffle.llvm.runtime.options.TargetStream.makeStream:(Lcom/oracle/truffle/api/TruffleLanguage$Env;Ljava/lang/String;)Ljava/io/OutputStream;
invokespecial java.io.PrintStream.<init>:(Ljava/io/OutputStream;)V
1: aload 0
iconst_0
putfield com.oracle.truffle.llvm.runtime.options.TargetStream.needsDisposal:Z
2: aload 0
aload 2
invokestatic com.oracle.truffle.llvm.runtime.options.TargetStream.needsDisposal:(Ljava/lang/String;)Z
putfield com.oracle.truffle.llvm.runtime.options.TargetStream.needsDisposal:Z
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/truffle/llvm/runtime/options/TargetStream;
0 4 1 env Lcom/oracle/truffle/api/TruffleLanguage$Env;
0 4 2 target Ljava/lang/String;
MethodParameters:
Name Flags
env
target
public void dispose();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.oracle.truffle.llvm.runtime.options.TargetStream.flush:()V
1: aload 0
getfield com.oracle.truffle.llvm.runtime.options.TargetStream.needsDisposal:Z
ifeq 3
2: aload 0
invokevirtual com.oracle.truffle.llvm.runtime.options.TargetStream.close:()V
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/truffle/llvm/runtime/options/TargetStream;
private static boolean needsDisposal(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getstatic java.util.Locale.ROOT:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
dup
astore 1
invokevirtual java.lang.String.hashCode:()I
lookupswitch { // 3
-892406686: 1
-892396981: 2
3569038: 3
default: 5
}
StackMap locals: java.lang.String
StackMap stack:
1: aload 1
ldc "stderr"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 4
goto 5
StackMap locals:
StackMap stack:
2: aload 1
ldc "stdout"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 4
goto 5
StackMap locals:
StackMap stack:
3: aload 1
ldc "true"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 4
goto 5
4: StackMap locals:
StackMap stack:
iconst_0
ireturn
5: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 target Ljava/lang/String;
MethodParameters:
Name Flags
target
private static java.io.OutputStream makeStream(com.oracle.truffle.api.TruffleLanguage$Env, java.lang.String);
descriptor: (Lcom/oracle/truffle/api/TruffleLanguage$Env;Ljava/lang/String;)Ljava/io/OutputStream;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=5, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.IllegalArgumentException
dup
ldc "Target unspecified!"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
getstatic java.util.Locale.ROOT:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
dup
astore 2
invokevirtual java.lang.String.hashCode:()I
lookupswitch { // 3
-892406686: 3
-892396981: 4
3569038: 5
default: 8
}
StackMap locals: java.lang.String
StackMap stack:
3: aload 2
ldc "stderr"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 7
goto 8
StackMap locals:
StackMap stack:
4: aload 2
ldc "stdout"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 6
goto 8
StackMap locals:
StackMap stack:
5: aload 2
ldc "true"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 6
goto 8
6: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.oracle.truffle.api.TruffleLanguage$Env.out:()Ljava/io/OutputStream;
areturn
7: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.oracle.truffle.api.TruffleLanguage$Env.err:()Ljava/io/OutputStream;
areturn
8: StackMap locals:
StackMap stack:
aload 1
ldc "file://"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 15
9: aload 1
ldc "file://"
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 3
start local 3 10: aload 0
aload 3
invokevirtual com.oracle.truffle.api.TruffleLanguage$Env.getPublicTruffleFile:(Ljava/lang/String;)Lcom/oracle/truffle/api/TruffleFile;
astore 4
start local 4 11: new java.io.BufferedOutputStream
dup
aload 4
iconst_2
anewarray java.nio.file.OpenOption
dup
iconst_0
getstatic java.nio.file.StandardOpenOption.CREATE:Ljava/nio/file/StandardOpenOption;
aastore
dup
iconst_1
getstatic java.nio.file.StandardOpenOption.TRUNCATE_EXISTING:Ljava/nio/file/StandardOpenOption;
aastore
invokevirtual com.oracle.truffle.api.TruffleFile.newOutputStream:([Ljava/nio/file/OpenOption;)Ljava/io/OutputStream;
invokespecial java.io.BufferedOutputStream.<init>:(Ljava/io/OutputStream;)V
12: areturn
end local 4 13: StackMap locals: com.oracle.truffle.api.TruffleLanguage$Env java.lang.String java.lang.String java.lang.String
StackMap stack: java.io.IOException
astore 4
start local 4 14: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Invalid file: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 4
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 4 end local 3 15: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Invalid target: "
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;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 env Lcom/oracle/truffle/api/TruffleLanguage$Env;
0 16 1 target Ljava/lang/String;
10 15 3 fileName Ljava/lang/String;
11 13 4 file Lcom/oracle/truffle/api/TruffleFile;
14 15 4 e Ljava/io/IOException;
Exception table:
from to target type
10 12 13 Class java.io.IOException
MethodParameters:
Name Flags
env
target
}
SourceFile: "TargetStream.java"
InnerClasses:
public final Env = com.oracle.truffle.api.TruffleLanguage$Env of com.oracle.truffle.api.TruffleLanguage