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

Unified Diff: pkg/compiler/lib/src/ssa/builder.dart

Issue 1163833002: Dart2js async-await. Bind the async-body to the current zone. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 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 | « pkg/compiler/lib/src/js_backend/backend.dart ('k') | sdk/lib/_internal/compiler/js_lib/js_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/ssa/builder.dart
diff --git a/pkg/compiler/lib/src/ssa/builder.dart b/pkg/compiler/lib/src/ssa/builder.dart
index 310a5c756a54ab2f6ad9fe1005493af4c775a59b..328e8df8ed0c35529dbf23d37930456a7581361c 100644
--- a/pkg/compiler/lib/src/ssa/builder.dart
+++ b/pkg/compiler/lib/src/ssa/builder.dart
@@ -33,6 +33,8 @@ class SsaFunctionCompiler implements FunctionCompiler {
backend.compiler.currentElement,
asyncHelper:
backend.emitter.staticFunctionAccess(backend.getAsyncHelper()),
+ wrapBody:
+ backend.emitter.staticFunctionAccess(backend.getWrapBody()),
newCompleter: backend.emitter.staticFunctionAccess(
backend.getCompleterConstructor()),
safeVariableName: backend.namer.safeVariableName,
@@ -60,6 +62,8 @@ class SsaFunctionCompiler implements FunctionCompiler {
backend.getAsyncStarHelper()),
streamOfController: backend.emitter.staticFunctionAccess(
backend.getStreamOfController()),
+ wrapBody:
+ backend.emitter.staticFunctionAccess(backend.getWrapBody()),
newController: backend.emitter.staticFunctionAccess(
backend.getASyncStarControllerConstructor()),
safeVariableName: backend.namer.safeVariableName,
« no previous file with comments | « pkg/compiler/lib/src/js_backend/backend.dart ('k') | sdk/lib/_internal/compiler/js_lib/js_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698