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

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

Issue 2863073003: Access NativeData only through ClosedWorld (Closed)
Patch Set: Created 3 years, 7 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/type_graph_nodes.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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/inferrer/type_graph_nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698