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

Issue 926553005: Move the try-catch out of the async-function (Closed)

Created:
5 years, 10 months ago by sigurdm
Modified:
5 years, 9 months ago
Reviewers:
floitsch, sra1
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Move the try-catch out of the async-function V8 will not optimize bodies surrounded by try/catch. So it is moved to js_helper. To be applied on top of https://codereview.chromium.org/932053002/ . BUG= R=floitsch@google.com Committed: https://code.google.com/p/dart/source/detail?r=43868

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address review #

Patch Set 3 : Update unit test #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+832 lines, -875 lines) Patch
M pkg/compiler/lib/src/js/rewrite_async.dart View 1 9 chunks +57 lines, -69 lines 8 comments Download
M sdk/lib/_internal/compiler/js_lib/js_helper.dart View 1 4 chunks +40 lines, -5 lines 2 comments Download
M tests/compiler/dart2js/async_await_js_transform_test.dart View 1 2 11 chunks +735 lines, -801 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
sigurdm
5 years, 10 months ago (2015-02-18 11:56:03 UTC) #2
floitsch
LGTM. https://chromiumcodereview.appspot.com/926553005/diff/1/pkg/compiler/lib/src/js/rewrite_async.dart File pkg/compiler/lib/src/js/rewrite_async.dart (right): https://chromiumcodereview.appspot.com/926553005/diff/1/pkg/compiler/lib/src/js/rewrite_async.dart#newcode878 pkg/compiler/lib/src/js/rewrite_async.dart:878: while (true) In a different CL: move the ...
5 years, 10 months ago (2015-02-18 12:42:45 UTC) #3
sigurdm
https://codereview.chromium.org/926553005/diff/1/pkg/compiler/lib/src/js/rewrite_async.dart File pkg/compiler/lib/src/js/rewrite_async.dart (right): https://codereview.chromium.org/926553005/diff/1/pkg/compiler/lib/src/js/rewrite_async.dart#newcode878 pkg/compiler/lib/src/js/rewrite_async.dart:878: while (true) On 2015/02/18 12:42:45, floitsch wrote: > In ...
5 years, 10 months ago (2015-02-19 09:14:03 UTC) #5
sigurdm
Committed patchset #3 (id:40001) manually as 43868 (presubmit successful).
5 years, 10 months ago (2015-02-19 09:21:18 UTC) #6
sra1
DBC. It is good to see smaller code for common cases. Try to use js_ast ...
5 years, 10 months ago (2015-02-19 20:55:02 UTC) #8
sigurdm
Thanks - I address the comments in: https://codereview.chromium.org/946353003 https://codereview.chromium.org/926553005/diff/40001/pkg/compiler/lib/src/js/rewrite_async.dart File pkg/compiler/lib/src/js/rewrite_async.dart (right): https://codereview.chromium.org/926553005/diff/40001/pkg/compiler/lib/src/js/rewrite_async.dart#newcode844 pkg/compiler/lib/src/js/rewrite_async.dart:844: new ...
5 years, 10 months ago (2015-02-23 14:58:37 UTC) #9
sra1
DBC https://codereview.chromium.org/926553005/diff/40001/sdk/lib/_internal/compiler/js_lib/js_helper.dart File sdk/lib/_internal/compiler/js_lib/js_helper.dart (right): https://codereview.chromium.org/926553005/diff/40001/sdk/lib/_internal/compiler/js_lib/js_helper.dart#newcode3790 sdk/lib/_internal/compiler/js_lib/js_helper.dart:3790: runBody() { Make this private, otherwise I can ...
5 years, 9 months ago (2015-02-27 20:34:51 UTC) #10
sigurdm
5 years, 9 months ago (2015-03-02 09:14:47 UTC) #11
Message was sent while issue was closed.
https://codereview.chromium.org/926553005/diff/40001/sdk/lib/_internal/compil...
File sdk/lib/_internal/compiler/js_lib/js_helper.dart (right):

https://codereview.chromium.org/926553005/diff/40001/sdk/lib/_internal/compil...
sdk/lib/_internal/compiler/js_lib/js_helper.dart:3790: runBody() {
On 2015/02/27 20:34:51, sra1 wrote:
> Make this private, otherwise I can call it from user code.
> 
Good point. Thanks

> I also see that dart2js inlined the code into moveNext.
> That does not seem to do any harm, but if you want to prevent that, use
> @NoInline().

Powered by Google App Engine
This is Rietveld 408576698