| 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 1026 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1037 types.allocatedClosures.forEach(cleanup); | 1037 types.allocatedClosures.forEach(cleanup); |
| 1038 types.allocatedClosures.clear(); | 1038 types.allocatedClosures.clear(); |
| 1039 | 1039 |
| 1040 analyzedElements.clear(); | 1040 analyzedElements.clear(); |
| 1041 generativeConstructorsExposingThis.clear(); | 1041 generativeConstructorsExposingThis.clear(); |
| 1042 | 1042 |
| 1043 types.allocatedMaps.values.forEach(cleanup); | 1043 types.allocatedMaps.values.forEach(cleanup); |
| 1044 types.allocatedLists.values.forEach(cleanup); | 1044 types.allocatedLists.values.forEach(cleanup); |
| 1045 } | 1045 } |
| 1046 | 1046 |
| 1047 Iterable<Element> getCallersOf(MemberElement element) { | 1047 Iterable<MemberEntity> getCallersOf(MemberElement element) { |
| 1048 if (compiler.disableTypeInference) { | 1048 if (compiler.disableTypeInference) { |
| 1049 throw new UnsupportedError( | 1049 throw new UnsupportedError( |
| 1050 "Cannot query the type inferrer when type inference is disabled."); | 1050 "Cannot query the type inferrer when type inference is disabled."); |
| 1051 } | 1051 } |
| 1052 MemberTypeInformation info = types.getInferredTypeOfMember(element); | 1052 MemberTypeInformation info = types.getInferredTypeOfMember(element); |
| 1053 return info.callers; | 1053 return info.callers; |
| 1054 } | 1054 } |
| 1055 | 1055 |
| 1056 /** | 1056 /** |
| 1057 * Returns the type of [element] when being called with [selector]. | 1057 * Returns the type of [element] when being called with [selector]. |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1096 /** | 1096 /** |
| 1097 * Records that the captured variable [local] is read. | 1097 * Records that the captured variable [local] is read. |
| 1098 */ | 1098 */ |
| 1099 void recordCapturedLocalRead(Local local) {} | 1099 void recordCapturedLocalRead(Local local) {} |
| 1100 | 1100 |
| 1101 /** | 1101 /** |
| 1102 * Records that the variable [local] is being updated. | 1102 * Records that the variable [local] is being updated. |
| 1103 */ | 1103 */ |
| 1104 void recordLocalUpdate(Local local, TypeInformation type) {} | 1104 void recordLocalUpdate(Local local, TypeInformation type) {} |
| 1105 } | 1105 } |
| OLD | NEW |