[kernel] Fix non-deterministic output generation

Bug: http://dartbug.com/34086
Change-Id: I0d8037f1c6db27acb21148576da6a3b58bfb69a6
Reviewed-on: https://dart-review.googlesource.com/68940
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Dmitry Stefantsov <dmitryas@google.com>
This commit is contained in:
Dmitry Stefantsov 2018-08-08 16:36:06 +00:00 committed by commit-bot@chromium.org
parent 85d85246ad
commit 5dd2aca7fe

View file

@ -4448,7 +4448,10 @@ class _PrivateName extends Name {
Library get library => libraryName.asLibrary;
static int _computeHashCode(String name, Reference libraryName) {
return 131 * name.hashCode + 17 * libraryName.hashCode;
// TODO(dmitryas): Factor in [libraryName] in a non-deterministic way into
// the result. Note, the previous code here was the following:
// return 131 * name.hashCode + 17 * libraryName.asLibrary._libraryId;
return name.hashCode;
}
}