public class com.oracle.svm.hosted.image.sources.SourceManager
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.oracle.svm.hosted.image.sources.SourceManager
super_class: java.lang.Object
{
com.oracle.svm.hosted.image.sources.SourceCache cache;
descriptor: Lcom/oracle/svm/hosted/image/sources/SourceCache;
flags: (0x0000)
private static java.util.HashMap<jdk.vm.ci.meta.ResolvedJavaType, java.nio.file.Path> verifiedPaths;
descriptor: Ljava/util/HashMap;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Signature: Ljava/util/HashMap<Ljdk/vm/ci/meta/ResolvedJavaType;Ljava/nio/file/Path;>;
private static final java.nio.file.Path INVALID_PATH;
descriptor: Ljava/nio/file/Path;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putstatic com.oracle.svm.hosted.image.sources.SourceManager.verifiedPaths:Ljava/util/HashMap;
1: ldc "invalid"
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
putstatic com.oracle.svm.hosted.image.sources.SourceManager.INVALID_PATH:Ljava/nio/file/Path;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new com.oracle.svm.hosted.image.sources.SourceCache
dup
invokespecial com.oracle.svm.hosted.image.sources.SourceCache.<init>:()V
putfield com.oracle.svm.hosted.image.sources.SourceManager.cache:Lcom/oracle/svm/hosted/image/sources/SourceCache;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/svm/hosted/image/sources/SourceManager;
public java.nio.file.Path findAndCacheSource(jdk.vm.ci.meta.ResolvedJavaType, java.lang.Class<?>, org.graalvm.compiler.debug.DebugContext);
descriptor: (Ljdk/vm/ci/meta/ResolvedJavaType;Ljava/lang/Class;Lorg/graalvm/compiler/debug/DebugContext;)Ljava/nio/file/Path;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: getstatic com.oracle.svm.hosted.image.sources.SourceManager.verifiedPaths:Ljava/util/HashMap;
aload 1
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.nio.file.Path
astore 4
start local 4 1: aload 4
ifnull 5
2: aload 4
getstatic com.oracle.svm.hosted.image.sources.SourceManager.INVALID_PATH:Ljava/nio/file/Path;
if_acmpeq 3
aload 4
goto 4
StackMap locals: java.nio.file.Path
StackMap stack:
3: aconst_null
StackMap locals:
StackMap stack: java.nio.file.Path
4: areturn
5: StackMap locals:
StackMap stack:
aload 1
invokestatic com.oracle.svm.hosted.image.sources.SourceManager.computeBaseName:(Ljdk/vm/ci/meta/ResolvedJavaType;)Ljava/lang/String;
astore 5
start local 5 6: aload 5
ifnull 16
7: aload 1
invokeinterface jdk.vm.ci.meta.ResolvedJavaType.isInstanceClass:()Z
ifne 8
aload 1
invokeinterface jdk.vm.ci.meta.ResolvedJavaType.isInterface:()Z
ifeq 16
8: StackMap locals: java.lang.String
StackMap stack:
aload 1
invokestatic com.oracle.svm.hosted.image.sources.SourceManager.computePackageName:(Ljdk/vm/ci/meta/ResolvedJavaType;)Ljava/lang/String;
astore 6
start local 6 9: aload 0
aload 5
aload 6
aload 2
invokevirtual com.oracle.svm.hosted.image.sources.SourceManager.locateSource:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Class;)Ljava/nio/file/Path;
astore 4
10: aload 4
ifnonnull 16
11: aload 3
invokevirtual org.graalvm.compiler.debug.DebugContext.areScopesEnabled:()Z
ifeq 13
12: aload 3
iconst_2
ldc "Failed to find source file for class %s\n"
aload 1
invokeinterface jdk.vm.ci.meta.ResolvedJavaType.toJavaName:()Ljava/lang/String;
invokevirtual org.graalvm.compiler.debug.DebugContext.log:(ILjava/lang/String;Ljava/lang/Object;)V
13: StackMap locals: java.lang.String
StackMap stack:
aload 6
invokevirtual java.lang.String.length:()I
ifle 16
14: ldc ""
aload 6
ldc "\\."
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
astore 4
15: aload 4
aload 5
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 4
end local 6 16: StackMap locals:
StackMap stack:
getstatic com.oracle.svm.hosted.image.sources.SourceManager.verifiedPaths:Ljava/util/HashMap;
aload 1
aload 4
ifnull 17
aload 4
goto 18
StackMap locals: com.oracle.svm.hosted.image.sources.SourceManager jdk.vm.ci.meta.ResolvedJavaType java.lang.Class org.graalvm.compiler.debug.DebugContext java.nio.file.Path java.lang.String
StackMap stack: java.util.HashMap jdk.vm.ci.meta.ResolvedJavaType
17: getstatic com.oracle.svm.hosted.image.sources.SourceManager.INVALID_PATH:Ljava/nio/file/Path;
StackMap locals: com.oracle.svm.hosted.image.sources.SourceManager jdk.vm.ci.meta.ResolvedJavaType java.lang.Class org.graalvm.compiler.debug.DebugContext java.nio.file.Path java.lang.String
StackMap stack: java.util.HashMap jdk.vm.ci.meta.ResolvedJavaType java.nio.file.Path
18: invokevirtual java.util.HashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
19: 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 20 0 this Lcom/oracle/svm/hosted/image/sources/SourceManager;
0 20 1 resolvedType Ljdk/vm/ci/meta/ResolvedJavaType;
0 20 2 clazz Ljava/lang/Class<*>;
0 20 3 debugContext Lorg/graalvm/compiler/debug/DebugContext;
1 20 4 path Ljava/nio/file/Path;
6 20 5 fileName Ljava/lang/String;
9 16 6 packageName Ljava/lang/String;
Signature: (Ljdk/vm/ci/meta/ResolvedJavaType;Ljava/lang/Class<*>;Lorg/graalvm/compiler/debug/DebugContext;)Ljava/nio/file/Path;
MethodParameters:
Name Flags
resolvedType
clazz
debugContext
private static java.lang.String computeBaseName(jdk.vm.ci.meta.ResolvedJavaType);
descriptor: (Ljdk/vm/ci/meta/ResolvedJavaType;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
invokeinterface jdk.vm.ci.meta.ResolvedJavaType.isPrimitive:()Z
ifeq 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokeinterface jdk.vm.ci.meta.ResolvedJavaType.getSourceFileName:()Ljava/lang/String;
astore 1
start local 1 3: aload 1
ifnonnull 15
4: aload 0
invokeinterface jdk.vm.ci.meta.ResolvedJavaType.toJavaName:()Ljava/lang/String;
astore 1
5: aload 1
bipush 46
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 2
start local 2 6: iload 2
ifle 8
7: aload 1
iload 2
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 1
8: StackMap locals: java.lang.String int
StackMap stack:
aload 1
bipush 36
invokevirtual java.lang.String.indexOf:(I)I
istore 2
9: iload 2
ifne 12
10: aconst_null
astore 1
11: goto 15
12: StackMap locals:
StackMap stack:
iload 2
ifle 14
13: aload 1
iconst_0
iload 2
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 1
14: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".java"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 1
end local 2 15: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 resolvedType Ljdk/vm/ci/meta/ResolvedJavaType;
3 16 1 fileName Ljava/lang/String;
6 15 2 idx I
MethodParameters:
Name Flags
resolvedType
private static java.lang.String computePackageName(jdk.vm.ci.meta.ResolvedJavaType);
descriptor: (Ljdk/vm/ci/meta/ResolvedJavaType;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
invokeinterface jdk.vm.ci.meta.ResolvedJavaType.toClassName:()Ljava/lang/String;
astore 1
start local 1 1: aload 1
bipush 46
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 2
start local 2 2: iload 2
ifle 4
3: aload 1
iconst_0
iload 2
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
areturn
4: StackMap locals: java.lang.String int
StackMap stack:
ldc ""
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 javaType Ljdk/vm/ci/meta/ResolvedJavaType;
1 5 1 name Ljava/lang/String;
2 5 2 idx I
MethodParameters:
Name Flags
javaType
private static java.nio.file.Path computePrototypeName(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/nio/file/Path;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.lang.String.length:()I
ifne 2
1: ldc ""
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 0
aastore
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
areturn
2: StackMap locals:
StackMap stack:
ldc ""
aload 1
ldc "\\."
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
aload 0
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 fileName Ljava/lang/String;
0 3 1 packageName Ljava/lang/String;
MethodParameters:
Name Flags
fileName
packageName
private java.nio.file.Path locateSource(java.lang.String, java.lang.String, java.lang.Class<?>);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/Class;)Ljava/nio/file/Path;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
aload 2
invokestatic com.oracle.svm.hosted.image.sources.SourceManager.computePrototypeName:(Ljava/lang/String;Ljava/lang/String;)Ljava/nio/file/Path;
astore 4
start local 4 1: aload 4
ifnull 3
2: aload 0
getfield com.oracle.svm.hosted.image.sources.SourceManager.cache:Lcom/oracle/svm/hosted/image/sources/SourceCache;
aload 4
aload 3
invokevirtual com.oracle.svm.hosted.image.sources.SourceCache.resolve:(Ljava/nio/file/Path;Ljava/lang/Class;)Ljava/nio/file/Path;
areturn
3: StackMap locals: java.nio.file.Path
StackMap stack:
aconst_null
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/svm/hosted/image/sources/SourceManager;
0 4 1 fileName Ljava/lang/String;
0 4 2 packagename Ljava/lang/String;
0 4 3 clazz Ljava/lang/Class<*>;
1 4 4 prototypeName Ljava/nio/file/Path;
Signature: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/Class<*>;)Ljava/nio/file/Path;
MethodParameters:
Name Flags
fileName
packagename
clazz
}
SourceFile: "SourceManager.java"