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

Issue 135213007: (Pre)Parser: Move FunctionState, BlockState and Scope handling to ParserBase. (Closed)

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

Description

(Pre)Parser: Move FunctionState, BlockState and Scope handling to ParserBase. Notes: - This removes Parser::FunctionState and PreParser::FunctionState and adds ParserBase::FunctionState etc. - Also the scope stacks and function state stacks are moved to ParserBase. - PreParser::FunctionState didn't add and subtract JSFunction::kLiteralsPrefixSize (unlike Parser::FunctionState). Since the actual value of NextMaterializedLiteralIndex is not used in the Preparser, this change is valid. - Traits no longer need functions like is_classic_mode(), since now there is a unified way of getting the information from the FunctionState / Scope. R=ulan@chromium.org BUG=v8:3126 LOG=N Committed: https://code.google.com/p/v8/source/detail?r=19361

Patch Set 1 #

Total comments: 2

Patch Set 2 : code review (ulan) #

Patch Set 3 : mismatch?? #

Patch Set 4 : rebased #

Patch Set 5 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+293 lines, -329 lines) Patch
M src/parser.h View 1 4 chunks +34 lines, -83 lines 0 comments Download
M src/parser.cc View 6 chunks +1 line, -79 lines 0 comments Download
M src/preparser.h View 1 2 3 4 18 chunks +245 lines, -144 lines 0 comments Download
M src/preparser.cc View 1 6 chunks +13 lines, -23 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
ulan
lgtm In addition to what we discussed offline: https://codereview.chromium.org/135213007/diff/1/src/preparser.h File src/preparser.h (right): https://codereview.chromium.org/135213007/diff/1/src/preparser.h#newcode116 src/preparser.h:116: typename ...
6 years, 10 months ago (2014-02-13 10:43:27 UTC) #1
marja
Thanks for review! I did these changes, as discussed IRL: - Moved Scope and Factory ...
6 years, 10 months ago (2014-02-13 15:57:51 UTC) #2
ulan
nice, lgtm!
6 years, 10 months ago (2014-02-13 16:04:00 UTC) #3
marja
6 years, 10 months ago (2014-02-13 16:18:02 UTC) #4
Message was sent while issue was closed.
Committed patchset #5 manually as r19361 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698