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

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

Issue 1281523003: dart2js: Don't zone-register callbacks in async functions for every await. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Use origin instead of declaration. (already has the right type). Created 5 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
« no previous file with comments | « sdk/lib/async/future_impl.dart ('k') | tests/compiler/dart2js/mock_libraries.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/mock_compiler.dart
diff --git a/tests/compiler/dart2js/mock_compiler.dart b/tests/compiler/dart2js/mock_compiler.dart
index 95909bec63dc737af78f8d9c53de0b8328630ae7..75eef6c6ddab657d3dbe2d7e5b7a30792fc7cf36 100644
--- a/tests/compiler/dart2js/mock_compiler.dart
+++ b/tests/compiler/dart2js/mock_compiler.dart
@@ -117,8 +117,14 @@ class MockCompiler extends Compiler {
buildLibrarySource(DEFAULT_ISOLATE_HELPER_LIBRARY));
registerSource(Compiler.DART_MIRRORS,
buildLibrarySource(DEFAULT_MIRRORS_LIBRARY));
+
+ Map<String, String> asyncLibrarySource = <String, String>{};
+ asyncLibrarySource.addAll(DEFAULT_ASYNC_LIBRARY);
+ if (enableAsyncAwait) {
+ asyncLibrarySource.addAll(ASYNC_AWAIT_LIBRARY);
+ }
registerSource(Compiler.DART_ASYNC,
- buildLibrarySource(DEFAULT_ASYNC_LIBRARY));
+ buildLibrarySource(asyncLibrarySource));
}
String get patchVersion {
« no previous file with comments | « sdk/lib/async/future_impl.dart ('k') | tests/compiler/dart2js/mock_libraries.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698