Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: pkg/compiler/lib/src/inferrer/inferrer_engine.dart

Issue 2966053002: Use MemberEntity more in type_graph_nodes (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | pkg/compiler/lib/src/inferrer/node_tracer.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/inferrer/node_tracer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698