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

Unified Diff: pkg/kernel/lib/transformations/continuation.dart

Issue 2743283002: [kernel] set dartAsyncMarker to Sync for continuations (Closed)
Patch Set: Created 3 years, 9 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/lib/transformations/continuation.dart
diff --git a/pkg/kernel/lib/transformations/continuation.dart b/pkg/kernel/lib/transformations/continuation.dart
index a8b28205e7d446a47eaba6eb9ee6be33d804d52d..e849a4d19f355f18d2ae738967f2fd61f2b5da88 100644
--- a/pkg/kernel/lib/transformations/continuation.dart
+++ b/pkg/kernel/lib/transformations/continuation.dart
@@ -128,7 +128,8 @@ class SyncStarFunctionRewriter extends ContinuationRewriterBase {
final function = new FunctionNode(buildClosureBody(),
positionalParameters: [iteratorVariable],
requiredParameterCount: 1,
- asyncMarker: AsyncMarker.SyncYielding)
+ asyncMarker: AsyncMarker.SyncYielding,
+ dartAsyncMarker: AsyncMarker.Sync)
Kevin Millikin (Google) 2017/03/13 11:20:35 This is a fresh function that doesn't correspond d
..fileOffset = enclosingFunction.fileOffset
..fileEndOffset = enclosingFunction.fileEndOffset
..returnType = helper.coreTypes.boolClass.rawType;
@@ -226,7 +227,8 @@ abstract class AsyncRewriterBase extends ContinuationRewriterBase {
final function = new FunctionNode(buildWrappedBody(),
positionalParameters: parameters,
requiredParameterCount: 0,
- asyncMarker: AsyncMarker.SyncYielding)
+ asyncMarker: AsyncMarker.SyncYielding,
+ dartAsyncMarker: AsyncMarker.Sync)
..fileOffset = enclosingFunction.fileOffset
..fileEndOffset = enclosingFunction.fileEndOffset;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698