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 27 matching lines...) Expand all Loading... |
38 | 38 |
39 CoreClasses get coreClasses => compiler.coreClasses; | 39 CoreClasses get coreClasses => compiler.coreClasses; |
40 | 40 |
41 BackendImpact _getRuntimeTypeArgument; | 41 BackendImpact _getRuntimeTypeArgument; |
42 | 42 |
43 BackendImpact get getRuntimeTypeArgument { | 43 BackendImpact get getRuntimeTypeArgument { |
44 if (_getRuntimeTypeArgument == null) { | 44 if (_getRuntimeTypeArgument == null) { |
45 _getRuntimeTypeArgument = new BackendImpact(staticUses: [ | 45 _getRuntimeTypeArgument = new BackendImpact(staticUses: [ |
46 helpers.getRuntimeTypeArgument, | 46 helpers.getRuntimeTypeArgument, |
47 helpers.getTypeArgumentByIndex, | 47 helpers.getTypeArgumentByIndex, |
48 helpers.copyTypeArguments | |
49 ]); | 48 ]); |
50 } | 49 } |
51 return _getRuntimeTypeArgument; | 50 return _getRuntimeTypeArgument; |
52 } | 51 } |
53 | 52 |
54 BackendImpact _computeSignature; | 53 BackendImpact _computeSignature; |
55 | 54 |
56 BackendImpact get computeSignature { | 55 BackendImpact get computeSignature { |
57 if (_computeSignature == null) { | 56 if (_computeSignature == null) { |
58 _computeSignature = new BackendImpact(staticUses: [ | 57 _computeSignature = new BackendImpact(staticUses: [ |
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
598 BackendImpact _closure; | 597 BackendImpact _closure; |
599 | 598 |
600 BackendImpact get closure { | 599 BackendImpact get closure { |
601 if (_closure == null) { | 600 if (_closure == null) { |
602 _closure = | 601 _closure = |
603 new BackendImpact(instantiatedClasses: [coreClasses.functionClass]); | 602 new BackendImpact(instantiatedClasses: [coreClasses.functionClass]); |
604 } | 603 } |
605 return _closure; | 604 return _closure; |
606 } | 605 } |
607 } | 606 } |
OLD | NEW |