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

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

Issue 2088233003: Serialize erroneous element and more (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 4 years, 6 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 e70b2ac106ef7ceafd85b25a5054577455b4e2d5..e5fab486dbe477004c5b2b49bc99dddef7167b70 100644
--- a/tests/compiler/dart2js/serialization/helper.dart
+++ b/tests/compiler/dart2js/serialization/helper.dart
@@ -128,7 +128,7 @@ Future<SerializedData> serializeDartCore(
serializedData = new SerializedData(uri, file.readAsStringSync());
}
} else {
- SerializationResult result = await serialize(Uris.dart_core, uri);
+ SerializationResult result = await serialize(Uris.dart_core, dataUri: uri);
serializedData = result.serializedData;
}
if (arguments.saveSerializedData) {
@@ -146,11 +146,17 @@ class SerializationResult {
SerializationResult(this.compiler, this.serializedData);
}
-Future<SerializationResult> serialize(Uri entryPoint, [Uri dataUri]) async {
+Future<SerializationResult> serialize(Uri entryPoint,
+ {Map<String, String> memorySourceFiles: const <String, String>{},
+ List<Uri> resolutionInputs: const <Uri>[],
+ Uri dataUri}) async {
if (dataUri == null) {
dataUri = Uri.parse('memory:${DEFAULT_DATA_FILE_NAME}');
}
- Compiler compiler = compilerFor(options: [Flags.analyzeAll]);
+ Compiler compiler = compilerFor(
+ options: [Flags.analyzeAll],
+ memorySourceFiles: memorySourceFiles,
+ resolutionInputs: resolutionInputs);
compiler.serialization.supportSerialization = true;
await compiler.run(entryPoint);
BufferedEventSink sink = new BufferedEventSink();
« no previous file with comments | « pkg/compiler/lib/src/serialization/system.dart ('k') | tests/compiler/dart2js/serialization/reserialization_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698