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

Side by Side Diff: pkg/compiler/lib/src/js_backend/backend_usage.dart

Issue 2721403006: Split NativeData (Closed)
Patch Set: Updated cf. comments. Created 3 years, 9 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 '../common.dart'; 5 import '../common.dart';
6 import '../common/resolution.dart' show Resolution;
7 import '../common_elements.dart'; 6 import '../common_elements.dart';
8 import '../elements/elements.dart'; 7 import '../elements/elements.dart';
9 import '../elements/entities.dart';
10 import '../elements/resolution_types.dart'; 8 import '../elements/resolution_types.dart';
11 import '../universe/selector.dart';
12 import '../universe/use.dart';
13 import '../universe/world_impact.dart'
14 show WorldImpact, WorldImpactBuilder, WorldImpactBuilderImpl;
15 import '../util/util.dart' show Setlet; 9 import '../util/util.dart' show Setlet;
16 import 'backend_helpers.dart'; 10 import 'backend_helpers.dart';
17 import 'backend_impact.dart'; 11 import 'backend_impact.dart';
18 12
19 abstract class BackendUsage { 13 abstract class BackendUsage {
20 bool get needToInitializeIsolateAffinityTag; 14 bool get needToInitializeIsolateAffinityTag;
21 bool get needToInitializeDispatchProperty; 15 bool get needToInitializeDispatchProperty;
22 16
23 /// Returns `true` if [element] is the parameter of a function called by the 17 /// Returns `true` if [element] is the parameter of a function called by the
24 /// backend. 18 /// backend.
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 return _helperFunctionsUsed.contains(element.functionDeclaration); 313 return _helperFunctionsUsed.contains(element.functionDeclaration);
320 } 314 }
321 315
322 @override 316 @override
323 bool isFieldUsedByBackend(FieldElement element) { 317 bool isFieldUsedByBackend(FieldElement element) {
324 return _helperClassesUsed.contains(element.enclosingClass); 318 return _helperClassesUsed.contains(element.enclosingClass);
325 } 319 }
326 320
327 Iterable<Element> get globalDependencies => _globalDependencies; 321 Iterable<Element> get globalDependencies => _globalDependencies;
328 } 322 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698