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

Unified Diff: tests/compiler/dart2js/serialization/helper.dart

Issue 2240823002: Deserialize ResolvedAsts and ResolutionImpacts only when needed for compilation. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: tests/compiler/dart2js/serialization/helper.dart
diff --git a/tests/compiler/dart2js/serialization/helper.dart b/tests/compiler/dart2js/serialization/helper.dart
index 44d3786018e744b67114746c2344f832be8a1bf6..0c986a1e607f16e28f2f4f53cb7980dc438031eb 100644
--- a/tests/compiler/dart2js/serialization/helper.dart
+++ b/tests/compiler/dart2js/serialization/helper.dart
@@ -149,7 +149,8 @@ class SerializationResult {
Future<SerializationResult> serialize(Uri entryPoint,
{Map<String, String> memorySourceFiles: const <String, String>{},
List<Uri> resolutionInputs: const <Uri>[],
- Uri dataUri}) async {
+ Uri dataUri,
+ bool deserializeCompilationDataForTesting: false}) async {
if (dataUri == null) {
dataUri = Uri.parse('memory:${DEFAULT_DATA_FILE_NAME}');
}
@@ -159,6 +160,8 @@ Future<SerializationResult> serialize(Uri entryPoint,
memorySourceFiles: memorySourceFiles,
resolutionInputs: resolutionInputs,
outputProvider: outputCollector);
+ compiler.serialization.deserializeCompilationDataForTesting =
+ deserializeCompilationDataForTesting;
await compiler.run(entryPoint);
SerializedData serializedData = new SerializedData(
dataUri, outputCollector.getOutput('', 'data'));
« no previous file with comments | « pkg/compiler/lib/src/universe/call_structure.dart ('k') | tests/compiler/dart2js/serialization/reserialization_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698