| 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 'package:kernel/ast.dart' as ir; | 5 import 'package:kernel/ast.dart' as ir; |
| 6 | 6 |
| 7 import '../common.dart'; | 7 import '../common.dart'; |
| 8 import '../common/names.dart'; | 8 import '../common/names.dart'; |
| 9 import '../compiler.dart'; | 9 import '../compiler.dart'; |
| 10 import '../constants/expressions.dart'; | 10 import '../constants/expressions.dart'; |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 data.setCurrentTypeMask(node, mask); | 213 data.setCurrentTypeMask(node, mask); |
| 214 } else { | 214 } else { |
| 215 assert(selector == Selectors.moveNext); | 215 assert(selector == Selectors.moveNext); |
| 216 data.setMoveNextTypeMask(node, mask); | 216 data.setMoveNextTypeMask(node, mask); |
| 217 } | 217 } |
| 218 } | 218 } |
| 219 } | 219 } |
| 220 | 220 |
| 221 bool isNativeMember(Element element) { | 221 bool isNativeMember(Element element) { |
| 222 return element is MemberElement && | 222 return element is MemberElement && |
| 223 compiler.backend.nativeData.isNativeMember(element); | 223 closedWorld.nativeData.isNativeMember(element); |
| 224 } | 224 } |
| 225 | 225 |
| 226 bool checkIfExposesThis(Element element) { | 226 bool checkIfExposesThis(Element element) { |
| 227 element = element.implementation; | 227 element = element.implementation; |
| 228 return generativeConstructorsExposingThis.contains(element); | 228 return generativeConstructorsExposingThis.contains(element); |
| 229 } | 229 } |
| 230 | 230 |
| 231 void recordExposesThis(Element element, bool exposesThis) { | 231 void recordExposesThis(Element element, bool exposesThis) { |
| 232 element = element.implementation; | 232 element = element.implementation; |
| 233 if (exposesThis) { | 233 if (exposesThis) { |
| (...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1083 /** | 1083 /** |
| 1084 * Records that the captured variable [local] is read. | 1084 * Records that the captured variable [local] is read. |
| 1085 */ | 1085 */ |
| 1086 void recordCapturedLocalRead(Local local) {} | 1086 void recordCapturedLocalRead(Local local) {} |
| 1087 | 1087 |
| 1088 /** | 1088 /** |
| 1089 * Records that the variable [local] is being updated. | 1089 * Records that the variable [local] is being updated. |
| 1090 */ | 1090 */ |
| 1091 void recordLocalUpdate(Local local, TypeInformation type) {} | 1091 void recordLocalUpdate(Local local, TypeInformation type) {} |
| 1092 } | 1092 } |
| OLD | NEW |