interface org.graalvm.compiler.printer.GraphPrinter extends java.io.Closeable
minor version: 0
major version: 59
flags: flags: (0x0600) ACC_INTERFACE, ACC_ABSTRACT
this_class: org.graalvm.compiler.printer.GraphPrinter
super_class: java.lang.Object
{
public static final java.lang.String JVMCI_RUNTIME_PACKAGE;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final java.lang.Object JVMCI_MODULE;
descriptor: Ljava/lang/Object;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final java.util.Set<java.lang.Class<?>> TRUSTED_CLASSES;
descriptor: Ljava/util/Set;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Set<Ljava/lang/Class<*>;>;
public static final int MAX_CONSTANT_TO_STRING_LENGTH;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 50
public static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=0, args_size=0
0: ldc Lorg/graalvm/compiler/printer/GraphPrinter;
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 org.graalvm.compiler.printer.GraphPrinter.$assertionsDisabled:Z
3: ldc Ljdk/vm/ci/runtime/JVMCI;
invokevirtual java.lang.Class.getPackage:()Ljava/lang/Package;
invokevirtual java.lang.Package.getName:()Ljava/lang/String;
putstatic org.graalvm.compiler.printer.GraphPrinter.JVMCI_RUNTIME_PACKAGE:Ljava/lang/String;
4: getstatic org.graalvm.compiler.core.common.util.Util.JAVA_SPECIFICATION_VERSION:I
bipush 9
if_icmpge 5
aconst_null
goto 6
StackMap locals:
StackMap stack:
5: getstatic org.graalvm.compiler.core.common.util.ModuleAPI.getModule:Lorg/graalvm/compiler/core/common/util/ModuleAPI;
ldc Ljdk/vm/ci/services/Services;
iconst_0
anewarray java.lang.Object
invokevirtual org.graalvm.compiler.core.common.util.ModuleAPI.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
StackMap locals:
StackMap stack: java.lang.Object
6: putstatic org.graalvm.compiler.printer.GraphPrinter.JVMCI_MODULE:Ljava/lang/Object;
7: new java.util.HashSet
dup
bipush 10
anewarray java.lang.Class
dup
iconst_0
8: ldc Ljava/lang/String;
aastore
dup
iconst_1
9: ldc Ljava/lang/Class;
aastore
dup
iconst_2
10: ldc Ljava/lang/Boolean;
aastore
dup
iconst_3
11: ldc Ljava/lang/Byte;
aastore
dup
iconst_4
12: ldc Ljava/lang/Character;
aastore
dup
iconst_5
13: ldc Ljava/lang/Short;
aastore
dup
bipush 6
14: ldc Ljava/lang/Integer;
aastore
dup
bipush 7
15: ldc Ljava/lang/Float;
aastore
dup
bipush 8
16: ldc Ljava/lang/Long;
aastore
dup
bipush 9
17: ldc Ljava/lang/Double;
aastore
18: invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokespecial java.util.HashSet.<init>:(Ljava/util/Collection;)V
putstatic org.graalvm.compiler.printer.GraphPrinter.TRUSTED_CLASSES:Ljava/util/Set;
19: return
LocalVariableTable:
Start End Slot Name Signature
public abstract void beginGroup(java.lang.String, java.lang.String, jdk.vm.ci.meta.ResolvedJavaMethod, int, java.util.Map<java.lang.Object, java.lang.Object>);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljdk/vm/ci/meta/ResolvedJavaMethod;ILjava/util/Map;)V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Exceptions:
throws java.io.IOException
Signature: (Ljava/lang/String;Ljava/lang/String;Ljdk/vm/ci/meta/ResolvedJavaMethod;ILjava/util/Map<Ljava/lang/Object;Ljava/lang/Object;>;)V
MethodParameters:
Name Flags
name
shortName
method
bci
properties
public abstract void print(org.graalvm.compiler.graph.Graph, java.lang.String, java.util.Map<java.lang.Object, java.lang.Object>);
descriptor: (Lorg/graalvm/compiler/graph/Graph;Ljava/lang/String;Ljava/util/Map;)V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Exceptions:
throws java.io.IOException
Signature: (Lorg/graalvm/compiler/graph/Graph;Ljava/lang/String;Ljava/util/Map<Ljava/lang/Object;Ljava/lang/Object;>;)V
MethodParameters:
Name Flags
graph
title
properties
public abstract org.graalvm.compiler.api.replacements.SnippetReflectionProvider getSnippetReflectionProvider();
descriptor: ()Lorg/graalvm/compiler/api/replacements/SnippetReflectionProvider;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract void endGroup();
descriptor: ()V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Exceptions:
throws java.io.IOException
public abstract void close();
descriptor: ()V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public static boolean isToStringTrusted(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: getstatic org.graalvm.compiler.printer.GraphPrinter.TRUSTED_CLASSES:Ljava/util/Set;
aload 0
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.core.common.util.Util.JAVA_SPECIFICATION_VERSION:I
bipush 9
if_icmpge 5
3: aload 0
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
ldc Ljdk/vm/ci/services/Services;
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
if_acmpne 8
4: iconst_1
ireturn
5: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.core.common.util.ModuleAPI.getModule:Lorg/graalvm/compiler/core/common/util/ModuleAPI;
aload 0
iconst_0
anewarray java.lang.Object
invokevirtual org.graalvm.compiler.core.common.util.ModuleAPI.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
astore 1
start local 1 6: getstatic org.graalvm.compiler.printer.GraphPrinter.JVMCI_MODULE:Ljava/lang/Object;
aload 1
if_acmpeq 7
getstatic org.graalvm.compiler.core.common.util.ModuleAPI.isExportedTo:Lorg/graalvm/compiler/core/common/util/ModuleAPI;
getstatic org.graalvm.compiler.printer.GraphPrinter.JVMCI_MODULE:Ljava/lang/Object;
iconst_2
anewarray java.lang.Object
dup
iconst_0
getstatic org.graalvm.compiler.printer.GraphPrinter.JVMCI_RUNTIME_PACKAGE:Ljava/lang/String;
aastore
dup
iconst_1
aload 1
aastore
invokevirtual org.graalvm.compiler.core.common.util.ModuleAPI.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 8
7: StackMap locals: java.lang.Object
StackMap stack:
iconst_1
ireturn
end local 1 8: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 c Ljava/lang/Class<*>;
6 8 1 module Ljava/lang/Object;
Signature: (Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
c
public void updateStringPropertiesForConstant(java.util.Map<java.lang.Object, java.lang.Object>, org.graalvm.compiler.nodes.ConstantNode);
descriptor: (Ljava/util/Map;Lorg/graalvm/compiler/nodes/ConstantNode;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokeinterface org.graalvm.compiler.printer.GraphPrinter.getSnippetReflectionProvider:()Lorg/graalvm/compiler/api/replacements/SnippetReflectionProvider;
astore 3
start local 3 1: aload 3
ifnull 11
aload 2
invokevirtual org.graalvm.compiler.nodes.ConstantNode.getValue:()Ljdk/vm/ci/meta/Constant;
instanceof jdk.vm.ci.meta.JavaConstant
ifeq 11
2: aload 2
invokevirtual org.graalvm.compiler.nodes.ConstantNode.getValue:()Ljdk/vm/ci/meta/Constant;
checkcast jdk.vm.ci.meta.JavaConstant
astore 4
start local 4 3: aload 4
invokeinterface jdk.vm.ci.meta.JavaConstant.getJavaKind:()Ljdk/vm/ci/meta/JavaKind;
getstatic jdk.vm.ci.meta.JavaKind.Object:Ljdk/vm/ci/meta/JavaKind;
if_acmpne 11
4: aload 3
ldc Ljava/lang/Object;
aload 4
invokeinterface org.graalvm.compiler.api.replacements.SnippetReflectionProvider.asObject:(Ljava/lang/Class;Ljdk/vm/ci/meta/JavaConstant;)Ljava/lang/Object;
astore 5
start local 5 5: aload 5
ifnull 11
6: aload 5
invokestatic org.graalvm.compiler.printer.GraphPrinter.constantToString:(Ljava/lang/Object;)Ljava/lang/String;
astore 6
start local 6 7: aload 6
invokestatic org.graalvm.compiler.printer.GraphPrinter.truncate:(Ljava/lang/String;)Ljava/lang/String;
astore 7
start local 7 8: aload 1
ldc "rawvalue"
aload 7
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
9: aload 7
aload 6
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 11
10: aload 1
ldc "toString"
aload 6
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 7 end local 6 end local 5 end local 4 11: StackMap locals: org.graalvm.compiler.api.replacements.SnippetReflectionProvider
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/graalvm/compiler/printer/GraphPrinter;
0 12 1 props Ljava/util/Map<Ljava/lang/Object;Ljava/lang/Object;>;
0 12 2 cn Lorg/graalvm/compiler/nodes/ConstantNode;
1 12 3 snippetReflection Lorg/graalvm/compiler/api/replacements/SnippetReflectionProvider;
3 11 4 constant Ljdk/vm/ci/meta/JavaConstant;
5 11 5 obj Ljava/lang/Object;
7 11 6 toString Ljava/lang/String;
8 11 7 rawvalue Ljava/lang/String;
Signature: (Ljava/util/Map<Ljava/lang/Object;Ljava/lang/Object;>;Lorg/graalvm/compiler/nodes/ConstantNode;)V
MethodParameters:
Name Flags
props
cn
public static java.lang.String truncate(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.String.length:()I
bipush 50
if_icmple 2
1: new java.lang.StringBuilder
dup
aload 0
iconst_0
bipush 47
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 "..."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
2: StackMap locals:
StackMap stack:
aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 s Ljava/lang/String;
MethodParameters:
Name Flags
s
public static java.lang.String constantToString(java.lang.Object);
descriptor: (Ljava/lang/Object;)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.Object.getClass:()Ljava/lang/Class;
astore 1
start local 1 1: aload 1
invokevirtual java.lang.Class.isArray:()Z
ifeq 3
2: aload 0
invokestatic org.graalvm.compiler.printer.GraphPrinter.constantArrayToString:(Ljava/lang/Object;)Ljava/lang/String;
areturn
3: StackMap locals: java.lang.Class
StackMap stack:
aload 0
instanceof java.lang.Enum
ifeq 5
4: aload 0
checkcast java.lang.Enum
invokevirtual java.lang.Enum.name:()Ljava/lang/String;
areturn
5: StackMap locals:
StackMap stack:
aload 1
invokestatic org.graalvm.compiler.printer.GraphPrinter.isToStringTrusted:(Ljava/lang/Class;)Z
ifeq 7
6: aload 0
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
areturn
7: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
aload 1
iconst_1
invokestatic jdk.vm.ci.meta.MetaUtil.getSimpleName:(Ljava/lang/Class;Z)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;
aload 0
invokestatic java.lang.System.identityHashCode:(Ljava/lang/Object;)I
invokevirtual java.lang.StringBuilder.append:(I)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 8 0 value Ljava/lang/Object;
1 8 1 c Ljava/lang/Class<*>;
MethodParameters:
Name Flags
value
public static java.lang.String constantArrayToString(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=8, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getComponentType:()Ljava/lang/Class;
astore 1
start local 1 1: getstatic org.graalvm.compiler.printer.GraphPrinter.$assertionsDisabled:Z
ifne 2
aload 1
ifnonnull 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals: java.lang.Class
StackMap stack:
aload 0
invokestatic java.lang.reflect.Array.getLength:(Ljava/lang/Object;)I
istore 2
start local 2 3: new java.lang.StringBuilder
dup
aload 1
iconst_1
invokestatic jdk.vm.ci.meta.MetaUtil.getSimpleName:(Ljava/lang/Class;Z)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
bipush 91
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "]{"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
astore 3
start local 3 4: iload 2
istore 4
start local 4 5: aload 1
invokevirtual java.lang.Class.isPrimitive:()Z
istore 5
start local 5 6: iconst_0
istore 6
start local 6 7: goto 18
8: StackMap locals: java.lang.Object java.lang.Class int java.lang.StringBuilder int int int
StackMap stack:
iload 5
ifeq 11
9: aload 3
aload 0
iload 6
invokestatic java.lang.reflect.Array.get:(Ljava/lang/Object;I)Ljava/lang/Object;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
pop
10: goto 15
11: StackMap locals:
StackMap stack:
aload 0
checkcast java.lang.Object[]
iload 6
aaload
astore 7
start local 7 12: aload 3
aload 7
ifnonnull 13
ldc "null"
goto 14
StackMap locals: java.lang.Object java.lang.Class int java.lang.StringBuilder int int int java.lang.Object
StackMap stack: java.lang.StringBuilder
13: aload 7
invokestatic org.graalvm.compiler.printer.GraphPrinter.constantToString:(Ljava/lang/Object;)Ljava/lang/String;
StackMap locals: java.lang.Object java.lang.Class int java.lang.StringBuilder int int int java.lang.Object
StackMap stack: java.lang.StringBuilder java.lang.String
14: invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 7 15: StackMap locals:
StackMap stack:
iload 6
iload 4
iconst_1
isub
if_icmpeq 17
16: aload 3
ldc ", "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
17: StackMap locals:
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
18: iload 6
iload 4
if_icmplt 8
end local 6 19: aload 3
bipush 125
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
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 array Ljava/lang/Object;
1 20 1 componentType Ljava/lang/Class<*>;
3 20 2 arrayLength I
4 20 3 buf Ljava/lang/StringBuilder;
5 20 4 length I
6 20 5 primitive Z
7 19 6 i I
12 15 7 o Ljava/lang/Object;
MethodParameters:
Name Flags
array
}
SourceFile: "GraphPrinter.java"