mirror of
https://github.com/dart-lang/sdk
synced 2024-11-05 18:22:09 +00:00
use const Link so that empty Link is always identical
BUG= R=sigmund@google.com Review URL: https://codereview.chromium.org/2033873002 .
This commit is contained in:
parent
c2f04d2dc2
commit
88dd7c8f37
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ class LinkEntry<T> extends Link<T> {
|
|||
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.
|
||||
|
|
Loading…
Reference in a new issue