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

Issue 2645353002: [parser] Refactor ParseForStatement. (Closed)

Created:
3 years, 11 months ago by marja
Modified:
3 years, 11 months ago
Reviewers:
nickie, caitp, adamk
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[parser] Refactor ParseForStatement. It was a scary function which handled all possible old-fashioned and for-each statements at one go. Split it to multiple smaller functions and made the top level logic clearer. BUG= Review-Url: https://codereview.chromium.org/2645353002 Cr-Commit-Position: refs/heads/master@{#42627} Committed: https://chromium.googlesource.com/v8/v8/+/db1de41a62dc90dd853e0e73d941d72fae4ca8f1

Patch Set 1 #

Total comments: 2

Patch Set 2 : code review (adamk@ and uninitialized value fix) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+221 lines, -187 lines) Patch
M src/parsing/parser-base.h View 1 4 chunks +221 lines, -187 lines 0 comments Download

Messages

Total messages: 17 (9 generated)
marja
ptal re: discussion in https://codereview.chromium.org/2637403008/ A more detailed description of the changes (sorry, refactoring is ...
3 years, 11 months ago (2017-01-23 11:00:19 UTC) #4
caitp
I appreciate how much simpler this version is to follow, so +1 from me.
3 years, 11 months ago (2017-01-23 13:22:24 UTC) #7
adamk
lgtm, agree that this was a long-needed cleanup https://codereview.chromium.org/2645353002/diff/1/src/parsing/parser-base.h File src/parsing/parser-base.h (right): https://codereview.chromium.org/2645353002/diff/1/src/parsing/parser-base.h#newcode1313 src/parsing/parser-base.h:1313: StatementT ...
3 years, 11 months ago (2017-01-23 18:46:27 UTC) #8
marja
Thanks for review; The latest patch set contains some minor changes listed below; I think ...
3 years, 11 months ago (2017-01-24 09:36:04 UTC) #9
marja
https://codereview.chromium.org/2645353002/diff/1/src/parsing/parser-base.h File src/parsing/parser-base.h (right): https://codereview.chromium.org/2645353002/diff/1/src/parsing/parser-base.h#newcode1313 src/parsing/parser-base.h:1313: StatementT ParseStandardForLoop(StatementT init, int stmt_pos, On 2017/01/23 18:46:27, adamk ...
3 years, 11 months ago (2017-01-24 09:37:29 UTC) #10
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/2645353002/20001
3 years, 11 months ago (2017-01-24 09:37:43 UTC) #13
nickie
This is indeed a big improvement. There may be room for more refactoring in the ...
3 years, 11 months ago (2017-01-24 10:02:48 UTC) #14
commit-bot: I haz the power
3 years, 11 months ago (2017-01-24 10:17:12 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/v8/v8/+/db1de41a62dc90dd853e0e73d941d72fae4...

Powered by Google App Engine
This is Rietveld 408576698