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

Side by Side Diff: tests/compiler/dart2js/kernel/test_helpers.dart

Issue 3004433002: Encapsulate the index based maps for entities. (Closed)
Patch Set: Updated cf. comments Created 3 years, 3 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 | « pkg/compiler/lib/src/kernel/kelements.dart ('k') | no next file » | 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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 library dart2js.kernel.equivalence; 5 library dart2js.kernel.equivalence;
6 6
7 import 'package:compiler/src/common/backend_api.dart'; 7 import 'package:compiler/src/common/backend_api.dart';
8 import 'package:compiler/src/common/resolution.dart'; 8 import 'package:compiler/src/common/resolution.dart';
9 import 'package:compiler/src/common/work.dart'; 9 import 'package:compiler/src/common/work.dart';
10 import 'package:compiler/src/constants/expressions.dart'; 10 import 'package:compiler/src/constants/expressions.dart';
11 import 'package:compiler/src/constants/values.dart'; 11 import 'package:compiler/src/constants/values.dart';
12 import 'package:compiler/src/compiler.dart'; 12 import 'package:compiler/src/compiler.dart';
13 import 'package:compiler/src/elements/elements.dart'; 13 import 'package:compiler/src/elements/elements.dart';
14 import 'package:compiler/src/elements/entities.dart'; 14 import 'package:compiler/src/elements/entities.dart';
15 import 'package:compiler/src/elements/resolution_types.dart'; 15 import 'package:compiler/src/elements/resolution_types.dart';
16 import 'package:compiler/src/elements/types.dart'; 16 import 'package:compiler/src/elements/types.dart';
17 import 'package:compiler/src/enqueue.dart'; 17 import 'package:compiler/src/enqueue.dart';
18 import 'package:compiler/src/kernel/elements.dart';
19 import 'package:compiler/src/kernel/kelements.dart' show KLocalFunction;
20 import 'package:compiler/src/kernel/element_map.dart'; 18 import 'package:compiler/src/kernel/element_map.dart';
21 import 'package:compiler/src/kernel/element_map_impl.dart'; 19 import 'package:compiler/src/kernel/element_map_impl.dart';
20 import 'package:compiler/src/kernel/indexed.dart';
21 import 'package:compiler/src/kernel/kelements.dart' show KLocalFunction;
22 import 'package:compiler/src/serialization/equivalence.dart'; 22 import 'package:compiler/src/serialization/equivalence.dart';
23 import 'package:compiler/src/ssa/kernel_impact.dart'; 23 import 'package:compiler/src/ssa/kernel_impact.dart';
24 import 'package:compiler/src/universe/world_impact.dart'; 24 import 'package:compiler/src/universe/world_impact.dart';
25 import 'package:compiler/src/util/util.dart'; 25 import 'package:compiler/src/util/util.dart';
26 26
27 class KernelEquivalence { 27 class KernelEquivalence {
28 final WorldDeconstructionForTesting testing; 28 final WorldDeconstructionForTesting testing;
29 29
30 /// Set of mixin applications assumed to be equivalent. 30 /// Set of mixin applications assumed to be equivalent.
31 /// 31 ///
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 for (ConstructorElement constructor in element.constructors) { 307 for (ConstructorElement constructor in element.constructors) {
308 if (!constructor.isRedirectingFactory) { 308 if (!constructor.isRedirectingFactory) {
309 return true; 309 return true;
310 } 310 }
311 } 311 }
312 // The class cannot itself be instantiated. 312 // The class cannot itself be instantiated.
313 return false; 313 return false;
314 } 314 }
315 return true; 315 return true;
316 } 316 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/kernel/kelements.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698