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

Issue 2277843002: [parser] Clean up (pre)parser traits, part 5, last (Closed)

Created:
4 years, 4 months ago by nickie
Modified:
4 years, 3 months ago
Reviewers:
adamk, marja
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@nickie-2274113002-ref-traits
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[parser] Clean up (pre)parser traits, part 5, last This patch moves the following methods from the traits objects to the (pre)parser implementation objects: - AddFormalParameter - AddParameterInitializationBlock - DeclareFormalParameter - ExpressionListToExpression - GetNonPatternList - GetReportedErrorList - IsTaggedTemplate - MaterializeUnspreadArgumentsLiterals - NoTemplateTag - ParseArrowFunctionFormalParameterList - ReindexLiterals - SetFunctionNameFromIdentifierRef - SetFunctionNameFromPropertyName It moves the Void method from the preparser traits object to the preparser implementation object. It also removes the traits zone method and replaces it with that of ParserBase, which it turns to public. After all this, the traits objects contain just typedefs and the delegate methods are no more necessary. R=adamk@chromium.org, marja@chromium.org BUG= LOG=N Committed: https://crrev.com/ba9367db6097083f7f3d8ef6982e7f7b65cdaaf7 Cr-Commit-Position: refs/heads/master@{#38892}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+279 lines, -363 lines) Patch
M src/parsing/expression-classifier.h View 1 chunk +5 lines, -15 lines 0 comments Download
M src/parsing/parser.h View 5 chunks +87 lines, -110 lines 2 comments Download
M src/parsing/parser.cc View 15 chunks +45 lines, -65 lines 0 comments Download
M src/parsing/parser-base.h View 46 chunks +70 lines, -76 lines 0 comments Download
M src/parsing/preparser.h View 7 chunks +72 lines, -97 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 12 (6 generated)
nickie
4 years, 4 months ago (2016-08-24 17:21:51 UTC) #1
adamk
lgtm Exciting! https://codereview.chromium.org/2277843002/diff/1/src/parsing/parser.h File src/parsing/parser.h (right): https://codereview.chromium.org/2277843002/diff/1/src/parsing/parser.h#newcode984 src/parsing/parser.h:984: V8_INLINE void DeclareFormalParameter( Hmm, surprised that this ...
4 years, 4 months ago (2016-08-24 18:19:40 UTC) #6
marja
lgtm https://codereview.chromium.org/2277843002/diff/1/src/parsing/parser.h File src/parsing/parser.h (right): https://codereview.chromium.org/2277843002/diff/1/src/parsing/parser.h#newcode200 src/parsing/parser.h:200: friend class v8::internal::ExpressionClassifier<ParserBaseTraits<Parser>>; Pls add a "TODO: remove ...
4 years, 3 months ago (2016-08-25 07:33:56 UTC) #7
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/2277843002/1
4 years, 3 months ago (2016-08-25 08:47:13 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 3 months ago (2016-08-25 08:48:49 UTC) #10
commit-bot: I haz the power
4 years, 3 months ago (2016-08-25 08:49:02 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/ba9367db6097083f7f3d8ef6982e7f7b65cdaaf7
Cr-Commit-Position: refs/heads/master@{#38892}

Powered by Google App Engine
This is Rietveld 408576698