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

Issue 1070733002: Dart2js async* functions only resume execution of the body when suspended on yield. (Closed)

Created:
5 years, 8 months ago by sigurdm
Modified:
5 years, 8 months ago
CC:
reviews_dartlang.org, hausner
Target Ref:
refs/remotes/git-svn
Visibility:
Public.

Description

Dart2js async* functions only resume execution of the body when suspended on yield. Before they would also resume if suspended on await, leading to resuming on unfinished futures. BUG= dartbug.com/23129 R=floitsch@google.com, lrn@google.com Committed: https://code.google.com/p/dart/source/detail?r=45056

Patch Set 1 #

Total comments: 21

Patch Set 2 : Address review comments #

Patch Set 3 : Second upload #

Patch Set 4 : Rewrite addressing points from Lasse #

Total comments: 16

Patch Set 5 : Address review comments #

Total comments: 4

Patch Set 6 : Address review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -44 lines) Patch
M sdk/lib/_internal/compiler/js_lib/js_helper.dart View 1 2 3 4 5 6 chunks +88 lines, -44 lines 0 comments Download
A tests/language/async_star_regression_23116_test.dart View 1 2 1 chunk +33 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (1 generated)
sigurdm
5 years, 8 months ago (2015-04-08 13:35:03 UTC) #2
floitsch
LGTM. https://codereview.chromium.org/1070733002/diff/1/sdk/lib/_internal/compiler/js_lib/js_helper.dart File sdk/lib/_internal/compiler/js_lib/js_helper.dart (right): https://codereview.chromium.org/1070733002/diff/1/sdk/lib/_internal/compiler/js_lib/js_helper.dart#newcode3801 sdk/lib/_internal/compiler/js_lib/js_helper.dart:3801: bool isWaitingForYield = false; isAtYield ? Add comment ...
5 years, 8 months ago (2015-04-08 14:01:26 UTC) #3
sigurdm
https://codereview.chromium.org/1070733002/diff/1/sdk/lib/_internal/compiler/js_lib/js_helper.dart File sdk/lib/_internal/compiler/js_lib/js_helper.dart (right): https://codereview.chromium.org/1070733002/diff/1/sdk/lib/_internal/compiler/js_lib/js_helper.dart#newcode3801 sdk/lib/_internal/compiler/js_lib/js_helper.dart:3801: bool isWaitingForYield = false; On 2015/04/08 14:01:25, floitsch wrote: ...
5 years, 8 months ago (2015-04-08 14:07:40 UTC) #4
Lasse Reichstein Nielsen
https://codereview.chromium.org/1070733002/diff/1/sdk/lib/_internal/compiler/js_lib/js_helper.dart File sdk/lib/_internal/compiler/js_lib/js_helper.dart (right): https://codereview.chromium.org/1070733002/diff/1/sdk/lib/_internal/compiler/js_lib/js_helper.dart#newcode3750 sdk/lib/_internal/compiler/js_lib/js_helper.dart:3750: // TODO(sigurdm): We should not suspend here according to ...
5 years, 8 months ago (2015-04-08 14:12:15 UTC) #5
sigurdm
I did some simplifying changes. PTAL https://codereview.chromium.org/1070733002/diff/1/sdk/lib/_internal/compiler/js_lib/js_helper.dart File sdk/lib/_internal/compiler/js_lib/js_helper.dart (right): https://codereview.chromium.org/1070733002/diff/1/sdk/lib/_internal/compiler/js_lib/js_helper.dart#newcode3750 sdk/lib/_internal/compiler/js_lib/js_helper.dart:3750: // TODO(sigurdm): We ...
5 years, 8 months ago (2015-04-09 11:24:08 UTC) #6
Lasse Reichstein Nielsen
https://codereview.chromium.org/1070733002/diff/60001/sdk/lib/_internal/compiler/js_lib/js_helper.dart File sdk/lib/_internal/compiler/js_lib/js_helper.dart (right): https://codereview.chromium.org/1070733002/diff/60001/sdk/lib/_internal/compiler/js_lib/js_helper.dart#newcode3738 sdk/lib/_internal/compiler/js_lib/js_helper.dart:3738: if (controller.cancelationCompleter != null) { if (controller.isCanceled) { ? ...
5 years, 8 months ago (2015-04-09 12:22:09 UTC) #7
sigurdm
https://codereview.chromium.org/1070733002/diff/60001/sdk/lib/_internal/compiler/js_lib/js_helper.dart File sdk/lib/_internal/compiler/js_lib/js_helper.dart (right): https://codereview.chromium.org/1070733002/diff/60001/sdk/lib/_internal/compiler/js_lib/js_helper.dart#newcode3738 sdk/lib/_internal/compiler/js_lib/js_helper.dart:3738: if (controller.cancelationCompleter != null) { On 2015/04/09 12:22:09, Lasse ...
5 years, 8 months ago (2015-04-10 08:13:25 UTC) #8
sigurdm
Lasse - is this one good to go?
5 years, 8 months ago (2015-04-10 08:15:31 UTC) #9
Lasse Reichstein Nielsen
lgtm https://codereview.chromium.org/1070733002/diff/80001/sdk/lib/_internal/compiler/js_lib/js_helper.dart File sdk/lib/_internal/compiler/js_lib/js_helper.dart (right): https://codereview.chromium.org/1070733002/diff/80001/sdk/lib/_internal/compiler/js_lib/js_helper.dart#newcode3768 sdk/lib/_internal/compiler/js_lib/js_helper.dart:3768: // one. Should you check for being cancelled? ...
5 years, 8 months ago (2015-04-10 08:22:56 UTC) #10
sigurdm
https://codereview.chromium.org/1070733002/diff/80001/sdk/lib/_internal/compiler/js_lib/js_helper.dart File sdk/lib/_internal/compiler/js_lib/js_helper.dart (right): https://codereview.chromium.org/1070733002/diff/80001/sdk/lib/_internal/compiler/js_lib/js_helper.dart#newcode3768 sdk/lib/_internal/compiler/js_lib/js_helper.dart:3768: // one. On 2015/04/10 08:22:55, Lasse Reichstein Nielsen wrote: ...
5 years, 8 months ago (2015-04-10 08:58:19 UTC) #11
sigurdm
5 years, 8 months ago (2015-04-10 08:58:41 UTC) #12
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as 45056 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698