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

Issue 149913006: Traitify ParserBase and move functions there. (Closed)

Created:
6 years, 10 months ago by marja
Modified:
6 years, 10 months ago
Reviewers:
Michael Starzinger
CC:
v8-dev
Visibility:
Public.

Description

Traitify ParserBase and move functions there. The long-term goal is to move all recursive descent functions from Parser and PreParser into ParserBase, but first they need to be unified. Notes: - The functions moved in this CL: ParseIdentifier, ParseIdentifierName, ParseIdentifierNameOrGetOrSet, ParseIdentifierOrStrictReservedWord. - IOW, this CL removes Parser::ParseIdentifier and PreParser::ParseIdentifier and adds ParserBase::ParseIdentifier, etc. - Error reporting used to require virtual funcs; now error reporting is moved to the Traits too, and ParserBase no longer needs to be virtual. - I had to move PreParser::Identifier out of the PreParser class, because otherwise PreParserTraits cannot use it in a typedef. BUG=v8:3126 LOG=N R=mstarzinger@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=19230

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Total comments: 8

Patch Set 6 : Code review (mstarzinger) #

Total comments: 10

Patch Set 7 : . #

Patch Set 8 : Code review (mstarzinger) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+643 lines, -673 lines) Patch
M src/parser.h View 1 2 3 4 5 7 chunks +38 lines, -32 lines 0 comments Download
M src/parser.cc View 1 2 3 4 5 6 22 chunks +98 lines, -274 lines 0 comments Download
M src/preparser.h View 1 2 3 4 5 6 7 12 chunks +418 lines, -193 lines 0 comments Download
M src/preparser.cc View 1 2 3 4 5 6 14 chunks +86 lines, -172 lines 0 comments Download
M test/cctest/test-parsing.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Michael Starzinger
https://codereview.chromium.org/149913006/diff/100001/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/149913006/diff/100001/src/parser.cc#newcode607 src/parser.cc:607: new ParserTraits(this)), If we make the ParserBase inherit from ...
6 years, 10 months ago (2014-02-10 13:28:03 UTC) #1
marja
mstarzinger: Thanks for having a look! Do you like this version better? https://codereview.chromium.org/149913006/diff/100001/src/parser.cc File src/parser.cc ...
6 years, 10 months ago (2014-02-10 15:02:07 UTC) #2
Michael Starzinger
LGTM, just some nits left. https://codereview.chromium.org/149913006/diff/150001/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/149913006/diff/150001/src/parser.cc#newcode4084 src/parser.cc:4084: if (!eval_args_error_log.IsValid() && nit: ...
6 years, 10 months ago (2014-02-10 15:25:11 UTC) #3
marja
Thanks for review! https://codereview.chromium.org/149913006/diff/150001/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/149913006/diff/150001/src/parser.cc#newcode4084 src/parser.cc:4084: if (!eval_args_error_log.IsValid() && On 2014/02/10 15:25:12, ...
6 years, 10 months ago (2014-02-10 15:32:01 UTC) #4
marja
6 years, 10 months ago (2014-02-10 15:35:55 UTC) #5
Message was sent while issue was closed.
Committed patchset #8 manually as r19230 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698