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

Issue 2858463002: js_runtime: Split _asyncHelper into separate functions (Closed)

Created:
3 years, 7 months ago by sra1
Modified:
3 years, 7 months ago
Reviewers:
floitsch
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

js_runtime: Split _asyncHelper into separate functions The separate functions have smaller call-sites and less overhead. _asyncStart uses Future._nullFuture to avoid 1 allocation. BUG= R=floitsch@google.com Committed: https://github.com/dart-lang/sdk/commit/1472eba52d4364cb7bea83035c8f1b165fd843ca

Patch Set 1 #

Patch Set 2 : use _nullFuture #

Patch Set 3 : remove debug comment #

Total comments: 8

Patch Set 4 : comments #

Patch Set 5 : Add new stack frames from _asyncStart #

Patch Set 6 : update test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+193 lines, -146 lines) Patch
M pkg/compiler/lib/src/common_elements.dart View 1 2 3 1 chunk +8 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/js/rewrite_async.dart View 1 2 3 7 chunks +36 lines, -26 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/backend.dart View 1 2 3 1 chunk +8 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/backend_impact.dart View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M sdk/lib/_internal/js_runtime/lib/async_patch.dart View 1 2 3 1 chunk +41 lines, -26 lines 0 comments Download
M tests/compiler/dart2js/async_await_js_transform_test.dart View 1 2 3 4 5 37 chunks +93 lines, -90 lines 0 comments Download
M tests/compiler/dart2js/sourcemaps/stacktrace_test.dart View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (3 generated)
sra1
3 years, 7 months ago (2017-05-02 20:27:04 UTC) #3
floitsch
LGTM. https://codereview.chromium.org/2858463002/diff/40001/pkg/compiler/lib/src/js/rewrite_async.dart File pkg/compiler/lib/src/js/rewrite_async.dart (right): https://codereview.chromium.org/2858463002/diff/40001/pkg/compiler/lib/src/js/rewrite_async.dart#newcode1666 pkg/compiler/lib/src/js/rewrite_async.dart:1666: /// Function called by the async function so ...
3 years, 7 months ago (2017-05-03 10:14:25 UTC) #4
sra1
Thanks for the comments https://codereview.chromium.org/2858463002/diff/40001/pkg/compiler/lib/src/js/rewrite_async.dart File pkg/compiler/lib/src/js/rewrite_async.dart (right): https://codereview.chromium.org/2858463002/diff/40001/pkg/compiler/lib/src/js/rewrite_async.dart#newcode1666 pkg/compiler/lib/src/js/rewrite_async.dart:1666: /// Function called by the ...
3 years, 7 months ago (2017-05-03 17:12:20 UTC) #5
sra1
3 years, 7 months ago (2017-05-03 19:38:47 UTC) #7
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as
1472eba52d4364cb7bea83035c8f1b165fd843ca (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698