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; |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 find(JavaScriptMapConstant.DART_GENERAL_CLASS) | 284 find(JavaScriptMapConstant.DART_GENERAL_CLASS) |
285 ]); | 285 ]); |
286 } | 286 } |
287 return _constantMapLiteral; | 287 return _constantMapLiteral; |
288 } | 288 } |
289 | 289 |
290 BackendImpact _symbolConstructor; | 290 BackendImpact _symbolConstructor; |
291 | 291 |
292 BackendImpact get symbolConstructor { | 292 BackendImpact get symbolConstructor { |
293 if (_symbolConstructor == null) { | 293 if (_symbolConstructor == null) { |
294 _symbolConstructor = new BackendImpact( | 294 _symbolConstructor = |
295 staticUses: [helpers.compiler.symbolValidatedConstructor]); | 295 new BackendImpact(staticUses: [helpers.symbolValidatedConstructor]); |
296 } | 296 } |
297 return _symbolConstructor; | 297 return _symbolConstructor; |
298 } | 298 } |
299 | 299 |
300 BackendImpact _constSymbol; | 300 BackendImpact _constSymbol; |
301 | 301 |
302 BackendImpact get constSymbol { | 302 BackendImpact get constSymbol { |
303 if (_constSymbol == null) { | 303 if (_constSymbol == null) { |
304 _constSymbol = new BackendImpact( | 304 _constSymbol = new BackendImpact( |
305 instantiatedClasses: [coreClasses.symbolClass], | 305 instantiatedClasses: [coreClasses.symbolClass], |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
599 BackendImpact _closure; | 599 BackendImpact _closure; |
600 | 600 |
601 BackendImpact get closure { | 601 BackendImpact get closure { |
602 if (_closure == null) { | 602 if (_closure == null) { |
603 _closure = | 603 _closure = |
604 new BackendImpact(instantiatedClasses: [coreClasses.functionClass]); | 604 new BackendImpact(instantiatedClasses: [coreClasses.functionClass]); |
605 } | 605 } |
606 return _closure; | 606 return _closure; |
607 } | 607 } |
608 } | 608 } |
OLD | NEW |