| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |