< prev index next >
src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.code/src/org/graalvm/compiler/code/CompilationResult.java
Print this page
rev 52509 : [mq]: graal2
@@ -189,10 +189,14 @@
private int totalFrameSize = -1;
private int maxInterpreterFrameSize = -1;
private StackSlot customStackArea = null;
+ /**
+ * A customized name that is unrelated to {@link #compilationId}. Can be null if
+ * {@link #compilationId} fully describes the compilation.
+ */
private final String name;
private final CompilationIdentifier compilationId;
/**
@@ -226,11 +230,11 @@
private boolean hasUnsafeAccess;
private boolean isImmutablePIC;
public CompilationResult(CompilationIdentifier compilationId) {
- this(compilationId, compilationId.toString(CompilationIdentifier.Verbosity.NAME), false);
+ this(compilationId, null, false);
}
public CompilationResult(CompilationIdentifier compilationId, String name) {
this(compilationId, name, false);
}
@@ -675,10 +679,14 @@
return emptyList();
}
return unmodifiableList(sourceMapping);
}
+ /**
+ * Gets the name for this compilation result. This will only be non-null when it provides a
+ * value unrelated to {@link #getCompilationId()}.
+ */
public String getName() {
return name;
}
public CompilationIdentifier getCompilationId() {
< prev index next >