class com.oracle.svm.hosted.image.NativeBootImageViaCC$DarwinCCLinkerInvocation extends com.oracle.svm.hosted.image.CCLinkerInvocation
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.oracle.svm.hosted.image.NativeBootImageViaCC$DarwinCCLinkerInvocation
super_class: com.oracle.svm.hosted.image.CCLinkerInvocation
{
final com.oracle.svm.hosted.image.NativeBootImageViaCC this$0;
descriptor: Lcom/oracle/svm/hosted/image/NativeBootImageViaCC;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
private static volatile int[] $SWITCH_TABLE$com$oracle$svm$hosted$image$AbstractBootImage$NativeImageKind;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
void <init>(com.oracle.svm.hosted.image.NativeBootImageViaCC);
descriptor: (Lcom/oracle/svm/hosted/image/NativeBootImageViaCC;)V
flags: (0x0000)
Code:
stack=4, locals=3, args_size=2
start local 0 0: aload 0
aload 1
putfield com.oracle.svm.hosted.image.NativeBootImageViaCC$DarwinCCLinkerInvocation.this$0:Lcom/oracle/svm/hosted/image/NativeBootImageViaCC;
aload 0
invokespecial com.oracle.svm.hosted.image.CCLinkerInvocation.<init>:()V
1: invokestatic com.oracle.svm.core.SubstrateOptions.useLLVMBackend:()Z
ifne 3
2: aload 0
getfield com.oracle.svm.hosted.image.NativeBootImageViaCC$DarwinCCLinkerInvocation.additionalPreOptions:Ljava/util/List;
ldc "-Wl,-no_compact_unwind"
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
3: StackMap locals: com.oracle.svm.hosted.image.NativeBootImageViaCC$DarwinCCLinkerInvocation com.oracle.svm.hosted.image.NativeBootImageViaCC
StackMap stack:
invokestatic com.oracle.svm.hosted.image.NativeBootImageViaCC.removeUnusedSymbols:()Z
ifeq 5
4: aload 0
getfield com.oracle.svm.hosted.image.NativeBootImageViaCC$DarwinCCLinkerInvocation.additionalPreOptions:Ljava/util/List;
ldc "-Wl,-dead_strip"
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
5: StackMap locals:
StackMap stack:
aload 1
getfield com.oracle.svm.hosted.image.NativeBootImageViaCC.nativeLibs:Lcom/oracle/svm/hosted/c/NativeLibraries;
getfield com.oracle.svm.hosted.c.NativeLibraries.tempDirectory:Ljava/nio/file/Path;
ldc "exported_symbols.list"
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 2
start local 2 6: aload 2
aload 0
iconst_1
invokevirtual com.oracle.svm.hosted.image.NativeBootImageViaCC$DarwinCCLinkerInvocation.getImageSymbols:(Z)Ljava/util/List;
iconst_0
anewarray java.nio.file.OpenOption
invokestatic java.nio.file.Files.write:(Ljava/nio/file/Path;Ljava/lang/Iterable;[Ljava/nio/file/OpenOption;)Ljava/nio/file/Path;
pop
7: aload 0
getfield com.oracle.svm.hosted.image.NativeBootImageViaCC$DarwinCCLinkerInvocation.additionalPreOptions:Ljava/util/List;
ldc "-Wl,-exported_symbols_list"
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
8: aload 0
getfield com.oracle.svm.hosted.image.NativeBootImageViaCC$DarwinCCLinkerInvocation.additionalPreOptions:Ljava/util/List;
new java.lang.StringBuilder
dup
ldc "-Wl,"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 2 9: goto 12
StackMap locals:
StackMap stack: java.io.IOException
10: pop
11: invokestatic com.oracle.svm.core.util.VMError.shouldNotReachHere:()Ljava/lang/RuntimeException;
pop
12: StackMap locals:
StackMap stack:
getstatic com.oracle.svm.core.SubstrateOptions.DeleteLocalSymbols: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.image.NativeBootImageViaCC$DarwinCCLinkerInvocation.additionalPreOptions:Ljava/util/List;
ldc "-Wl,-x"
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
14: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.svm.hosted.image.NativeBootImageViaCC$DarwinCCLinkerInvocation.additionalPreOptions:Ljava/util/List;
ldc "-arch"
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
15: ldc Lorg/graalvm/nativeimage/Platform$AMD64;
invokestatic org.graalvm.nativeimage.Platform.includedIn:(Ljava/lang/Class;)Z
ifeq 18
16: aload 0
getfield com.oracle.svm.hosted.image.NativeBootImageViaCC$DarwinCCLinkerInvocation.additionalPreOptions:Ljava/util/List;
ldc "x86_64"
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
17: goto 20
StackMap locals:
StackMap stack:
18: ldc Lorg/graalvm/nativeimage/Platform$AARCH64;
invokestatic org.graalvm.nativeimage.Platform.includedIn:(Ljava/lang/Class;)Z
ifeq 20
19: aload 0
getfield com.oracle.svm.hosted.image.NativeBootImageViaCC$DarwinCCLinkerInvocation.additionalPreOptions:Ljava/util/List;
ldc "arm64"
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
20: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lcom/oracle/svm/hosted/image/NativeBootImageViaCC$DarwinCCLinkerInvocation;
6 9 2 exportedSymbolsPath Ljava/nio/file/Path;
Exception table:
from to target type
5 9 10 Class java.io.IOException
MethodParameters:
Name Flags
this$0 final
public java.util.List<java.lang.String> getImageSymbols(boolean);
descriptor: (Z)Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.oracle.svm.hosted.image.NativeBootImageViaCC$DarwinCCLinkerInvocation.this$0:Lcom/oracle/svm/hosted/image/NativeBootImageViaCC;
getfield com.oracle.svm.hosted.image.NativeBootImageViaCC.codeCache:Lcom/oracle/svm/hosted/image/NativeImageCodeCache;
aload 0
getfield com.oracle.svm.hosted.image.NativeBootImageViaCC$DarwinCCLinkerInvocation.this$0:Lcom/oracle/svm/hosted/image/NativeBootImageViaCC;
invokevirtual com.oracle.svm.hosted.image.NativeBootImageViaCC.getOrCreateDebugObjectFile:()Lcom/oracle/objectfile/ObjectFile;
iload 1
invokevirtual com.oracle.svm.hosted.image.NativeImageCodeCache.getSymbols:(Lcom/oracle/objectfile/ObjectFile;Z)Ljava/util/List;
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
1: invokedynamic apply()Ljava/util/function/Function;
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;
com/oracle/svm/hosted/image/NativeBootImageViaCC$DarwinCCLinkerInvocation.lambda$0(Lcom/oracle/objectfile/ObjectFile$Symbol;)Ljava/lang/String; (6)
(Lcom/oracle/objectfile/ObjectFile$Symbol;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
2: invokestatic java.util.stream.Collectors.toList:()Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.util.List
3: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/svm/hosted/image/NativeBootImageViaCC$DarwinCCLinkerInvocation;
0 4 1 onlyGlobal Z
Signature: (Z)Ljava/util/List<Ljava/lang/String;>;
MethodParameters:
Name Flags
onlyGlobal
protected void setOutputKind(java.util.List<java.lang.String>);
descriptor: (Ljava/util/List;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: invokestatic com.oracle.svm.hosted.image.NativeBootImageViaCC$DarwinCCLinkerInvocation.$SWITCH_TABLE$com$oracle$svm$hosted$image$AbstractBootImage$NativeImageKind:()[I
aload 0
getfield com.oracle.svm.hosted.image.NativeBootImageViaCC$DarwinCCLinkerInvocation.this$0:Lcom/oracle/svm/hosted/image/NativeBootImageViaCC;
getfield com.oracle.svm.hosted.image.NativeBootImageViaCC.kind:Lcom/oracle/svm/hosted/image/AbstractBootImage$NativeImageKind;
invokevirtual com.oracle.svm.hosted.image.AbstractBootImage$NativeImageKind.ordinal:()I
iaload
tableswitch { // 1 - 3
1: 2
2: 6
3: 1
default: 6
}
1: StackMap locals:
StackMap stack:
ldc "%s does not support building static executable images."
iconst_1
anewarray java.lang.Object
dup
iconst_0
invokestatic com.oracle.svm.core.OS.getCurrent:()Lcom/oracle/svm/core/OS;
invokevirtual com.oracle.svm.core.OS.name:()Ljava/lang/String;
aastore
invokestatic com.oracle.svm.core.util.UserError.abort:(Ljava/lang/String;[Ljava/lang/Object;)Lcom/oracle/svm/core/util/UserError$UserException;
athrow
2: StackMap locals:
StackMap stack:
aload 1
ldc "-shared"
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
3: ldc Lorg/graalvm/nativeimage/Platform$DARWIN;
invokestatic org.graalvm.nativeimage.Platform.includedIn:(Ljava/lang/Class;)Z
ifeq 6
4: aload 1
ldc "-undefined"
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
5: aload 1
ldc "dynamic_lookup"
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/oracle/svm/hosted/image/NativeBootImageViaCC$DarwinCCLinkerInvocation;
0 7 1 cmd Ljava/util/List<Ljava/lang/String;>;
Signature: (Ljava/util/List<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
cmd
static int[] $SWITCH_TABLE$com$oracle$svm$hosted$image$AbstractBootImage$NativeImageKind();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic com.oracle.svm.hosted.image.NativeBootImageViaCC$DarwinCCLinkerInvocation.$SWITCH_TABLE$com$oracle$svm$hosted$image$AbstractBootImage$NativeImageKind:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic com.oracle.svm.hosted.image.AbstractBootImage$NativeImageKind.values:()[Lcom/oracle/svm/hosted/image/AbstractBootImage$NativeImageKind;
arraylength
newarray 10
astore 0
2: aload 0
getstatic com.oracle.svm.hosted.image.AbstractBootImage$NativeImageKind.EXECUTABLE:Lcom/oracle/svm/hosted/image/AbstractBootImage$NativeImageKind;
invokevirtual com.oracle.svm.hosted.image.AbstractBootImage$NativeImageKind.ordinal:()I
iconst_2
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic com.oracle.svm.hosted.image.AbstractBootImage$NativeImageKind.SHARED_LIBRARY:Lcom/oracle/svm/hosted/image/AbstractBootImage$NativeImageKind;
invokevirtual com.oracle.svm.hosted.image.AbstractBootImage$NativeImageKind.ordinal:()I
iconst_1
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic com.oracle.svm.hosted.image.AbstractBootImage$NativeImageKind.STATIC_EXECUTABLE:Lcom/oracle/svm/hosted/image/AbstractBootImage$NativeImageKind;
invokevirtual com.oracle.svm.hosted.image.AbstractBootImage$NativeImageKind.ordinal:()I
iconst_3
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
dup
putstatic com.oracle.svm.hosted.image.NativeBootImageViaCC$DarwinCCLinkerInvocation.$SWITCH_TABLE$com$oracle$svm$hosted$image$AbstractBootImage$NativeImageKind:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
8 9 10 Class java.lang.NoSuchFieldError
private static java.lang.String lambda$0(com.oracle.objectfile.ObjectFile$Symbol);
descriptor: (Lcom/oracle/objectfile/ObjectFile$Symbol;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
checkcast com.oracle.objectfile.macho.MachOSymtab$Entry
invokevirtual com.oracle.objectfile.macho.MachOSymtab$Entry.getNameInObject:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 symbol Lcom/oracle/objectfile/ObjectFile$Symbol;
}
SourceFile: "NativeBootImageViaCC.java"
NestHost: com.oracle.svm.hosted.image.NativeBootImageViaCC
InnerClasses:
public abstract Symbol = com.oracle.objectfile.ObjectFile$Symbol of com.oracle.objectfile.ObjectFile
public final Entry = com.oracle.objectfile.macho.MachOSymtab$Entry of com.oracle.objectfile.macho.MachOSymtab
public UserException = com.oracle.svm.core.util.UserError$UserException of com.oracle.svm.core.util.UserError
public NativeImageKind = com.oracle.svm.hosted.image.AbstractBootImage$NativeImageKind of com.oracle.svm.hosted.image.AbstractBootImage
DarwinCCLinkerInvocation = com.oracle.svm.hosted.image.NativeBootImageViaCC$DarwinCCLinkerInvocation of com.oracle.svm.hosted.image.NativeBootImageViaCC
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract AARCH64 = org.graalvm.nativeimage.Platform$AARCH64 of org.graalvm.nativeimage.Platform
public abstract AMD64 = org.graalvm.nativeimage.Platform$AMD64 of org.graalvm.nativeimage.Platform
public abstract DARWIN = org.graalvm.nativeimage.Platform$DARWIN of org.graalvm.nativeimage.Platform