| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 import '../common.dart'; | 5 import '../common.dart'; |
| 6 import '../common/names.dart'; | 6 import '../common/names.dart'; |
| 7 import '../compiler.dart'; | 7 import '../compiler.dart'; |
| 8 import '../constants/expressions.dart'; | 8 import '../constants/expressions.dart'; |
| 9 import '../constants/values.dart'; | 9 import '../constants/values.dart'; |
| 10 import '../common_elements.dart'; | 10 import '../common_elements.dart'; |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 data.setIteratorTypeMask(node, mask); | 193 data.setIteratorTypeMask(node, mask); |
| 194 } else if (selector == Selectors.current) { | 194 } else if (selector == Selectors.current) { |
| 195 data.setCurrentTypeMask(node, mask); | 195 data.setCurrentTypeMask(node, mask); |
| 196 } else { | 196 } else { |
| 197 assert(selector == Selectors.moveNext); | 197 assert(selector == Selectors.moveNext); |
| 198 data.setMoveNextTypeMask(node, mask); | 198 data.setMoveNextTypeMask(node, mask); |
| 199 } | 199 } |
| 200 } | 200 } |
| 201 } | 201 } |
| 202 | 202 |
| 203 bool isNativeElement(Element element) { | 203 bool isNativeMember(Element element) { |
| 204 return compiler.backend.isNative(element); | 204 return element is MemberElement && |
| 205 compiler.backend.nativeData.isNativeMember(element); |
| 205 } | 206 } |
| 206 | 207 |
| 207 bool checkIfExposesThis(Element element) { | 208 bool checkIfExposesThis(Element element) { |
| 208 element = element.implementation; | 209 element = element.implementation; |
| 209 return generativeConstructorsExposingThis.contains(element); | 210 return generativeConstructorsExposingThis.contains(element); |
| 210 } | 211 } |
| 211 | 212 |
| 212 void recordExposesThis(Element element, bool exposesThis) { | 213 void recordExposesThis(Element element, bool exposesThis) { |
| 213 element = element.implementation; | 214 element = element.implementation; |
| 214 if (exposesThis) { | 215 if (exposesThis) { |
| (...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1044 /** | 1045 /** |
| 1045 * Records that the captured variable [local] is read. | 1046 * Records that the captured variable [local] is read. |
| 1046 */ | 1047 */ |
| 1047 void recordCapturedLocalRead(Local local) {} | 1048 void recordCapturedLocalRead(Local local) {} |
| 1048 | 1049 |
| 1049 /** | 1050 /** |
| 1050 * Records that the variable [local] is being updated. | 1051 * Records that the variable [local] is being updated. |
| 1051 */ | 1052 */ |
| 1052 void recordLocalUpdate(Local local, TypeInformation type) {} | 1053 void recordLocalUpdate(Local local, TypeInformation type) {} |
| 1053 } | 1054 } |
| OLD | NEW |