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

Unified Diff: tests/compiler/dart2js/memory_compiler.dart

Issue 350693007: Load patches via callback. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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/memory_compiler.dart
diff --git a/tests/compiler/dart2js/memory_compiler.dart b/tests/compiler/dart2js/memory_compiler.dart
index e495f92222e8f27f3cf430c759c6085b44bc1a45..07fc7798fb48af31a7783243fa3070147ae93af0 100644
--- a/tests/compiler/dart2js/memory_compiler.dart
+++ b/tests/compiler/dart2js/memory_compiler.dart
@@ -171,7 +171,16 @@ Compiler compilerFor(Map<String,String> memorySourceFiles,
if (library.isPlatformLibrary) {
compiler.onLibraryCreated(library);
compiler.libraries[uri] = library;
- compiler.onLibraryScanned(library);
+ // TODO(johnniwinther): Assert that no libraries are created lazily from
+ // this call.
+ compiler.onLibraryScanned(library, null);
+ if (library.isPatched) {
+ var patchLibrary = library.patch;
+ compiler.onLibraryCreated(patchLibrary);
+ // TODO(johnniwinther): Assert that no libraries are created lazily
+ // from this call.
+ compiler.onLibraryScanned(patchLibrary, null);
+ }
copiedLibraries[library.canonicalUri] = library;
}
});

Powered by Google App Engine
This is Rietveld 408576698