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

Issue 2083083007: Fix bug with re-scoping arrow function parameter initializers (Closed)

Created:
4 years, 6 months ago by nickie
Modified:
4 years, 5 months ago
CC:
Dan Ehrenberg, v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Fix bug with re-scoping arrow function parameter initializers When re-scoping arrow function parameter initializers, temporaries should be moved from the closure of the old scope to the closure of the new scope, if necessary. R=adamk@chromium.org, rossberg@chromium.org BUG=chromium:622663 LOG=N Committed: https://crrev.com/61c137c8116a800d179ada40570d62a0b70f1d2d Cr-Commit-Position: refs/heads/master@{#37335}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix test according to reviews #

Total comments: 2

Patch Set 3 : Optimization for closure scopes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -9 lines) Patch
M src/ast/scopes.h View 1 2 1 chunk +5 lines, -1 line 0 comments Download
M src/ast/scopes.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M src/parsing/parameter-initializer-rewriter.cc View 1 2 4 chunks +12 lines, -8 lines 0 comments Download
A test/mjsunit/regress/regress-622663.js View 1 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (12 generated)
nickie
4 years, 6 months ago (2016-06-24 11:42:01 UTC) #1
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2083083007/1
4 years, 6 months ago (2016-06-24 11:44:49 UTC) #3
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-24 12:11:19 UTC) #5
nickie
Dan (cc:), you may want to take a look at this. https://codereview.chromium.org/2083083007/diff/1/src/parsing/parameter-initializer-rewriter.cc File src/parsing/parameter-initializer-rewriter.cc (right): ...
4 years, 6 months ago (2016-06-24 13:39:51 UTC) #6
rmcilroy
https://codereview.chromium.org/2083083007/diff/1/test/mjsunit/regress/regress-622663.js File test/mjsunit/regress/regress-622663.js (right): https://codereview.chromium.org/2083083007/diff/1/test/mjsunit/regress/regress-622663.js#newcode5 test/mjsunit/regress/regress-622663.js:5: +// Flags: --ignition --no-lazy Maybe don't set the --ignition ...
4 years, 6 months ago (2016-06-24 14:34:01 UTC) #8
rmcilroy
4 years, 6 months ago (2016-06-24 14:34:01 UTC) #10
nickie
https://codereview.chromium.org/2083083007/diff/1/test/mjsunit/regress/regress-622663.js File test/mjsunit/regress/regress-622663.js (right): https://codereview.chromium.org/2083083007/diff/1/test/mjsunit/regress/regress-622663.js#newcode5 test/mjsunit/regress/regress-622663.js:5: +// Flags: --ignition --no-lazy On 2016/06/24 14:34:00, rmcilroy wrote: ...
4 years, 6 months ago (2016-06-24 14:36:55 UTC) #11
Dan Ehrenberg
lgtm This patch seems very reasonable. I especially like all the DCHECKs you added. https://codereview.chromium.org/2083083007/diff/1/src/parsing/parameter-initializer-rewriter.cc ...
4 years, 6 months ago (2016-06-24 16:58:44 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2083083007/20001
4 years, 5 months ago (2016-06-27 07:14:16 UTC) #15
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-06-27 07:41:00 UTC) #17
adamk
Looks good, but one further optimization suggestion https://codereview.chromium.org/2083083007/diff/20001/src/parsing/parameter-initializer-rewriter.cc File src/parsing/parameter-initializer-rewriter.cc (right): https://codereview.chromium.org/2083083007/diff/20001/src/parsing/parameter-initializer-rewriter.cc#newcode98 src/parsing/parameter-initializer-rewriter.cc:98: int index ...
4 years, 5 months ago (2016-06-27 18:49:32 UTC) #18
nickie
https://codereview.chromium.org/2083083007/diff/20001/src/parsing/parameter-initializer-rewriter.cc File src/parsing/parameter-initializer-rewriter.cc (right): https://codereview.chromium.org/2083083007/diff/20001/src/parsing/parameter-initializer-rewriter.cc#newcode98 src/parsing/parameter-initializer-rewriter.cc:98: int index = old_scope_->ClosureScope()->RemoveTemporary(var); On 2016/06/27 18:49:31, adamk wrote: ...
4 years, 5 months ago (2016-06-28 09:26:37 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2083083007/40001
4 years, 5 months ago (2016-06-28 09:27:37 UTC) #21
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-06-28 09:54:34 UTC) #23
rmcilroy
Nicki, can we land this before the m53 branch please? This affects Ignition which will ...
4 years, 5 months ago (2016-06-28 14:25:46 UTC) #24
rmcilroy
On 2016/06/28 14:25:46, rmcilroy wrote: > Nicki, can we land this before the m53 branch ...
4 years, 5 months ago (2016-06-28 14:26:38 UTC) #25
adamk
lgtm
4 years, 5 months ago (2016-06-28 15:04:39 UTC) #27
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/2083083007/40001
4 years, 5 months ago (2016-06-28 15:04:51 UTC) #29
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-06-28 15:08:55 UTC) #30
commit-bot: I haz the power
4 years, 5 months ago (2016-06-28 15:10:28 UTC) #32
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/61c137c8116a800d179ada40570d62a0b70f1d2d
Cr-Commit-Position: refs/heads/master@{#37335}

Powered by Google App Engine
This is Rietveld 408576698