| 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.serialization_library_test; | 5 library dart2js.serialization_library_test; |
| 6 | 6 |
| 7 import 'dart:io'; | 7 import 'dart:io'; |
| 8 import '../memory_compiler.dart'; | 8 import '../memory_compiler.dart'; |
| 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/names.dart'; | 11 import 'package:compiler/src/common/names.dart'; |
| 12 import 'package:compiler/src/constants/constructors.dart'; | |
| 13 import 'package:compiler/src/constants/expressions.dart'; | |
| 14 import 'package:compiler/src/dart_types.dart'; | |
| 15 import 'package:compiler/src/compiler.dart'; | 12 import 'package:compiler/src/compiler.dart'; |
| 16 import 'package:compiler/src/diagnostics/invariant.dart'; | 13 import 'package:compiler/src/diagnostics/invariant.dart'; |
| 17 import 'package:compiler/src/elements/elements.dart'; | 14 import 'package:compiler/src/elements/elements.dart'; |
| 18 import 'package:compiler/src/elements/visitor.dart'; | |
| 19 import 'package:compiler/src/ordered_typeset.dart'; | |
| 20 import 'package:compiler/src/serialization/element_serialization.dart'; | |
| 21 import 'package:compiler/src/serialization/json_serializer.dart'; | 15 import 'package:compiler/src/serialization/json_serializer.dart'; |
| 22 import 'package:compiler/src/serialization/serialization.dart'; | 16 import 'package:compiler/src/serialization/serialization.dart'; |
| 23 | 17 |
| 24 import 'equivalence_test.dart'; | 18 import 'equivalence_test.dart'; |
| 25 | 19 |
| 26 main(List<String> arguments) { | 20 main(List<String> arguments) { |
| 27 // Ensure that we can print out constant expressions. | 21 // Ensure that we can print out constant expressions. |
| 28 DEBUG_MODE = true; | 22 DEBUG_MODE = true; |
| 29 | 23 |
| 30 Uri entryPoint; | 24 Uri entryPoint; |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 for (LibraryElement library1 in libraries1) { | 115 for (LibraryElement library1 in libraries1) { |
| 122 LibraryElement library2 = | 116 LibraryElement library2 = |
| 123 deserializationContext.lookupLibrary(library1.canonicalUri); | 117 deserializationContext.lookupLibrary(library1.canonicalUri); |
| 124 if (library2 == null) { | 118 if (library2 == null) { |
| 125 throw new ArgumentError('No library ${library1.canonicalUri} found.'); | 119 throw new ArgumentError('No library ${library1.canonicalUri} found.'); |
| 126 } | 120 } |
| 127 checkLibraryContent('library1', 'library2', 'library', library1, library2); | 121 checkLibraryContent('library1', 'library2', 'library', library1, library2); |
| 128 libraries2.add(library2); | 122 libraries2.add(library2); |
| 129 } | 123 } |
| 130 } | 124 } |
| OLD | NEW |