mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 00:39:49 +00:00
Create map for dump_info on demand.
Saves about 1% of heap for non --dump-info compile. R=sigmund@google.com Review URL: https://codereview.chromium.org/1777823002 .
This commit is contained in:
parent
ae009e0870
commit
42070892a4
|
@ -111,7 +111,10 @@ class TreeElementMapping extends TreeElements {
|
|||
Map<Spannable, Selector> _selectors;
|
||||
Map<Spannable, TypeMask> _typeMasks;
|
||||
Map<Node, DartType> _types;
|
||||
Map<Node, DartType> typesCache = <Node, DartType>{};
|
||||
|
||||
Map<Node, DartType> _typesCache;
|
||||
Map<Node, DartType> get typesCache => _typesCache ??= <Node, DartType>{};
|
||||
|
||||
Setlet<SourceSpan> _superUses;
|
||||
Map<Node, ConstantExpression> _constants;
|
||||
Map<VariableElement, List<Node>> _potentiallyMutated;
|
||||
|
|
Loading…
Reference in a new issue