| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library dart2js.js_helpers.impact; | 5 library dart2js.js_helpers.impact; |
| 6 | 6 |
| 7 import '../compiler.dart' show Compiler; | 7 import '../compiler.dart' show Compiler; |
| 8 import '../core_types.dart' show CoreClasses; | 8 import '../core_types.dart' show CoreClasses; |
| 9 import '../dart_types.dart' show InterfaceType; | 9 import '../dart_types.dart' show InterfaceType; |
| 10 import '../elements/elements.dart' show ClassElement, Element; | 10 import '../elements/elements.dart' show ClassElement, Element; |
| 11 | |
| 12 import 'backend_helpers.dart'; | 11 import 'backend_helpers.dart'; |
| 13 import 'constant_system_javascript.dart'; | 12 import 'constant_system_javascript.dart'; |
| 14 import 'js_backend.dart'; | 13 import 'js_backend.dart'; |
| 15 | 14 |
| 16 /// A set of JavaScript backend dependencies. | 15 /// A set of JavaScript backend dependencies. |
| 17 class BackendImpact { | 16 class BackendImpact { |
| 18 final List<Element> staticUses; | 17 final List<Element> staticUses; |
| 19 final List<InterfaceType> instantiatedTypes; | 18 final List<InterfaceType> instantiatedTypes; |
| 20 final List<ClassElement> instantiatedClasses; | 19 final List<ClassElement> instantiatedClasses; |
| 21 final List<BackendImpact> otherImpacts; | 20 final List<BackendImpact> otherImpacts; |
| (...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 599 BackendImpact _closure; | 598 BackendImpact _closure; |
| 600 | 599 |
| 601 BackendImpact get closure { | 600 BackendImpact get closure { |
| 602 if (_closure == null) { | 601 if (_closure == null) { |
| 603 _closure = | 602 _closure = |
| 604 new BackendImpact(instantiatedClasses: [coreClasses.functionClass]); | 603 new BackendImpact(instantiatedClasses: [coreClasses.functionClass]); |
| 605 } | 604 } |
| 606 return _closure; | 605 return _closure; |
| 607 } | 606 } |
| 608 } | 607 } |
| OLD | NEW |