| 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 // Tests that the closed world computed from [WorldImpact]s derived from kernel | 5 // Tests that the closed world computed from [WorldImpact]s derived from kernel |
| 6 // is equivalent to the original computed from resolution. | 6 // is equivalent to the original computed from resolution. |
| 7 library dart2js.kernel.closed_world_test; | 7 library dart2js.kernel.closed_world_test; |
| 8 | 8 |
| 9 import 'package:async_helper/async_helper.dart'; | 9 import 'package:async_helper/async_helper.dart'; |
| 10 import 'package:compiler/src/commandline_options.dart'; | 10 import 'package:compiler/src/commandline_options.dart'; |
| 11 import 'package:compiler/src/common.dart'; | 11 import 'package:compiler/src/common.dart'; |
| 12 import 'package:compiler/src/common/resolution.dart'; | 12 import 'package:compiler/src/common/resolution.dart'; |
| 13 import 'package:compiler/src/compiler.dart'; | 13 import 'package:compiler/src/compiler.dart'; |
| 14 import 'package:compiler/src/dart_types.dart'; | 14 import 'package:compiler/src/elements/resolution_types.dart'; |
| 15 import 'package:compiler/src/elements/elements.dart'; | 15 import 'package:compiler/src/elements/elements.dart'; |
| 16 import 'package:compiler/src/enqueue.dart'; | 16 import 'package:compiler/src/enqueue.dart'; |
| 17 import 'package:compiler/src/js_backend/backend.dart'; | 17 import 'package:compiler/src/js_backend/backend.dart'; |
| 18 import 'package:compiler/src/js_backend/type_variable_handler.dart'; | 18 import 'package:compiler/src/js_backend/type_variable_handler.dart'; |
| 19 import 'package:compiler/src/ssa/kernel_impact.dart'; | 19 import 'package:compiler/src/ssa/kernel_impact.dart'; |
| 20 import 'package:compiler/src/serialization/equivalence.dart'; | 20 import 'package:compiler/src/serialization/equivalence.dart'; |
| 21 import 'package:compiler/src/universe/world_builder.dart'; | 21 import 'package:compiler/src/universe/world_builder.dart'; |
| 22 import 'package:compiler/src/universe/world_impact.dart'; | 22 import 'package:compiler/src/universe/world_impact.dart'; |
| 23 import 'package:compiler/src/world.dart'; | 23 import 'package:compiler/src/world.dart'; |
| 24 import 'impact_test.dart'; | 24 import 'impact_test.dart'; |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 } | 132 } |
| 133 // The class cannot itself be instantiated. | 133 // The class cannot itself be instantiated. |
| 134 return false; | 134 return false; |
| 135 } | 135 } |
| 136 return true; | 136 return true; |
| 137 }, verbose: arguments.verbose); | 137 }, verbose: arguments.verbose); |
| 138 checkClosedWorlds(compiler.resolverWorld.closedWorldForTesting, closedWorld, | 138 checkClosedWorlds(compiler.resolverWorld.closedWorldForTesting, closedWorld, |
| 139 verbose: arguments.verbose); | 139 verbose: arguments.verbose); |
| 140 }); | 140 }); |
| 141 } | 141 } |
| OLD | NEW |