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

Issue 2359513002: Remove synthetic unresolved variables from async/await desugaring (Closed)

Created:
4 years, 3 months ago by Dan Ehrenberg
Modified:
4 years, 3 months ago
Reviewers:
adamk
CC:
v8-reviews_googlegroups.com, Toon Verwaest
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Remove synthetic unresolved variables from async/await desugaring This patch uses temporaries rather than unresolved variables for .promise and .debug_is_active. For .promise, a new field is added to the FunctionState, similarly to .generator_object. This change fixes a bug where .promise was locally shadowable by with, affecting program semantics. BUG=v8:5405 Committed: https://crrev.com/bd078193a0502add9ff904f0e41150293604f954 Cr-Commit-Position: refs/heads/master@{#39566}

Patch Set 1 #

Patch Set 2 : Remove synthetic unresolved variables from async/await desugaring #

Patch Set 3 : Clean up formatting/comments #

Total comments: 2

Patch Set 4 : regress test; nullptr #

Patch Set 5 : Fix bug number #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -54 lines) Patch
M src/ast/ast-value-factory.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M src/parsing/parser.h View 1 2 chunks +2 lines, -3 lines 0 comments Download
M src/parsing/parser.cc View 1 2 10 chunks +39 lines, -43 lines 0 comments Download
M src/parsing/parser-base.h View 1 2 3 4 chunks +17 lines, -5 lines 0 comments Download
M src/parsing/preparser.h View 1 chunk +1 line, -1 line 0 comments Download
A test/mjsunit/regress/regress-5405.js View 1 2 3 4 1 chunk +30 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (14 generated)
Dan Ehrenberg
4 years, 3 months ago (2016-09-20 20:27:52 UTC) #6
adamk
lgtm once this has a regression test https://codereview.chromium.org/2359513002/diff/40001/src/parsing/parser-base.h File src/parsing/parser-base.h (right): https://codereview.chromium.org/2359513002/diff/40001/src/parsing/parser-base.h#newcode1444 src/parsing/parser-base.h:1444: promise_variable_(NULL), Nit: ...
4 years, 3 months ago (2016-09-20 20:42:04 UTC) #7
Dan Ehrenberg
Added a regression test https://codereview.chromium.org/2359513002/diff/40001/src/parsing/parser-base.h File src/parsing/parser-base.h (right): https://codereview.chromium.org/2359513002/diff/40001/src/parsing/parser-base.h#newcode1444 src/parsing/parser-base.h:1444: promise_variable_(NULL), On 2016/09/20 at 20:42:04, ...
4 years, 3 months ago (2016-09-20 21:00:36 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2359513002/60001
4 years, 3 months ago (2016-09-20 21:01:45 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2359513002/80001
4 years, 3 months ago (2016-09-20 21:04:46 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 3 months ago (2016-09-20 21:30:52 UTC) #19
commit-bot: I haz the power
4 years, 3 months ago (2016-09-20 21:31:37 UTC) #21
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/bd078193a0502add9ff904f0e41150293604f954
Cr-Commit-Position: refs/heads/master@{#39566}

Powered by Google App Engine
This is Rietveld 408576698