| 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'; | 18 import 'package:compiler/src/kernel/kelements.dart'; |
| 19 import 'package:compiler/src/kernel/element_map_impl.dart'; | 19 import 'package:compiler/src/kernel/element_map_impl.dart'; |
| 20 import 'package:compiler/src/serialization/equivalence.dart'; | 20 import 'package:compiler/src/serialization/equivalence.dart'; |
| 21 import 'package:compiler/src/ssa/kernel_impact.dart'; | 21 import 'package:compiler/src/ssa/kernel_impact.dart'; |
| 22 import 'package:compiler/src/universe/world_impact.dart'; | 22 import 'package:compiler/src/universe/world_impact.dart'; |
| 23 import 'package:compiler/src/util/util.dart'; | 23 import 'package:compiler/src/util/util.dart'; |
| 24 | 24 |
| 25 class KernelEquivalence { | 25 class KernelEquivalence { |
| 26 final WorldDeconstructionForTesting testing; | 26 final WorldDeconstructionForTesting testing; |
| 27 | 27 |
| 28 /// Set of mixin applications assumed to be equivalent. | 28 /// Set of mixin applications assumed to be equivalent. |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 for (ConstructorElement constructor in element.constructors) { | 298 for (ConstructorElement constructor in element.constructors) { |
| 299 if (!constructor.isRedirectingFactory) { | 299 if (!constructor.isRedirectingFactory) { |
| 300 return true; | 300 return true; |
| 301 } | 301 } |
| 302 } | 302 } |
| 303 // The class cannot itself be instantiated. | 303 // The class cannot itself be instantiated. |
| 304 return false; | 304 return false; |
| 305 } | 305 } |
| 306 return true; | 306 return true; |
| 307 } | 307 } |
| OLD | NEW |