Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(501)

Side by Side Diff: tests/compiler/dart2js/serialization_impact_test.dart

Issue 1873573004: Serialize TreeElements (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698