public class org.graalvm.compiler.hotspot.meta.HotSpotObjdumpDisassemblerProvider extends org.graalvm.compiler.hotspot.meta.HotSpotDisassemblerProvider
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.hotspot.meta.HotSpotObjdumpDisassemblerProvider
super_class: org.graalvm.compiler.hotspot.meta.HotSpotDisassemblerProvider
{
private final java.lang.String objdump;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static final java.util.regex.Pattern SAFE_SHELL_ARG;
descriptor: Ljava/util/regex/Pattern;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "[A-Za-z0-9@%_\\-\\+=:,\\./]+"
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
putstatic org.graalvm.compiler.hotspot.meta.HotSpotObjdumpDisassemblerProvider.SAFE_SHELL_ARG:Ljava/util/regex/Pattern;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.graalvm.compiler.hotspot.meta.HotSpotDisassemblerProvider.<init>:()V
1: aload 0
invokestatic org.graalvm.compiler.hotspot.meta.HotSpotObjdumpDisassemblerProvider.getObjdump:()Ljava/lang/String;
putfield org.graalvm.compiler.hotspot.meta.HotSpotObjdumpDisassemblerProvider.objdump:Ljava/lang/String;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/graalvm/compiler/hotspot/meta/HotSpotObjdumpDisassemblerProvider;
public java.lang.String disassembleCompiledCode(jdk.vm.ci.code.CodeCacheProvider, org.graalvm.compiler.code.CompilationResult);
descriptor: (Ljdk/vm/ci/code/CodeCacheProvider;Lorg/graalvm/compiler/code/CompilationResult;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=25, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.graalvm.compiler.hotspot.meta.HotSpotObjdumpDisassemblerProvider.objdump:Ljava/lang/String;
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aconst_null
astore 3
start local 3 3: ldc "compiledBinary"
ldc ".bin"
invokestatic java.io.File.createTempFile:(Ljava/lang/String;Ljava/lang/String;)Ljava/io/File;
astore 3
4: aconst_null
astore 4
aconst_null
astore 5
5: new java.io.FileOutputStream
dup
aload 3
invokespecial java.io.FileOutputStream.<init>:(Ljava/io/File;)V
astore 6
start local 6 6: aload 6
aload 2
invokevirtual org.graalvm.compiler.code.CompilationResult.getTargetCode:()[B
invokevirtual java.io.FileOutputStream.write:([B)V
7: aload 6
ifnull 13
aload 6
invokevirtual java.io.FileOutputStream.close:()V
goto 13
StackMap locals: org.graalvm.compiler.hotspot.meta.HotSpotObjdumpDisassemblerProvider jdk.vm.ci.code.CodeCacheProvider org.graalvm.compiler.code.CompilationResult java.io.File java.lang.Throwable java.lang.Throwable java.io.FileOutputStream
StackMap stack: java.lang.Throwable
8: astore 4
aload 6
ifnull 9
aload 6
invokevirtual java.io.FileOutputStream.close:()V
end local 6 StackMap locals:
StackMap stack:
9: aload 4
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
10: astore 5
aload 4
ifnonnull 11
aload 5
astore 4
goto 12
StackMap locals:
StackMap stack:
11: aload 4
aload 5
if_acmpeq 12
aload 4
aload 5
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
12: aload 4
athrow
13: StackMap locals:
StackMap stack:
invokestatic jdk.vm.ci.services.Services.getSavedProperties:()Ljava/util/Map;
ldc "os.arch"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 5
start local 5 14: aload 5
ldc "amd64"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 15
aload 5
ldc "x86_64"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 17
15: StackMap locals: org.graalvm.compiler.hotspot.meta.HotSpotObjdumpDisassemblerProvider jdk.vm.ci.code.CodeCacheProvider org.graalvm.compiler.code.CompilationResult java.io.File top java.lang.String
StackMap stack:
bipush 9
anewarray java.lang.String
dup
iconst_0
aload 0
getfield org.graalvm.compiler.hotspot.meta.HotSpotObjdumpDisassemblerProvider.objdump:Ljava/lang/String;
aastore
dup
iconst_1
ldc "-D"
aastore
dup
iconst_2
ldc "-b"
aastore
dup
iconst_3
ldc "binary"
aastore
dup
iconst_4
ldc "-M"
aastore
dup
iconst_5
ldc "x86-64"
aastore
dup
bipush 6
ldc "-m"
aastore
dup
bipush 7
ldc "i386"
aastore
dup
bipush 8
aload 3
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
aastore
astore 4
start local 4 16: goto 23
end local 4 StackMap locals:
StackMap stack:
17: aload 5
ldc "aarch64"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 20
18: bipush 7
anewarray java.lang.String
dup
iconst_0
aload 0
getfield org.graalvm.compiler.hotspot.meta.HotSpotObjdumpDisassemblerProvider.objdump:Ljava/lang/String;
aastore
dup
iconst_1
ldc "-D"
aastore
dup
iconst_2
ldc "-b"
aastore
dup
iconst_3
ldc "binary"
aastore
dup
iconst_4
ldc "-m"
aastore
dup
iconst_5
ldc "aarch64"
aastore
dup
bipush 6
aload 3
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
aastore
astore 4
start local 4 19: goto 23
end local 4 20: StackMap locals:
StackMap stack:
aload 3
ifnull 22
21: aload 3
invokevirtual java.io.File.delete:()Z
pop
22: StackMap locals:
StackMap stack:
aconst_null
areturn
start local 4 23: StackMap locals: org.graalvm.compiler.hotspot.meta.HotSpotObjdumpDisassemblerProvider jdk.vm.ci.code.CodeCacheProvider org.graalvm.compiler.code.CompilationResult java.io.File java.lang.String[] java.lang.String
StackMap stack:
ldc " *(([0-9a-fA-F]+):\t.*)"
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
astore 6
start local 6 24: aload 1
invokeinterface jdk.vm.ci.code.CodeCacheProvider.getTarget:()Ljdk/vm/ci/code/TargetDescription;
astore 7
start local 7 25: aload 1
invokeinterface jdk.vm.ci.code.CodeCacheProvider.getRegisterConfig:()Ljdk/vm/ci/code/RegisterConfig;
astore 8
start local 8 26: aload 8
invokeinterface jdk.vm.ci.code.RegisterConfig.getFrameRegister:()Ljdk/vm/ci/code/Register;
astore 9
start local 9 27: new jdk.vm.ci.code.CodeUtil$DefaultRefMapFormatter
dup
aload 7
getfield jdk.vm.ci.code.TargetDescription.wordSize:I
aload 9
iconst_0
invokespecial jdk.vm.ci.code.CodeUtil$DefaultRefMapFormatter.<init>:(ILjdk/vm/ci/code/Register;I)V
astore 10
start local 10 28: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 11
start local 11 29: aload 2
invokevirtual org.graalvm.compiler.code.CompilationResult.getDataPatches:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 13
goto 32
StackMap locals: org.graalvm.compiler.hotspot.meta.HotSpotObjdumpDisassemblerProvider jdk.vm.ci.code.CodeCacheProvider org.graalvm.compiler.code.CompilationResult java.io.File java.lang.String[] java.lang.String java.util.regex.Pattern jdk.vm.ci.code.TargetDescription jdk.vm.ci.code.RegisterConfig jdk.vm.ci.code.Register jdk.vm.ci.code.CodeUtil$RefMapFormatter java.util.Map top java.util.Iterator
StackMap stack:
30: aload 13
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.vm.ci.code.site.DataPatch
astore 12
start local 12 31: aload 11
aload 12
getfield jdk.vm.ci.code.site.DataPatch.pcOffset:I
new java.lang.StringBuilder
dup
ldc "{"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 12
getfield jdk.vm.ci.code.site.DataPatch.reference:Ljdk/vm/ci/code/site/Reference;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "}"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.graalvm.compiler.hotspot.meta.HotSpotObjdumpDisassemblerProvider.putAnnotation:(Ljava/util/Map;ILjava/lang/String;)V
end local 12 32: StackMap locals:
StackMap stack:
aload 13
invokeinterface java.util.Iterator.hasNext:()Z
ifne 30
33: aload 2
invokevirtual org.graalvm.compiler.code.CompilationResult.getMarks:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 13
goto 36
StackMap locals:
StackMap stack:
34: aload 13
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.vm.ci.code.site.Mark
astore 12
start local 12 35: aload 11
aload 12
getfield jdk.vm.ci.code.site.Mark.pcOffset:I
aload 1
aload 12
invokeinterface jdk.vm.ci.code.CodeCacheProvider.getMarkName:(Ljdk/vm/ci/code/site/Mark;)Ljava/lang/String;
invokestatic org.graalvm.compiler.hotspot.meta.HotSpotObjdumpDisassemblerProvider.putAnnotation:(Ljava/util/Map;ILjava/lang/String;)V
end local 12 36: StackMap locals:
StackMap stack:
aload 13
invokeinterface java.util.Iterator.hasNext:()Z
ifne 34
37: aload 2
invokevirtual org.graalvm.compiler.code.CompilationResult.getCodeAnnotations:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 13
goto 40
StackMap locals:
StackMap stack:
38: aload 13
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.code.CompilationResult$CodeAnnotation
astore 12
start local 12 39: aload 11
aload 12
getfield org.graalvm.compiler.code.CompilationResult$CodeAnnotation.position:I
aload 12
invokevirtual org.graalvm.compiler.code.CompilationResult$CodeAnnotation.toString:()Ljava/lang/String;
invokestatic org.graalvm.compiler.hotspot.meta.HotSpotObjdumpDisassemblerProvider.putAnnotation:(Ljava/util/Map;ILjava/lang/String;)V
end local 12 40: StackMap locals:
StackMap stack:
aload 13
invokeinterface java.util.Iterator.hasNext:()Z
ifne 38
41: aload 2
invokevirtual org.graalvm.compiler.code.CompilationResult.getInfopoints:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 13
goto 52
StackMap locals:
StackMap stack:
42: aload 13
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.vm.ci.code.site.Infopoint
astore 12
start local 12 43: aload 12
instanceof jdk.vm.ci.code.site.Call
ifeq 49
44: aload 12
checkcast jdk.vm.ci.code.site.Call
astore 14
start local 14 45: aload 14
getfield jdk.vm.ci.code.site.Call.debugInfo:Ljdk/vm/ci/code/DebugInfo;
ifnull 47
46: aload 11
aload 14
getfield jdk.vm.ci.code.site.Call.pcOffset:I
aload 14
getfield jdk.vm.ci.code.site.Call.size:I
iadd
new java.lang.StringBuilder
dup
bipush 100
invokespecial java.lang.StringBuilder.<init>:(I)V
aload 14
getfield jdk.vm.ci.code.site.Call.debugInfo:Ljdk/vm/ci/code/DebugInfo;
aload 10
invokestatic jdk.vm.ci.code.CodeUtil.append:(Ljava/lang/StringBuilder;Ljdk/vm/ci/code/DebugInfo;Ljdk/vm/ci/code/CodeUtil$RefMapFormatter;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.graalvm.compiler.hotspot.meta.HotSpotObjdumpDisassemblerProvider.putAnnotation:(Ljava/util/Map;ILjava/lang/String;)V
47: StackMap locals: org.graalvm.compiler.hotspot.meta.HotSpotObjdumpDisassemblerProvider jdk.vm.ci.code.CodeCacheProvider org.graalvm.compiler.code.CompilationResult java.io.File java.lang.String[] java.lang.String java.util.regex.Pattern jdk.vm.ci.code.TargetDescription jdk.vm.ci.code.RegisterConfig jdk.vm.ci.code.Register jdk.vm.ci.code.CodeUtil$RefMapFormatter java.util.Map jdk.vm.ci.code.site.Infopoint java.util.Iterator jdk.vm.ci.code.site.Call
StackMap stack:
aload 11
aload 14
getfield jdk.vm.ci.code.site.Call.pcOffset:I
new java.lang.StringBuilder
dup
ldc "{"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
aload 14
invokeinterface jdk.vm.ci.code.CodeCacheProvider.getTargetName:(Ljdk/vm/ci/code/site/Call;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "}"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.graalvm.compiler.hotspot.meta.HotSpotObjdumpDisassemblerProvider.putAnnotation:(Ljava/util/Map;ILjava/lang/String;)V
end local 14 48: goto 52
49: StackMap locals:
StackMap stack:
aload 12
getfield jdk.vm.ci.code.site.Infopoint.debugInfo:Ljdk/vm/ci/code/DebugInfo;
ifnull 51
50: aload 11
aload 12
getfield jdk.vm.ci.code.site.Infopoint.pcOffset:I
new java.lang.StringBuilder
dup
bipush 100
invokespecial java.lang.StringBuilder.<init>:(I)V
aload 12
getfield jdk.vm.ci.code.site.Infopoint.debugInfo:Ljdk/vm/ci/code/DebugInfo;
aload 10
invokestatic jdk.vm.ci.code.CodeUtil.append:(Ljava/lang/StringBuilder;Ljdk/vm/ci/code/DebugInfo;Ljdk/vm/ci/code/CodeUtil$RefMapFormatter;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.graalvm.compiler.hotspot.meta.HotSpotObjdumpDisassemblerProvider.putAnnotation:(Ljava/util/Map;ILjava/lang/String;)V
51: StackMap locals:
StackMap stack:
aload 11
aload 12
getfield jdk.vm.ci.code.site.Infopoint.pcOffset:I
new java.lang.StringBuilder
dup
ldc "{infopoint: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 12
getfield jdk.vm.ci.code.site.Infopoint.reason:Ljdk/vm/ci/code/site/InfopointReason;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "}"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.graalvm.compiler.hotspot.meta.HotSpotObjdumpDisassemblerProvider.putAnnotation:(Ljava/util/Map;ILjava/lang/String;)V
end local 12 52: StackMap locals: org.graalvm.compiler.hotspot.meta.HotSpotObjdumpDisassemblerProvider jdk.vm.ci.code.CodeCacheProvider org.graalvm.compiler.code.CompilationResult java.io.File java.lang.String[] java.lang.String java.util.regex.Pattern jdk.vm.ci.code.TargetDescription jdk.vm.ci.code.RegisterConfig jdk.vm.ci.code.Register jdk.vm.ci.code.CodeUtil$RefMapFormatter java.util.Map top java.util.Iterator
StackMap stack:
aload 13
invokeinterface java.util.Iterator.hasNext:()Z
ifne 42
53: invokestatic java.lang.Runtime.getRuntime:()Ljava/lang/Runtime;
aload 4
invokevirtual java.lang.Runtime.exec:([Ljava/lang/String;)Ljava/lang/Process;
astore 12
start local 12 54: aload 12
invokevirtual java.lang.Process.getInputStream:()Ljava/io/InputStream;
astore 13
start local 13 55: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 14
start local 14 56: new java.io.InputStreamReader
dup
aload 13
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;)V
astore 15
start local 15 57: aconst_null
astore 16
aconst_null
astore 17
58: new java.io.BufferedReader
dup
aload 15
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
astore 18
start local 18 59: goto 69
start local 19 60: StackMap locals: org.graalvm.compiler.hotspot.meta.HotSpotObjdumpDisassemblerProvider jdk.vm.ci.code.CodeCacheProvider org.graalvm.compiler.code.CompilationResult java.io.File java.lang.String[] java.lang.String java.util.regex.Pattern jdk.vm.ci.code.TargetDescription jdk.vm.ci.code.RegisterConfig jdk.vm.ci.code.Register jdk.vm.ci.code.CodeUtil$RefMapFormatter java.util.Map java.lang.Process java.io.InputStream java.lang.StringBuilder java.io.InputStreamReader java.lang.Throwable java.lang.Throwable java.io.BufferedReader java.lang.String
StackMap stack:
aload 6
aload 19
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
astore 20
start local 20 61: aload 20
invokevirtual java.util.regex.Matcher.find:()Z
ifeq 68
62: aload 20
iconst_2
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
bipush 16
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;I)I
istore 21
start local 21 63: aload 11
iload 21
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 22
start local 22 64: aload 22
ifnull 67
65: aload 22
ldc "\n"
ldc "\n; "
invokevirtual java.lang.String.replace:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
astore 22
66: aload 14
ldc "; "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 22
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 10
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
67: StackMap locals: java.util.regex.Matcher int java.lang.String
StackMap stack:
aload 20
ldc "0x$1"
invokevirtual java.util.regex.Matcher.replaceAll:(Ljava/lang/String;)Ljava/lang/String;
astore 19
end local 22 end local 21 68: StackMap locals:
StackMap stack:
aload 14
aload 19
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 20 end local 19 69: StackMap locals:
StackMap stack:
aload 18
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
dup
astore 19
start local 19 70: ifnonnull 60
end local 19 71: aload 18
ifnull 77
aload 18
invokevirtual java.io.BufferedReader.close:()V
goto 77
StackMap locals:
StackMap stack: java.lang.Throwable
72: astore 16
aload 18
ifnull 73
aload 18
invokevirtual java.io.BufferedReader.close:()V
end local 18 StackMap locals:
StackMap stack:
73: aload 16
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
74: astore 17
aload 16
ifnonnull 75
aload 17
astore 16
goto 76
StackMap locals:
StackMap stack:
75: aload 16
aload 17
if_acmpeq 76
aload 16
aload 17
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
76: aload 16
athrow
77: StackMap locals:
StackMap stack:
aconst_null
astore 16
aconst_null
astore 17
78: new java.io.BufferedReader
dup
new java.io.InputStreamReader
dup
aload 12
invokevirtual java.lang.Process.getErrorStream:()Ljava/io/InputStream;
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;)V
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
astore 18
start local 18 79: aload 18
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
astore 19
start local 19 80: aload 19
ifnull 86
81: getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Error output from executing: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
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;
org/graalvm/compiler/hotspot/meta/HotSpotObjdumpDisassemblerProvider.lambda$0(Ljava/lang/String;)Ljava/lang/String; (6)
(Ljava/lang/String;)Ljava/lang/String;
ldc " "
invokestatic org.graalvm.util.CollectionsUtil.mapAndJoin:([Ljava/lang/Object;Ljava/util/function/Function;Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
82: getstatic java.lang.System.err:Ljava/io/PrintStream;
aload 19
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
83: goto 85
84: StackMap locals: org.graalvm.compiler.hotspot.meta.HotSpotObjdumpDisassemblerProvider jdk.vm.ci.code.CodeCacheProvider org.graalvm.compiler.code.CompilationResult java.io.File java.lang.String[] java.lang.String java.util.regex.Pattern jdk.vm.ci.code.TargetDescription jdk.vm.ci.code.RegisterConfig jdk.vm.ci.code.Register jdk.vm.ci.code.CodeUtil$RefMapFormatter java.util.Map java.lang.Process java.io.InputStream java.lang.StringBuilder java.io.InputStreamReader java.lang.Throwable java.lang.Throwable java.io.BufferedReader java.lang.String
StackMap stack:
getstatic java.lang.System.err:Ljava/io/PrintStream;
aload 19
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
85: StackMap locals:
StackMap stack:
aload 18
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
dup
astore 19
ifnonnull 84
end local 19 86: StackMap locals:
StackMap stack:
aload 18
ifnull 92
aload 18
invokevirtual java.io.BufferedReader.close:()V
goto 92
StackMap locals:
StackMap stack: java.lang.Throwable
87: astore 16
aload 18
ifnull 88
aload 18
invokevirtual java.io.BufferedReader.close:()V
end local 18 StackMap locals:
StackMap stack:
88: aload 16
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
89: astore 17
aload 16
ifnonnull 90
aload 17
astore 16
goto 91
StackMap locals:
StackMap stack:
90: aload 16
aload 17
if_acmpeq 91
aload 16
aload 17
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
91: aload 16
athrow
92: StackMap locals:
StackMap stack:
aload 14
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 24
93: aload 3
ifnull 95
94: aload 3
invokevirtual java.io.File.delete:()Z
pop
95: StackMap locals: org.graalvm.compiler.hotspot.meta.HotSpotObjdumpDisassemblerProvider jdk.vm.ci.code.CodeCacheProvider org.graalvm.compiler.code.CompilationResult java.io.File java.lang.String[] java.lang.String java.util.regex.Pattern jdk.vm.ci.code.TargetDescription jdk.vm.ci.code.RegisterConfig jdk.vm.ci.code.Register jdk.vm.ci.code.CodeUtil$RefMapFormatter java.util.Map java.lang.Process java.io.InputStream java.lang.StringBuilder java.io.InputStreamReader top top top top top top top top java.lang.String
StackMap stack:
aload 24
areturn
end local 15 end local 14 end local 13 end local 12 end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 96: StackMap locals: org.graalvm.compiler.hotspot.meta.HotSpotObjdumpDisassemblerProvider jdk.vm.ci.code.CodeCacheProvider org.graalvm.compiler.code.CompilationResult java.io.File
StackMap stack: java.io.IOException
astore 4
start local 4 97: aload 4
invokevirtual java.io.IOException.printStackTrace:()V
98: aload 3
ifnull 100
99: aload 3
invokevirtual java.io.File.delete:()Z
pop
100: StackMap locals: java.io.IOException
StackMap stack:
aconst_null
areturn
end local 4 101: StackMap locals: org.graalvm.compiler.hotspot.meta.HotSpotObjdumpDisassemblerProvider jdk.vm.ci.code.CodeCacheProvider org.graalvm.compiler.code.CompilationResult java.io.File
StackMap stack: java.lang.Throwable
astore 23
102: aload 3
ifnull 104
103: aload 3
invokevirtual java.io.File.delete:()Z
pop
104: StackMap locals: org.graalvm.compiler.hotspot.meta.HotSpotObjdumpDisassemblerProvider jdk.vm.ci.code.CodeCacheProvider org.graalvm.compiler.code.CompilationResult java.io.File top top top top top top top top top top top top top top top top top top top java.lang.Throwable
StackMap stack:
aload 23
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 105 0 this Lorg/graalvm/compiler/hotspot/meta/HotSpotObjdumpDisassemblerProvider;
0 105 1 codeCache Ljdk/vm/ci/code/CodeCacheProvider;
0 105 2 compResult Lorg/graalvm/compiler/code/CompilationResult;
3 105 3 tmp Ljava/io/File;
6 9 6 fos Ljava/io/FileOutputStream;
16 17 4 cmdline [Ljava/lang/String;
19 20 4 cmdline [Ljava/lang/String;
23 96 4 cmdline [Ljava/lang/String;
14 96 5 arch Ljava/lang/String;
24 96 6 p Ljava/util/regex/Pattern;
25 96 7 target Ljdk/vm/ci/code/TargetDescription;
26 96 8 regConfig Ljdk/vm/ci/code/RegisterConfig;
27 96 9 fp Ljdk/vm/ci/code/Register;
28 96 10 slotFormatter Ljdk/vm/ci/code/CodeUtil$RefMapFormatter;
29 96 11 annotations Ljava/util/Map<Ljava/lang/Integer;Ljava/lang/String;>;
31 32 12 site Ljdk/vm/ci/code/site/DataPatch;
35 36 12 mark Ljdk/vm/ci/code/site/Mark;
39 40 12 a Lorg/graalvm/compiler/code/CompilationResult$CodeAnnotation;
43 52 12 infopoint Ljdk/vm/ci/code/site/Infopoint;
45 48 14 call Ljdk/vm/ci/code/site/Call;
54 96 12 proc Ljava/lang/Process;
55 96 13 is Ljava/io/InputStream;
56 96 14 sb Ljava/lang/StringBuilder;
57 96 15 isr Ljava/io/InputStreamReader;
59 73 18 br Ljava/io/BufferedReader;
60 69 19 line Ljava/lang/String;
70 71 19 line Ljava/lang/String;
61 69 20 m Ljava/util/regex/Matcher;
63 68 21 address I
64 68 22 annotation Ljava/lang/String;
79 88 18 ebr Ljava/io/BufferedReader;
80 86 19 errLine Ljava/lang/String;
97 101 4 e Ljava/io/IOException;
Exception table:
from to target type
6 7 8 any
5 10 10 any
59 71 72 any
58 74 74 any
79 86 87 any
78 89 89 any
3 20 96 Class java.io.IOException
23 93 96 Class java.io.IOException
3 20 101 any
23 93 101 any
96 98 101 any
MethodParameters:
Name Flags
codeCache
compResult
public static java.lang.String quoteShellArg(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.String.isEmpty:()Z
ifeq 2
1: ldc "\"\""
areturn
2: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.hotspot.meta.HotSpotObjdumpDisassemblerProvider.SAFE_SHELL_ARG:Ljava/util/regex/Pattern;
aload 0
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
astore 1
start local 1 3: aload 1
invokevirtual java.util.regex.Matcher.matches:()Z
ifeq 5
4: aload 0
areturn
5: StackMap locals: java.util.regex.Matcher
StackMap stack:
new java.lang.StringBuilder
dup
ldc "'"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
ldc "'"
ldc "'\"'\"'"
invokevirtual java.lang.String.replace:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "'"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 arg Ljava/lang/String;
3 6 1 m Ljava/util/regex/Matcher;
MethodParameters:
Name Flags
arg
private static java.lang.String getObjdump();
descriptor: ()Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=11, args_size=0
0: iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "objdump"
aastore
dup
iconst_1
ldc "gobjdump"
aastore
dup
astore 3
arraylength
istore 2
iconst_0
istore 1
goto 19
StackMap locals: top int int java.lang.String[]
StackMap stack:
1: aload 3
iload 1
aaload
astore 0
start local 0 2: iconst_2
anewarray java.lang.String
dup
iconst_0
aload 0
aastore
dup
iconst_1
ldc "--version"
aastore
astore 4
start local 4 3: invokestatic java.lang.Runtime.getRuntime:()Ljava/lang/Runtime;
aload 4
invokevirtual java.lang.Runtime.exec:([Ljava/lang/String;)Ljava/lang/Process;
astore 5
start local 5 4: aload 5
invokevirtual java.lang.Process.getInputStream:()Ljava/io/InputStream;
astore 6
start local 6 5: aload 5
invokevirtual java.lang.Process.waitFor:()I
istore 7
start local 7 6: iload 7
ifne 18
7: aload 6
invokevirtual java.io.InputStream.available:()I
newarray 8
astore 8
start local 8 8: iconst_0
istore 9
start local 9 9: goto 12
10: StackMap locals: java.lang.String int int java.lang.String[] java.lang.String[] java.lang.Process java.io.InputStream int byte[] int
StackMap stack:
aload 6
aload 8
iload 9
aload 8
arraylength
iload 9
isub
invokevirtual java.io.InputStream.read:([BII)I
istore 10
start local 10 11: iload 9
iload 10
iadd
istore 9
end local 10 12: StackMap locals:
StackMap stack:
iload 9
aload 8
arraylength
if_icmplt 10
13: new java.lang.String
dup
aload 8
invokespecial java.lang.String.<init>:([B)V
astore 10
start local 10 14: aload 10
ldc "GNU objdump"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 18
15: aload 0
16: areturn
end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 17: StackMap locals: java.lang.String int int java.lang.String[]
StackMap stack: java.lang.Exception
pop
end local 0 18: StackMap locals: top int int java.lang.String[]
StackMap stack:
iinc 1 1
StackMap locals:
StackMap stack:
19: iload 1
iload 2
if_icmplt 1
20: aconst_null
areturn
LocalVariableTable:
Start End Slot Name Signature
2 18 0 candidate Ljava/lang/String;
3 17 4 cmd [Ljava/lang/String;
4 17 5 proc Ljava/lang/Process;
5 17 6 is Ljava/io/InputStream;
6 17 7 exitValue I
8 17 8 buf [B
9 17 9 pos I
11 12 10 read I
14 17 10 output Ljava/lang/String;
Exception table:
from to target type
2 16 17 Class java.io.IOException
2 16 17 Class java.lang.InterruptedException
private static void putAnnotation(java.util.Map<java.lang.Integer, java.lang.String>, int, java.lang.String);
descriptor: (Ljava/util/Map;ILjava/lang/String;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: new java.lang.StringBuilder
dup
aload 0
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
ldc ""
invokeinterface java.util.Map.getOrDefault:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
start local 3 1: aload 0
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 3
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 annotations Ljava/util/Map<Ljava/lang/Integer;Ljava/lang/String;>;
0 3 1 idx I
0 3 2 txt Ljava/lang/String;
1 3 3 newAnnotation Ljava/lang/String;
Signature: (Ljava/util/Map<Ljava/lang/Integer;Ljava/lang/String;>;ILjava/lang/String;)V
MethodParameters:
Name Flags
annotations
idx
txt
public java.lang.String disassembleInstalledCode(jdk.vm.ci.code.CodeCacheProvider, org.graalvm.compiler.code.CompilationResult, jdk.vm.ci.code.InstalledCode);
descriptor: (Ljdk/vm/ci/code/CodeCacheProvider;Lorg/graalvm/compiler/code/CompilationResult;Ljdk/vm/ci/code/InstalledCode;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
checkcast jdk.vm.ci.hotspot.HotSpotCodeCacheProvider
aload 3
invokevirtual jdk.vm.ci.hotspot.HotSpotCodeCacheProvider.disassemble:(Ljdk/vm/ci/code/InstalledCode;)Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/hotspot/meta/HotSpotObjdumpDisassemblerProvider;
0 1 1 codeCache Ljdk/vm/ci/code/CodeCacheProvider;
0 1 2 compResult Lorg/graalvm/compiler/code/CompilationResult;
0 1 3 code Ljdk/vm/ci/code/InstalledCode;
MethodParameters:
Name Flags
codeCache
compResult
code
public java.lang.String getName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "hsdis-objdump"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/hotspot/meta/HotSpotObjdumpDisassemblerProvider;
private static java.lang.String lambda$0(java.lang.String);
descriptor: (Ljava/lang/String;)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
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokestatic org.graalvm.compiler.hotspot.meta.HotSpotObjdumpDisassemblerProvider.quoteShellArg:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 e Ljava/lang/String;
}
SourceFile: "HotSpotObjdumpDisassemblerProvider.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public DefaultRefMapFormatter = jdk.vm.ci.code.CodeUtil$DefaultRefMapFormatter of jdk.vm.ci.code.CodeUtil
public abstract RefMapFormatter = jdk.vm.ci.code.CodeUtil$RefMapFormatter of jdk.vm.ci.code.CodeUtil
public abstract CodeAnnotation = org.graalvm.compiler.code.CompilationResult$CodeAnnotation of org.graalvm.compiler.code.CompilationResult
RuntimeInvisibleAnnotations:
org.graalvm.compiler.serviceprovider.ServiceProvider(value = Lorg/graalvm/compiler/code/DisassemblerProvider;)