| 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 '../common/names.dart'; | 7 import '../common/names.dart'; |
| 8 import '../common_elements.dart' show CommonElements, ElementEnvironment; | 8 import '../common_elements.dart' show CommonElements, ElementEnvironment; |
| 9 import '../elements/types.dart' show InterfaceType; | 9 import '../elements/types.dart' show InterfaceType; |
| 10 import '../elements/entities.dart'; | 10 import '../elements/entities.dart'; |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 return _mainWithArguments ??= new BackendImpact(instantiatedClasses: [ | 122 return _mainWithArguments ??= new BackendImpact(instantiatedClasses: [ |
| 123 _commonElements.jsArrayClass, | 123 _commonElements.jsArrayClass, |
| 124 _commonElements.jsStringClass | 124 _commonElements.jsStringClass |
| 125 ]); | 125 ]); |
| 126 } | 126 } |
| 127 | 127 |
| 128 BackendImpact _asyncBody; | 128 BackendImpact _asyncBody; |
| 129 | 129 |
| 130 BackendImpact get asyncBody { | 130 BackendImpact get asyncBody { |
| 131 return _asyncBody ??= new BackendImpact(staticUses: [ | 131 return _asyncBody ??= new BackendImpact(staticUses: [ |
| 132 _commonElements.asyncHelper, | 132 _commonElements.asyncHelperStart, |
| 133 _commonElements.asyncHelperAwait, |
| 134 _commonElements.asyncHelperReturn, |
| 135 _commonElements.asyncHelperRethrow, |
| 133 _commonElements.syncCompleterConstructor, | 136 _commonElements.syncCompleterConstructor, |
| 134 _commonElements.streamIteratorConstructor, | 137 _commonElements.streamIteratorConstructor, |
| 135 _commonElements.wrapBody | 138 _commonElements.wrapBody |
| 136 ]); | 139 ]); |
| 137 } | 140 } |
| 138 | 141 |
| 139 BackendImpact _syncStarBody; | 142 BackendImpact _syncStarBody; |
| 140 | 143 |
| 141 BackendImpact get syncStarBody { | 144 BackendImpact get syncStarBody { |
| 142 return _syncStarBody ??= new BackendImpact(staticUses: [ | 145 return _syncStarBody ??= new BackendImpact(staticUses: [ |
| (...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 789 /// Backend impact for type variables through mirrors. | 792 /// Backend impact for type variables through mirrors. |
| 790 BackendImpact get typeVariableMirror { | 793 BackendImpact get typeVariableMirror { |
| 791 return _typeVariableMirror ??= new BackendImpact(staticUses: [ | 794 return _typeVariableMirror ??= new BackendImpact(staticUses: [ |
| 792 _commonElements.typeVariableConstructor, | 795 _commonElements.typeVariableConstructor, |
| 793 _commonElements.createRuntimeType | 796 _commonElements.createRuntimeType |
| 794 ], instantiatedClasses: [ | 797 ], instantiatedClasses: [ |
| 795 _commonElements.typeVariableClass | 798 _commonElements.typeVariableClass |
| 796 ]); | 799 ]); |
| 797 } | 800 } |
| 798 } | 801 } |
| OLD | NEW |