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

Unified Diff: pkg/compiler/lib/src/common_elements.dart

Issue 2858463002: js_runtime: Split _asyncHelper into separate functions (Closed)
Patch Set: update test Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js/rewrite_async.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/common_elements.dart
diff --git a/pkg/compiler/lib/src/common_elements.dart b/pkg/compiler/lib/src/common_elements.dart
index 2d860b7311a16478387d2315d1d28ee8424dbcaa..3f86e6cd5cf4a13a5848715632d1970f8663eb4f 100644
--- a/pkg/compiler/lib/src/common_elements.dart
+++ b/pkg/compiler/lib/src/common_elements.dart
@@ -507,7 +507,14 @@ class CommonElements {
FunctionEntity _findAsyncHelperFunction(String name) =>
_findLibraryMember(asyncLibrary, name);
- FunctionEntity get asyncHelper => _findAsyncHelperFunction("_asyncHelper");
+ FunctionEntity get asyncHelperStart =>
+ _findAsyncHelperFunction("_asyncStart");
+ FunctionEntity get asyncHelperAwait =>
+ _findAsyncHelperFunction("_asyncAwait");
+ FunctionEntity get asyncHelperReturn =>
+ _findAsyncHelperFunction("_asyncReturn");
+ FunctionEntity get asyncHelperRethrow =>
+ _findAsyncHelperFunction("_asyncRethrow");
FunctionEntity get wrapBody =>
_findAsyncHelperFunction("_wrapJsFunctionForAsync");
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js/rewrite_async.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698