public class com.oracle.svm.hosted.c.CAnnotationProcessor
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.oracle.svm.hosted.c.CAnnotationProcessor
super_class: java.lang.Object
{
private final com.oracle.svm.hosted.c.NativeCodeContext codeCtx;
descriptor: Lcom/oracle/svm/hosted/c/NativeCodeContext;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.oracle.svm.hosted.c.NativeLibraries nativeLibs;
descriptor: Lcom/oracle/svm/hosted/c/NativeLibraries;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private com.oracle.svm.hosted.c.codegen.CCompilerInvoker compilerInvoker;
descriptor: Lcom/oracle/svm/hosted/c/codegen/CCompilerInvoker;
flags: (0x0002) ACC_PRIVATE
private java.nio.file.Path tempDirectory;
descriptor: Ljava/nio/file/Path;
flags: (0x0002) ACC_PRIVATE
private java.nio.file.Path queryCodeDirectory;
descriptor: Ljava/nio/file/Path;
flags: (0x0002) ACC_PRIVATE
private com.oracle.svm.hosted.c.info.NativeCodeInfo codeInfo;
descriptor: Lcom/oracle/svm/hosted/c/info/NativeCodeInfo;
flags: (0x0002) ACC_PRIVATE
private com.oracle.svm.hosted.c.codegen.QueryCodeWriter writer;
descriptor: Lcom/oracle/svm/hosted/c/codegen/QueryCodeWriter;
flags: (0x0002) ACC_PRIVATE
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lcom/oracle/svm/hosted/c/CAnnotationProcessor;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic com.oracle.svm.hosted.c.CAnnotationProcessor.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(com.oracle.svm.hosted.c.NativeLibraries, com.oracle.svm.hosted.c.NativeCodeContext);
descriptor: (Lcom/oracle/svm/hosted/c/NativeLibraries;Lcom/oracle/svm/hosted/c/NativeCodeContext;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield com.oracle.svm.hosted.c.CAnnotationProcessor.nativeLibs:Lcom/oracle/svm/hosted/c/NativeLibraries;
2: aload 0
aload 2
putfield com.oracle.svm.hosted.c.CAnnotationProcessor.codeCtx:Lcom/oracle/svm/hosted/c/NativeCodeContext;
3: ldc Lcom/oracle/svm/hosted/c/codegen/CCompilerInvoker;
invokestatic org.graalvm.nativeimage.ImageSingletons.contains:(Ljava/lang/Class;)Z
ifeq 8
4: aload 0
ldc Lcom/oracle/svm/hosted/c/codegen/CCompilerInvoker;
invokestatic org.graalvm.nativeimage.ImageSingletons.lookup:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast com.oracle.svm.hosted.c.codegen.CCompilerInvoker
putfield com.oracle.svm.hosted.c.CAnnotationProcessor.compilerInvoker:Lcom/oracle/svm/hosted/c/codegen/CCompilerInvoker;
5: aload 0
aload 0
getfield com.oracle.svm.hosted.c.CAnnotationProcessor.compilerInvoker:Lcom/oracle/svm/hosted/c/codegen/CCompilerInvoker;
getfield com.oracle.svm.hosted.c.codegen.CCompilerInvoker.tempDirectory:Ljava/nio/file/Path;
putfield com.oracle.svm.hosted.c.CAnnotationProcessor.queryCodeDirectory:Ljava/nio/file/Path;
6: aload 0
aload 0
getfield com.oracle.svm.hosted.c.CAnnotationProcessor.compilerInvoker:Lcom/oracle/svm/hosted/c/codegen/CCompilerInvoker;
getfield com.oracle.svm.hosted.c.codegen.CCompilerInvoker.tempDirectory:Ljava/nio/file/Path;
putfield com.oracle.svm.hosted.c.CAnnotationProcessor.tempDirectory:Ljava/nio/file/Path;
7: goto 9
8: StackMap locals: com.oracle.svm.hosted.c.CAnnotationProcessor com.oracle.svm.hosted.c.NativeLibraries com.oracle.svm.hosted.c.NativeCodeContext
StackMap stack:
getstatic com.oracle.svm.hosted.c.CAnnotationProcessor.$assertionsDisabled:Z
ifne 9
getstatic com.oracle.svm.hosted.c.CAnnotationProcessorCache$Options.UseCAPCache:Lcom/oracle/svm/core/option/HostedOptionKey;
invokevirtual com.oracle.svm.core.option.HostedOptionKey.getValue:()Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ifne 9
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
9: StackMap locals:
StackMap stack:
getstatic com.oracle.svm.hosted.c.CAnnotationProcessorCache$Options.QueryCodeDir:Lcom/oracle/svm/core/option/HostedOptionKey;
invokevirtual com.oracle.svm.core.option.HostedOptionKey.hasBeenSet:()Z
ifeq 12
10: getstatic com.oracle.svm.hosted.c.CAnnotationProcessorCache$Options.QueryCodeDir:Lcom/oracle/svm/core/option/HostedOptionKey;
invokevirtual com.oracle.svm.core.option.HostedOptionKey.getValue:()Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 11: aload 0
invokestatic java.nio.file.FileSystems.getDefault:()Ljava/nio/file/FileSystem;
aload 3
iconst_0
anewarray java.lang.String
invokevirtual java.nio.file.FileSystem.getPath:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
putfield com.oracle.svm.hosted.c.CAnnotationProcessor.queryCodeDirectory:Ljava/nio/file/Path;
end local 3 12: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lcom/oracle/svm/hosted/c/CAnnotationProcessor;
0 13 1 nativeLibs Lcom/oracle/svm/hosted/c/NativeLibraries;
0 13 2 codeCtx Lcom/oracle/svm/hosted/c/NativeCodeContext;
11 12 3 queryCodeDir Ljava/lang/String;
MethodParameters:
Name Flags
nativeLibs
codeCtx
public com.oracle.svm.hosted.c.info.NativeCodeInfo process(com.oracle.svm.hosted.c.CAnnotationProcessorCache);
descriptor: (Lcom/oracle/svm/hosted/c/CAnnotationProcessorCache;)Lcom/oracle/svm/hosted/c/info/NativeCodeInfo;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: new com.oracle.svm.hosted.c.info.InfoTreeBuilder
dup
aload 0
getfield com.oracle.svm.hosted.c.CAnnotationProcessor.nativeLibs:Lcom/oracle/svm/hosted/c/NativeLibraries;
aload 0
getfield com.oracle.svm.hosted.c.CAnnotationProcessor.codeCtx:Lcom/oracle/svm/hosted/c/NativeCodeContext;
invokespecial com.oracle.svm.hosted.c.info.InfoTreeBuilder.<init>:(Lcom/oracle/svm/hosted/c/NativeLibraries;Lcom/oracle/svm/hosted/c/NativeCodeContext;)V
astore 2
start local 2 1: aload 0
aload 2
invokevirtual com.oracle.svm.hosted.c.info.InfoTreeBuilder.construct:()Lcom/oracle/svm/hosted/c/info/NativeCodeInfo;
putfield com.oracle.svm.hosted.c.CAnnotationProcessor.codeInfo:Lcom/oracle/svm/hosted/c/info/NativeCodeInfo;
2: aload 0
getfield com.oracle.svm.hosted.c.CAnnotationProcessor.nativeLibs:Lcom/oracle/svm/hosted/c/NativeLibraries;
invokevirtual com.oracle.svm.hosted.c.NativeLibraries.getErrors:()Ljava/util/List;
invokeinterface java.util.List.size:()I
ifle 4
3: aload 0
getfield com.oracle.svm.hosted.c.CAnnotationProcessor.codeInfo:Lcom/oracle/svm/hosted/c/info/NativeCodeInfo;
areturn
4: StackMap locals: com.oracle.svm.hosted.c.info.InfoTreeBuilder
StackMap stack:
getstatic com.oracle.svm.hosted.c.CAnnotationProcessorCache$Options.UseCAPCache:Lcom/oracle/svm/core/option/HostedOptionKey;
invokevirtual com.oracle.svm.core.option.HostedOptionKey.getValue:()Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 7
5: aload 1
aload 0
getfield com.oracle.svm.hosted.c.CAnnotationProcessor.nativeLibs:Lcom/oracle/svm/hosted/c/NativeLibraries;
aload 0
getfield com.oracle.svm.hosted.c.CAnnotationProcessor.codeInfo:Lcom/oracle/svm/hosted/c/info/NativeCodeInfo;
invokevirtual com.oracle.svm.hosted.c.CAnnotationProcessorCache.get:(Lcom/oracle/svm/hosted/c/NativeLibraries;Lcom/oracle/svm/hosted/c/info/NativeCodeInfo;)V
6: goto 20
7: StackMap locals:
StackMap stack:
aload 0
new com.oracle.svm.hosted.c.codegen.QueryCodeWriter
dup
aload 0
getfield com.oracle.svm.hosted.c.CAnnotationProcessor.queryCodeDirectory:Ljava/nio/file/Path;
invokespecial com.oracle.svm.hosted.c.codegen.QueryCodeWriter.<init>:(Ljava/nio/file/Path;)V
putfield com.oracle.svm.hosted.c.CAnnotationProcessor.writer:Lcom/oracle/svm/hosted/c/codegen/QueryCodeWriter;
8: aload 0
getfield com.oracle.svm.hosted.c.CAnnotationProcessor.writer:Lcom/oracle/svm/hosted/c/codegen/QueryCodeWriter;
aload 0
getfield com.oracle.svm.hosted.c.CAnnotationProcessor.codeInfo:Lcom/oracle/svm/hosted/c/info/NativeCodeInfo;
invokevirtual com.oracle.svm.hosted.c.codegen.QueryCodeWriter.write:(Lcom/oracle/svm/hosted/c/info/NativeCodeInfo;)Ljava/nio/file/Path;
astore 3
start local 3 9: aload 0
getfield com.oracle.svm.hosted.c.CAnnotationProcessor.nativeLibs:Lcom/oracle/svm/hosted/c/NativeLibraries;
invokevirtual com.oracle.svm.hosted.c.NativeLibraries.getErrors:()Ljava/util/List;
invokeinterface java.util.List.size:()I
ifle 11
10: aload 0
getfield com.oracle.svm.hosted.c.CAnnotationProcessor.codeInfo:Lcom/oracle/svm/hosted/c/info/NativeCodeInfo;
areturn
11: StackMap locals: java.nio.file.Path
StackMap stack:
getstatic com.oracle.svm.hosted.c.CAnnotationProcessor.$assertionsDisabled:Z
ifne 12
aload 3
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifne 12
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
12: StackMap locals:
StackMap stack:
getstatic com.oracle.svm.hosted.c.CAnnotationProcessorCache$Options.ExitAfterQueryCodeGeneration:Lcom/oracle/svm/core/option/HostedOptionKey;
invokevirtual com.oracle.svm.core.option.HostedOptionKey.getValue:()Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 14
13: aload 0
getfield com.oracle.svm.hosted.c.CAnnotationProcessor.codeInfo:Lcom/oracle/svm/hosted/c/info/NativeCodeInfo;
areturn
14: StackMap locals:
StackMap stack:
aload 0
aload 3
invokevirtual com.oracle.svm.hosted.c.CAnnotationProcessor.compileQueryCode:(Ljava/nio/file/Path;)Ljava/nio/file/Path;
astore 4
start local 4 15: aload 0
getfield com.oracle.svm.hosted.c.CAnnotationProcessor.nativeLibs:Lcom/oracle/svm/hosted/c/NativeLibraries;
invokevirtual com.oracle.svm.hosted.c.NativeLibraries.getErrors:()Ljava/util/List;
invokeinterface java.util.List.size:()I
ifle 17
16: aload 0
getfield com.oracle.svm.hosted.c.CAnnotationProcessor.codeInfo:Lcom/oracle/svm/hosted/c/info/NativeCodeInfo;
areturn
17: StackMap locals: java.nio.file.Path
StackMap stack:
aload 0
aload 1
aload 4
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
invokevirtual com.oracle.svm.hosted.c.CAnnotationProcessor.makeQuery:(Lcom/oracle/svm/hosted/c/CAnnotationProcessorCache;Ljava/lang/String;)V
18: aload 0
getfield com.oracle.svm.hosted.c.CAnnotationProcessor.nativeLibs:Lcom/oracle/svm/hosted/c/NativeLibraries;
invokevirtual com.oracle.svm.hosted.c.NativeLibraries.getErrors:()Ljava/util/List;
invokeinterface java.util.List.size:()I
ifle 20
19: aload 0
getfield com.oracle.svm.hosted.c.CAnnotationProcessor.codeInfo:Lcom/oracle/svm/hosted/c/info/NativeCodeInfo;
areturn
end local 4 end local 3 20: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.svm.hosted.c.CAnnotationProcessor.nativeLibs:Lcom/oracle/svm/hosted/c/NativeLibraries;
aload 0
getfield com.oracle.svm.hosted.c.CAnnotationProcessor.codeInfo:Lcom/oracle/svm/hosted/c/info/NativeCodeInfo;
invokestatic com.oracle.svm.hosted.c.query.RawStructureLayoutPlanner.plan:(Lcom/oracle/svm/hosted/c/NativeLibraries;Lcom/oracle/svm/hosted/c/info/NativeCodeInfo;)V
21: aload 0
getfield com.oracle.svm.hosted.c.CAnnotationProcessor.nativeLibs:Lcom/oracle/svm/hosted/c/NativeLibraries;
aload 0
getfield com.oracle.svm.hosted.c.CAnnotationProcessor.codeInfo:Lcom/oracle/svm/hosted/c/info/NativeCodeInfo;
invokestatic com.oracle.svm.hosted.c.query.SizeAndSignednessVerifier.verify:(Lcom/oracle/svm/hosted/c/NativeLibraries;Lcom/oracle/svm/hosted/c/info/NativeCodeInfo;)V
22: aload 0
getfield com.oracle.svm.hosted.c.CAnnotationProcessor.codeInfo:Lcom/oracle/svm/hosted/c/info/NativeCodeInfo;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lcom/oracle/svm/hosted/c/CAnnotationProcessor;
0 23 1 cache Lcom/oracle/svm/hosted/c/CAnnotationProcessorCache;
1 23 2 constructor Lcom/oracle/svm/hosted/c/info/InfoTreeBuilder;
9 20 3 queryFile Ljava/nio/file/Path;
15 20 4 binary Ljava/nio/file/Path;
MethodParameters:
Name Flags
cache
private void makeQuery(com.oracle.svm.hosted.c.CAnnotationProcessorCache, java.lang.String);
descriptor: (Lcom/oracle/svm/hosted/c/CAnnotationProcessorCache;Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=10, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
astore 3
start local 3 1: new java.lang.ProcessBuilder
dup
iconst_0
anewarray java.lang.String
invokespecial java.lang.ProcessBuilder.<init>:([Ljava/lang/String;)V
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 2
aastore
invokevirtual java.lang.ProcessBuilder.command:([Ljava/lang/String;)Ljava/lang/ProcessBuilder;
aload 0
getfield com.oracle.svm.hosted.c.CAnnotationProcessor.tempDirectory:Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
invokevirtual java.lang.ProcessBuilder.directory:(Ljava/io/File;)Ljava/lang/ProcessBuilder;
astore 4
start local 4 2: aload 4
invokevirtual java.lang.ProcessBuilder.start:()Ljava/lang/Process;
astore 3
3: aconst_null
astore 5
aconst_null
astore 6
4: aload 3
invokevirtual java.lang.Process.getInputStream:()Ljava/io/InputStream;
astore 7
start local 7 5: aload 0
getfield com.oracle.svm.hosted.c.CAnnotationProcessor.nativeLibs:Lcom/oracle/svm/hosted/c/NativeLibraries;
aload 0
getfield com.oracle.svm.hosted.c.CAnnotationProcessor.codeInfo:Lcom/oracle/svm/hosted/c/info/NativeCodeInfo;
aload 7
invokestatic com.oracle.svm.hosted.c.query.QueryResultParser.parse:(Lcom/oracle/svm/hosted/c/NativeLibraries;Lcom/oracle/svm/hosted/c/info/NativeCodeInfo;Ljava/io/InputStream;)Ljava/util/List;
astore 8
start local 8 6: getstatic com.oracle.svm.hosted.c.CAnnotationProcessorCache$Options.NewCAPCache:Lcom/oracle/svm/core/option/HostedOptionKey;
invokevirtual com.oracle.svm.core.option.HostedOptionKey.getValue:()Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 8
7: aload 1
aload 0
getfield com.oracle.svm.hosted.c.CAnnotationProcessor.codeInfo:Lcom/oracle/svm/hosted/c/info/NativeCodeInfo;
aload 8
invokevirtual com.oracle.svm.hosted.c.CAnnotationProcessorCache.put:(Lcom/oracle/svm/hosted/c/info/NativeCodeInfo;Ljava/util/List;)V
end local 8 8: StackMap locals: com.oracle.svm.hosted.c.CAnnotationProcessor com.oracle.svm.hosted.c.CAnnotationProcessorCache java.lang.String java.lang.Process java.lang.ProcessBuilder java.lang.Throwable java.lang.Throwable java.io.InputStream
StackMap stack:
aload 7
ifnull 14
aload 7
invokevirtual java.io.InputStream.close:()V
goto 14
StackMap locals:
StackMap stack: java.lang.Throwable
9: astore 5
aload 7
ifnull 10
aload 7
invokevirtual java.io.InputStream.close:()V
end local 7 StackMap locals:
StackMap stack:
10: aload 5
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
11: astore 6
aload 5
ifnonnull 12
aload 6
astore 5
goto 13
StackMap locals:
StackMap stack:
12: aload 5
aload 6
if_acmpeq 13
aload 5
aload 6
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
13: aload 5
athrow
14: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.lang.Process.waitFor:()I
pop
end local 4 15: goto 24
StackMap locals: com.oracle.svm.hosted.c.CAnnotationProcessor com.oracle.svm.hosted.c.CAnnotationProcessorCache java.lang.String java.lang.Process
StackMap stack: java.io.IOException
16: astore 4
start local 4 17: aload 4
invokestatic com.oracle.svm.core.util.VMError.shouldNotReachHere:(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
athrow
end local 4 18: StackMap locals:
StackMap stack: java.lang.InterruptedException
pop
19: new com.oracle.svm.core.util.InterruptImageBuilding
dup
invokespecial com.oracle.svm.core.util.InterruptImageBuilding.<init>:()V
athrow
20: StackMap locals:
StackMap stack: java.lang.Throwable
astore 9
21: aload 3
ifnull 23
22: aload 3
invokevirtual java.lang.Process.destroy:()V
23: StackMap locals: com.oracle.svm.hosted.c.CAnnotationProcessor com.oracle.svm.hosted.c.CAnnotationProcessorCache java.lang.String java.lang.Process top top top top top java.lang.Throwable
StackMap stack:
aload 9
athrow
24: StackMap locals: com.oracle.svm.hosted.c.CAnnotationProcessor com.oracle.svm.hosted.c.CAnnotationProcessorCache java.lang.String java.lang.Process
StackMap stack:
aload 3
ifnull 26
25: aload 3
invokevirtual java.lang.Process.destroy:()V
26: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Lcom/oracle/svm/hosted/c/CAnnotationProcessor;
0 27 1 cache Lcom/oracle/svm/hosted/c/CAnnotationProcessorCache;
0 27 2 binaryName Ljava/lang/String;
1 27 3 printingProcess Ljava/lang/Process;
2 15 4 pb Ljava/lang/ProcessBuilder;
5 10 7 is Ljava/io/InputStream;
6 8 8 lines Ljava/util/List<Ljava/lang/String;>;
17 18 4 ex Ljava/io/IOException;
Exception table:
from to target type
5 8 9 any
4 11 11 any
1 15 16 Class java.io.IOException
1 15 18 Class java.lang.InterruptedException
1 20 20 any
MethodParameters:
Name Flags
cache
binaryName
private java.nio.file.Path compileQueryCode(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Ljava/nio/file/Path;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=6, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.nio.file.Path.getFileName:()Ljava/nio/file/Path;
astore 2
start local 2 1: aload 2
ifnonnull 3
2: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " invalid queryFile"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic com.oracle.svm.core.util.VMError.shouldNotReachHere:(Ljava/lang/String;)Ljava/lang/RuntimeException;
athrow
3: StackMap locals: java.nio.file.Path
StackMap stack:
aload 2
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
astore 3
start local 3 4: aload 0
getfield com.oracle.svm.hosted.c.CAnnotationProcessor.tempDirectory:Ljava/nio/file/Path;
aload 0
getfield com.oracle.svm.hosted.c.CAnnotationProcessor.compilerInvoker:Lcom/oracle/svm/hosted/c/codegen/CCompilerInvoker;
aload 3
iconst_0
aload 3
ldc "."
invokevirtual java.lang.String.lastIndexOf:(Ljava/lang/String;)I
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokevirtual com.oracle.svm.hosted.c.codegen.CCompilerInvoker.asExecutableName:(Ljava/lang/String;)Ljava/lang/String;
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 4
start local 4 5: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 5
start local 5 6: aload 5
aload 0
getfield com.oracle.svm.hosted.c.CAnnotationProcessor.codeCtx:Lcom/oracle/svm/hosted/c/NativeCodeContext;
invokevirtual com.oracle.svm.hosted.c.NativeCodeContext.getDirectives:()Lorg/graalvm/nativeimage/c/CContext$Directives;
invokeinterface org.graalvm.nativeimage.c.CContext$Directives.getOptions:()Ljava/util/List;
invokevirtual java.util.ArrayList.addAll:(Ljava/util/Collection;)Z
pop
7: ldc Lorg/graalvm/nativeimage/Platform$LINUX;
invokestatic org.graalvm.nativeimage.Platform.includedIn:(Ljava/lang/Class;)Z
ifeq 9
8: aload 5
invokestatic com.oracle.svm.core.c.libc.LibCBase.singleton:()Lcom/oracle/svm/core/c/libc/LibCBase;
invokeinterface com.oracle.svm.core.c.libc.LibCBase.getAdditionalQueryCodeCompilerOptions:()Ljava/util/List;
invokevirtual java.util.ArrayList.addAll:(Ljava/util/Collection;)Z
pop
9: StackMap locals: java.lang.String java.nio.file.Path java.util.ArrayList
StackMap stack:
aload 0
getfield com.oracle.svm.hosted.c.CAnnotationProcessor.compilerInvoker:Lcom/oracle/svm/hosted/c/codegen/CCompilerInvoker;
getstatic com.oracle.svm.core.SubstrateOptions.StrictQueryCodeCompilation:Lcom/oracle/svm/core/option/HostedOptionKey;
invokevirtual com.oracle.svm.core.option.HostedOptionKey.getValue:()Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
aload 5
aload 1
aload 4
aload 0
invokedynamic handle(Lcom/oracle/svm/hosted/c/CAnnotationProcessor;)Lcom/oracle/svm/hosted/c/codegen/CCompilerInvoker$CompilerErrorHandler;
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/ProcessBuilder;Ljava/nio/file/Path;Ljava/lang/String;)V
com/oracle/svm/hosted/c/CAnnotationProcessor.reportCompilerError(Ljava/lang/ProcessBuilder;Ljava/nio/file/Path;Ljava/lang/String;)V (5)
(Ljava/lang/ProcessBuilder;Ljava/nio/file/Path;Ljava/lang/String;)V
invokevirtual com.oracle.svm.hosted.c.codegen.CCompilerInvoker.compileAndParseError:(ZLjava/util/List;Ljava/nio/file/Path;Ljava/nio/file/Path;Lcom/oracle/svm/hosted/c/codegen/CCompilerInvoker$CompilerErrorHandler;)V
10: aload 4
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/oracle/svm/hosted/c/CAnnotationProcessor;
0 11 1 queryFile Ljava/nio/file/Path;
1 11 2 fileNamePath Ljava/nio/file/Path;
4 11 3 fileName Ljava/lang/String;
5 11 4 binary Ljava/nio/file/Path;
6 11 5 options Ljava/util/ArrayList<Ljava/lang/String;>;
MethodParameters:
Name Flags
queryFile
protected void reportCompilerError(java.lang.ProcessBuilder, java.nio.file.Path, java.lang.String);
descriptor: (Ljava/lang/ProcessBuilder;Ljava/nio/file/Path;Ljava/lang/String;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=8, locals=11, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield com.oracle.svm.hosted.c.CAnnotationProcessor.codeCtx:Lcom/oracle/svm/hosted/c/NativeCodeContext;
invokevirtual com.oracle.svm.hosted.c.NativeCodeContext.getDirectives:()Lorg/graalvm/nativeimage/c/CContext$Directives;
invokeinterface org.graalvm.nativeimage.c.CContext$Directives.getHeaderFiles:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 4
StackMap locals: com.oracle.svm.hosted.c.CAnnotationProcessor java.lang.ProcessBuilder java.nio.file.Path java.lang.String top java.util.Iterator
StackMap stack:
1: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 2: aload 3
new java.lang.StringBuilder
dup
aload 4
iconst_1
aload 4
invokevirtual java.lang.String.length:()I
iconst_1
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ": No such file or directory"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 4
3: ldc "Basic header file missing (%s). Make sure headers are available on your system."
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 4
aastore
invokestatic com.oracle.svm.core.util.UserError.abort:(Ljava/lang/String;[Ljava/lang/Object;)Lcom/oracle/svm/core/util/UserError$UserException;
pop
end local 4 4: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
5: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 4
start local 4 6: aload 3
aload 2
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
istore 5
start local 5 7: iload 5
iconst_m1
if_icmpeq 23
8: aload 3
bipush 58
iload 5
iconst_1
iadd
invokevirtual java.lang.String.indexOf:(II)I
istore 6
start local 6 9: iload 6
iconst_m1
if_icmpeq 23
10: aload 3
bipush 58
iload 6
iconst_1
iadd
invokevirtual java.lang.String.indexOf:(II)I
istore 7
start local 7 11: iload 7
iconst_m1
if_icmpeq 23
12: aload 3
iload 6
iconst_1
iadd
iload 7
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 8
start local 8 13: aload 8
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 9
start local 9 14: aload 4
aload 0
getfield com.oracle.svm.hosted.c.CAnnotationProcessor.writer:Lcom/oracle/svm/hosted/c/codegen/QueryCodeWriter;
iload 9
invokevirtual com.oracle.svm.hosted.c.codegen.QueryCodeWriter.getElementForLineNumber:(I)Ljava/lang/Object;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
15: aload 4
new java.lang.StringBuilder
dup
ldc "C file contents around line "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 9
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ":"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
16: iload 9
iconst_1
isub
iconst_1
invokestatic java.lang.Math.max:(II)I
istore 10
start local 10 17: goto 20
18: StackMap locals: com.oracle.svm.hosted.c.CAnnotationProcessor java.lang.ProcessBuilder java.nio.file.Path java.lang.String java.util.List int int int java.lang.String int int
StackMap stack:
aload 4
new java.lang.StringBuilder
dup
aload 2
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ":"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 10
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ": "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield com.oracle.svm.hosted.c.CAnnotationProcessor.writer:Lcom/oracle/svm/hosted/c/codegen/QueryCodeWriter;
iload 10
invokevirtual com.oracle.svm.hosted.c.codegen.QueryCodeWriter.getLine:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
19: iinc 10 1
StackMap locals:
StackMap stack:
20: iload 10
iload 9
iconst_1
iadd
if_icmple 18
end local 10 end local 9 21: goto 23
StackMap locals: com.oracle.svm.hosted.c.CAnnotationProcessor java.lang.ProcessBuilder java.nio.file.Path java.lang.String java.util.List int int int java.lang.String
StackMap stack: java.lang.NumberFormatException
22: pop
end local 8 end local 7 end local 6 23: StackMap locals:
StackMap stack:
new com.oracle.svm.hosted.c.CInterfaceError
dup
24: ldc "Error compiling query code (in %s). Compiler command '%s' output included error: %s"
iconst_3
anewarray java.lang.Object
dup
iconst_0
25: aload 2
aastore
dup
iconst_1
26: aload 1
invokevirtual java.lang.ProcessBuilder.command:()Ljava/util/List;
iconst_0
invokestatic com.oracle.svm.core.SubstrateUtil.getShellCommandString:(Ljava/util/List;Z)Ljava/lang/String;
aastore
dup
iconst_2
27: aload 3
aastore
28: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
iconst_1
anewarray java.lang.Object
dup
iconst_0
29: aload 4
30: aastore
invokespecial com.oracle.svm.hosted.c.CInterfaceError.<init>:(Ljava/lang/String;[Ljava/lang/Object;)V
astore 6
start local 6 31: aload 0
getfield com.oracle.svm.hosted.c.CAnnotationProcessor.nativeLibs:Lcom/oracle/svm/hosted/c/NativeLibraries;
invokevirtual com.oracle.svm.hosted.c.NativeLibraries.getErrors:()Ljava/util/List;
aload 6
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
32: return
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 33 0 this Lcom/oracle/svm/hosted/c/CAnnotationProcessor;
0 33 1 current Ljava/lang/ProcessBuilder;
0 33 2 queryFile Ljava/nio/file/Path;
0 33 3 line Ljava/lang/String;
2 4 4 header Ljava/lang/String;
6 33 4 elements Ljava/util/List<Ljava/lang/Object;>;
7 33 5 fileNameStart I
9 23 6 firstColon I
11 23 7 secondColon I
13 23 8 lineNumberStr Ljava/lang/String;
14 21 9 lineNumber I
17 21 10 i I
31 33 6 error Lcom/oracle/svm/hosted/c/CInterfaceError;
Exception table:
from to target type
13 21 22 Class java.lang.NumberFormatException
MethodParameters:
Name Flags
current
queryFile
line
}
SourceFile: "CAnnotationProcessor.java"
InnerClasses:
public UserException = com.oracle.svm.core.util.UserError$UserException of com.oracle.svm.core.util.UserError
public Options = com.oracle.svm.hosted.c.CAnnotationProcessorCache$Options of com.oracle.svm.hosted.c.CAnnotationProcessorCache
public abstract CompilerErrorHandler = com.oracle.svm.hosted.c.codegen.CCompilerInvoker$CompilerErrorHandler of com.oracle.svm.hosted.c.codegen.CCompilerInvoker
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract LINUX = org.graalvm.nativeimage.Platform$LINUX of org.graalvm.nativeimage.Platform
public abstract Directives = org.graalvm.nativeimage.c.CContext$Directives of org.graalvm.nativeimage.c.CContext