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

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

Issue 2835323004: Handle @NoInline annotations in closed_world2_test (Closed)
Patch Set: Updated cf. comments 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
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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 } 219 }
220 220
221 void recordExposesThis(Element element, bool exposesThis) { 221 void recordExposesThis(Element element, bool exposesThis) {
222 element = element.implementation; 222 element = element.implementation;
223 if (exposesThis) { 223 if (exposesThis) {
224 generativeConstructorsExposingThis.add(element); 224 generativeConstructorsExposingThis.add(element);
225 } 225 }
226 } 226 }
227 227
228 JavaScriptBackend get backend => compiler.backend; 228 JavaScriptBackend get backend => compiler.backend;
229 Annotations get annotations => backend.annotations; 229 OptimizerHintsForTests get annotations => backend.annotations;
230 DiagnosticReporter get reporter => compiler.reporter; 230 DiagnosticReporter get reporter => compiler.reporter;
231 CommonMasks get commonMasks => closedWorld.commonMasks; 231 CommonMasks get commonMasks => closedWorld.commonMasks;
232 232
233 /** 233 /**
234 * A set of selector names that [List] implements, that we know return 234 * A set of selector names that [List] implements, that we know return
235 * their element type. 235 * their element type.
236 */ 236 */
237 final Set<Selector> returnsListElementTypeSet = 237 final Set<Selector> returnsListElementTypeSet =
238 new Set<Selector>.from(<Selector>[ 238 new Set<Selector>.from(<Selector>[
239 new Selector.getter(const PublicName('first')), 239 new Selector.getter(const PublicName('first')),
(...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after
1075 /** 1075 /**
1076 * Records that the captured variable [local] is read. 1076 * Records that the captured variable [local] is read.
1077 */ 1077 */
1078 void recordCapturedLocalRead(Local local) {} 1078 void recordCapturedLocalRead(Local local) {}
1079 1079
1080 /** 1080 /**
1081 * Records that the variable [local] is being updated. 1081 * Records that the variable [local] is being updated.
1082 */ 1082 */
1083 void recordLocalUpdate(Local local, TypeInformation type) {} 1083 void recordLocalUpdate(Local local, TypeInformation type) {}
1084 } 1084 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/common_elements.dart ('k') | pkg/compiler/lib/src/js_backend/annotations.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698