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

Issue 2324843005: [parser] Refactor of Parse*Statement*, part 6 (Closed)

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

Description

[parser] Refactor of Parse*Statement*, part 6 This patch moves the following parsing method to ParserBase: - ParseSwitchStatement It also removes ParseCaseClause and merges it with ParseSwitchStatement, mainly to avoid the complexity of introducing one more abstract typedef to be shared between parser implementations, but also because the merged ParseSwitchStatement is now only 59 lines. R=adamk@chromium.org, marja@chromium.org BUG= LOG=N Committed: https://crrev.com/e850ed2a1e077b41e2a8a7bb9a6b8a838a0be438 Cr-Commit-Position: refs/heads/master@{#39337}

Patch Set 1 : Just moving code (broken) #

Patch Set 2 : The real patch #

Total comments: 6

Patch Set 3 : Change after reviewers' comments #

Patch Set 4 : Rebase #

Total comments: 2

Patch Set 5 : Reorder methods #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -125 lines) Patch
M src/parsing/parser.h View 1 2 3 4 chunks +8 lines, -5 lines 0 comments Download
M src/parsing/parser.cc View 1 2 3 4 3 chunks +8 lines, -72 lines 0 comments Download
M src/parsing/parser-base.h View 1 2 3 6 chunks +67 lines, -3 lines 0 comments Download
M src/parsing/preparser.h View 1 2 3 5 chunks +21 lines, -4 lines 0 comments Download
M src/parsing/preparser.cc View 1 2 3 1 chunk +0 lines, -36 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Switch.golden View 1 2 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 16 (7 generated)
nickie
4 years, 3 months ago (2016-09-09 14:05:43 UTC) #1
adamk
lgtm % nits https://codereview.chromium.org/2324843005/diff/20001/src/parsing/parser.cc File src/parsing/parser.cc (right): https://codereview.chromium.org/2324843005/diff/20001/src/parsing/parser.cc#newcode1780 src/parsing/parser.cc:1780: BlockT switch_block = factory()->NewBlock(NULL, 2, false, ...
4 years, 3 months ago (2016-09-09 17:59:12 UTC) #2
nickie
https://codereview.chromium.org/2324843005/diff/20001/src/parsing/parser.cc File src/parsing/parser.cc (right): https://codereview.chromium.org/2324843005/diff/20001/src/parsing/parser.cc#newcode1780 src/parsing/parser.cc:1780: BlockT switch_block = factory()->NewBlock(NULL, 2, false, kNoSourcePosition); On 2016/09/09 ...
4 years, 3 months ago (2016-09-10 18:13:12 UTC) #3
marja
https://codereview.chromium.org/2324843005/diff/60001/src/parsing/parser.cc File src/parsing/parser.cc (right): https://codereview.chromium.org/2324843005/diff/60001/src/parsing/parser.cc#newcode1757 src/parsing/parser.cc:1757: Statement* Parser::ParseFunctionDeclaration(bool* ok) { Hmm, why did you add ...
4 years, 3 months ago (2016-09-12 08:17:56 UTC) #8
nickie
https://codereview.chromium.org/2324843005/diff/60001/src/parsing/parser.cc File src/parsing/parser.cc (right): https://codereview.chromium.org/2324843005/diff/60001/src/parsing/parser.cc#newcode1757 src/parsing/parser.cc:1757: Statement* Parser::ParseFunctionDeclaration(bool* ok) { On 2016/09/12 08:17:56, marja wrote: ...
4 years, 3 months ago (2016-09-12 09:03:37 UTC) #9
marja
lgtm (since adamk@ already reviewed, I didn't read through this in detail)
4 years, 3 months ago (2016-09-12 09:06:42 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/2324843005/80001
4 years, 3 months ago (2016-09-12 09:12:39 UTC) #13
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 3 months ago (2016-09-12 09:39:39 UTC) #14
commit-bot: I haz the power
4 years, 3 months ago (2016-09-12 09:40:01 UTC) #16
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/e850ed2a1e077b41e2a8a7bb9a6b8a838a0be438
Cr-Commit-Position: refs/heads/master@{#39337}

Powered by Google App Engine
This is Rietveld 408576698