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_impact_test; | 5 library dart2js.serialization_impact_test; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'package:async_helper/async_helper.dart'; | 8 import 'package:async_helper/async_helper.dart'; |
9 import 'package:compiler/src/commandline_options.dart'; | 9 import 'package:compiler/src/commandline_options.dart'; |
10 import 'package:compiler/src/common/resolution.dart'; | 10 import 'package:compiler/src/common/resolution.dart'; |
(...skipping 29 matching lines...) Expand all Loading... | |
40 compilerNormal.resolution.retainCachesForTesting = true; | 40 compilerNormal.resolution.retainCachesForTesting = true; |
41 await compilerNormal.run(entryPoint); | 41 await compilerNormal.run(entryPoint); |
42 | 42 |
43 Compiler compilerDeserialized = compilerFor( | 43 Compiler compilerDeserialized = compilerFor( |
44 memorySourceFiles: sourceFiles, | 44 memorySourceFiles: sourceFiles, |
45 options: [Flags.analyzeOnly]); | 45 options: [Flags.analyzeOnly]); |
46 compilerDeserialized.resolution.retainCachesForTesting = true; | 46 compilerDeserialized.resolution.retainCachesForTesting = true; |
47 deserialize(compilerDeserialized, serializedData); | 47 deserialize(compilerDeserialized, serializedData); |
48 await compilerDeserialized.run(entryPoint); | 48 await compilerDeserialized.run(entryPoint); |
49 | 49 |
50 checkAllImpacts(compilerNormal, compilerDeserialized, verbose: true); | |
Johnni Winther
2016/04/08 15:25:40
From https://codereview.chromium.org/1870133002/
| |
50 } | 51 } |
OLD | NEW |