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

Issue 1747853002: Fix issue with re-scoping in do expressions (Closed)

Created:
4 years, 9 months ago by nickie
Modified:
4 years, 9 months ago
Reviewers:
rossberg, adamk
CC:
v8-reviews_googlegroups.com, Michael Starzinger, neis
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Fix issue with re-scoping in do expressions R=rossberg@chromium.org BUG=v8:4783 LOG=N Committed: https://crrev.com/de817ef9c7b37e6aa01948c3063723e61af0e756 Cr-Commit-Position: refs/heads/master@{#34382}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M src/parsing/parameter-initializer-rewriter.cc View 1 chunk +1 line, -1 line 2 comments Download
M test/mjsunit/harmony/regress/regress-4658.js View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 18 (8 generated)
nickie
4 years, 9 months ago (2016-02-29 10:47:06 UTC) #1
rossberg
lgtm
4 years, 9 months ago (2016-02-29 11:14:28 UTC) #2
nickie
Adam, would you like to take a quick look at this? There is a related ...
4 years, 9 months ago (2016-02-29 11:43:28 UTC) #5
adamk
lgtm for now, agreed that this is sufficient for the case at hand https://codereview.chromium.org/1747853002/diff/1/src/parsing/parameter-initializer-rewriter.cc File ...
4 years, 9 months ago (2016-02-29 19:20:41 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1747853002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1747853002/1
4 years, 9 months ago (2016-03-01 08:35:05 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/11680)
4 years, 9 months ago (2016-03-01 08:37:56 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1747853002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1747853002/1
4 years, 9 months ago (2016-03-01 08:39:25 UTC) #13
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 9 months ago (2016-03-01 09:03:31 UTC) #15
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/de817ef9c7b37e6aa01948c3063723e61af0e756 Cr-Commit-Position: refs/heads/master@{#34382}
4 years, 9 months ago (2016-03-01 09:04:45 UTC) #17
rossberg
4 years, 9 months ago (2016-03-01 09:44:10 UTC) #18
Message was sent while issue was closed.
https://codereview.chromium.org/1747853002/diff/1/src/parsing/parameter-initi...
File src/parsing/parameter-initializer-rewriter.cc (right):

https://codereview.chromium.org/1747853002/diff/1/src/parsing/parameter-initi...
src/parsing/parameter-initializer-rewriter.cc:65: if (var->mode() != TEMPORARY)
return;
On 2016/02/29 19:20:41, adamk wrote:
> I agree that this seems fine for the ".catch" variable for now (and would also
> be fine for lexical scopes). I still think there's more work to do for
properly
> handling var-declarations in do-expressions, but I don't think that would end
up
> in VisitVariableProxy (they're never eagerly-resolved anyway).

Agreed. Var decls are the only bit missing towards full support for
do-expressions at this point, AFAICT. If I find some time, I may look into that.

Powered by Google App Engine
This is Rietveld 408576698