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

Issue 2267783002: [parser] Clean up (pre)parser traits (Closed)

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

Description

[parser] Clean up (pre)parser traits This patch removes 26 elements of the (pre)parser traits objects. Some methods are removed completely and called directly from the implementation objects: - ParseAsyncFunctionExpression - ParseClassLiteral - ParseDoExpression - ParseEagerFunctionBody - ParseFunctionLiteral - ParseV8Intrinsic Some methods have to be moved to at least one implementation object: - AddTemplateExpression - AddTemplateSpan - CheckConflictingVarDeclarations - CloseTemplateLiteral - MarkCollectedTailCallExpressions - MarkTailPosition - OpenTemplateLiteral - ParseAsyncArrowSingleExpressionBody - PrepareSpreadArguments - QueueDestructuringAssignmentForRewriting - QueueNonPatternForRewriting - RewriteAssignExponentiation - RewriteAwaitExpression - RewriteDestructuringAssignments - RewriteExponentiation - RewriteNonPattern - RewriteYieldStar - SkipLazyFunctionBody - SpreadCall - SpreadCallNew Also, the inner class/struct TemplateLiteralState is moved to the implementation objects. R=adamk@chromium.org, marja@chromium.org BUG= LOG=N Committed: https://crrev.com/6fe0b39b0167a71a1d9265c035c245c30b71b573 Cr-Commit-Position: refs/heads/master@{#38837}

Patch Set 1 #

Patch Set 2 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+217 lines, -463 lines) Patch
M src/parsing/parser.h View 1 11 chunks +51 lines, -168 lines 0 comments Download
M src/parsing/parser.cc View 1 8 chunks +12 lines, -71 lines 0 comments Download
M src/parsing/parser-base.h View 1 44 chunks +67 lines, -68 lines 0 comments Download
M src/parsing/preparser.h View 1 10 chunks +82 lines, -128 lines 0 comments Download
M src/parsing/preparser.cc View 1 3 chunks +5 lines, -28 lines 0 comments Download

Messages

Total messages: 16 (9 generated)
nickie
4 years, 4 months ago (2016-08-22 15:11:41 UTC) #1
marja
(rubberstamp) lgtm, i.e., I didn't double-check every line of code moved around, but assuming this ...
4 years, 4 months ago (2016-08-23 08:20:57 UTC) #7
nickie
On 2016/08/23 08:20:57, marja wrote: > (rubberstamp) lgtm, i.e., I didn't double-check every line of ...
4 years, 4 months ago (2016-08-23 08:27:19 UTC) #8
adamk
lgtm
4 years, 4 months ago (2016-08-23 15:58:38 UTC) #9
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/2267783002/20001
4 years, 4 months ago (2016-08-23 16:09:56 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-23 16:34:43 UTC) #14
commit-bot: I haz the power
4 years, 4 months ago (2016-08-23 16:35:12 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/6fe0b39b0167a71a1d9265c035c245c30b71b573
Cr-Commit-Position: refs/heads/master@{#38837}

Powered by Google App Engine
This is Rietveld 408576698