< 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]: graal
*** 189,198 ****
--- 189,202 ----
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,236 ****
private boolean hasUnsafeAccess;
private boolean isImmutablePIC;
public CompilationResult(CompilationIdentifier compilationId) {
! this(compilationId, compilationId.toString(CompilationIdentifier.Verbosity.NAME), false);
}
public CompilationResult(CompilationIdentifier compilationId, String name) {
this(compilationId, name, false);
}
--- 230,240 ----
private boolean hasUnsafeAccess;
private boolean isImmutablePIC;
public CompilationResult(CompilationIdentifier compilationId) {
! this(compilationId, null, false);
}
public CompilationResult(CompilationIdentifier compilationId, String name) {
this(compilationId, name, false);
}
*** 675,684 ****
--- 679,692 ----
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 >