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

Issue 1740293002: Remove duplicated ForOfStatement init code code from RewriteSpreads (Closed)

Created:
4 years, 9 months ago by adamk
Modified:
4 years, 9 months ago
CC:
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

Remove duplicated ForOfStatement init code code from RewriteSpreads Simply call InitializeForOfStatement (split out from InitializeForEachStatement) instead, which already has all the necessary logic. As part of this, trade one bool arg (is_destructuring) for an int (iterable_pos). Committed: https://crrev.com/a8dc2c47812b333e294824ce7834fdcfbbf1c99c Cr-Commit-Position: refs/heads/master@{#34561}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebased #

Patch Set 3 : Split out InitializeForOfStatement, pass a boolean arg #

Patch Set 4 : Rebased #

Total comments: 4

Patch Set 5 : Change arg to a position #

Patch Set 6 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -115 lines) Patch
M src/parsing/parser.h View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M src/parsing/parser.cc View 1 2 3 4 5 6 chunks +76 lines, -113 lines 0 comments Download

Messages

Total messages: 28 (10 generated)
adamk
I couldn't find a reason why this wouldn't work, please let me know if I'm ...
4 years, 9 months ago (2016-02-27 00:15:33 UTC) #3
adamk
Fixed nikolaos' email...
4 years, 9 months ago (2016-02-27 00:16:28 UTC) #5
nickie
https://codereview.chromium.org/1740293002/diff/1/src/parsing/parser.cc File src/parsing/parser.cc (left): https://codereview.chromium.org/1740293002/diff/1/src/parsing/parser.cc#oldcode5677 src/parsing/parser.cc:5677: GetIterator(subject, factory(), spread->expression_position()), The only reason I can see ...
4 years, 9 months ago (2016-02-29 08:43:38 UTC) #6
nickie
On 2016/02/29 08:43:38, nickie wrote: > The only reason I can see that this may ...
4 years, 9 months ago (2016-02-29 09:08:32 UTC) #7
nickie
On 2016/02/29 09:08:32, nickie wrote: > If we cannot live with this, I suggest adding ...
4 years, 9 months ago (2016-03-01 16:27:48 UTC) #8
adamk
On 2016/03/01 16:27:48, nickie wrote: > On 2016/02/29 09:08:32, nickie wrote: > > If we ...
4 years, 9 months ago (2016-03-01 18:50:28 UTC) #9
adamk
On 2016/03/01 18:50:28, adamk wrote: > On 2016/03/01 16:27:48, nickie wrote: > > On 2016/02/29 ...
4 years, 9 months ago (2016-03-01 20:14:06 UTC) #10
nickie
On 2016/03/01 20:14:06, adamk wrote: > Hmm, I'm not actually sure what the "right" fix ...
4 years, 9 months ago (2016-03-02 08:49:18 UTC) #11
adamk
On 2016/03/02 08:49:18, nickie wrote: > On 2016/03/01 20:14:06, adamk wrote: > > Hmm, I'm ...
4 years, 9 months ago (2016-03-02 22:14:22 UTC) #12
adamk
+verwaest, who wrote this position "hack" in the first place. Toon, do you have any ...
4 years, 9 months ago (2016-03-03 01:38:25 UTC) #14
adamk
Okay, this now avoids changing any existing behavior, PTAL.
4 years, 9 months ago (2016-03-03 22:39:03 UTC) #16
nickie
On 2016/03/03 22:39:03, adamk wrote: > Okay, this now avoids changing any existing behavior, PTAL. ...
4 years, 9 months ago (2016-03-04 12:04:11 UTC) #17
nickie
Got it. https://codereview.chromium.org/1740293002/diff/60001/src/parsing/parser.cc File src/parsing/parser.cc (left): https://codereview.chromium.org/1740293002/diff/60001/src/parsing/parser.cc#oldcode5677 src/parsing/parser.cc:5677: GetIterator(subject, factory(), spread->expression_position()), There was another tricky ...
4 years, 9 months ago (2016-03-04 14:15:13 UTC) #18
adamk
Thanks for the details, I could never remember what Spread::expression_position() was all about. Switched to ...
4 years, 9 months ago (2016-03-04 18:50:09 UTC) #19
nickie
On 2016/03/04 18:50:09, adamk wrote: > Thanks for the details, I could never remember what ...
4 years, 9 months ago (2016-03-07 09:21:43 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1740293002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1740293002/100001
4 years, 9 months ago (2016-03-07 19:12:14 UTC) #24
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 9 months ago (2016-03-07 19:52:16 UTC) #26
commit-bot: I haz the power
4 years, 9 months ago (2016-03-07 19:53:36 UTC) #28
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/a8dc2c47812b333e294824ce7834fdcfbbf1c99c
Cr-Commit-Position: refs/heads/master@{#34561}

Powered by Google App Engine
This is Rietveld 408576698