commit | a5fb4feae454a2016474b54bde491da5753d5be0 | [log] [tgz] |
---|---|---|
author | Harry Terkelsen <het@google.com> | Thu Jun 02 14:25:09 2016 -0700 |
committer | William Hesse <whesse@google.com> | Fri Jun 03 20:26:39 2016 +0200 |
tree | 4742d9823271cdbf16befb16ebc585ba6048dc34 | |
parent | 12525aebc981358ee073b236b95c0a1c5b980fdd [diff] |
use const Link so that empty Link is always identical BUG= R=sigmund@google.com Review URL: https://codereview.chromium.org/2033873002 .
diff --git a/pkg/compiler/lib/src/util/link_implementation.dart b/pkg/compiler/lib/src/util/link_implementation.dart index ac06c17..186bfff 100644 --- a/pkg/compiler/lib/src/util/link_implementation.dart +++ b/pkg/compiler/lib/src/util/link_implementation.dart
@@ -61,7 +61,7 @@ Link<T> tail; LinkEntry(T this.head, [Link<T> tail]) - : this.tail = ((tail == null) ? new Link<T>() : tail); + : this.tail = ((tail == null) ? const Link() : tail); Link<T> prepend(T element) { // TODO(ahe): Use new Link<T>, but this cost 8% performance on VM.