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

Issue 2479213002: [parser] Only track parsing-mode (and possibly switch to the preparser) in the parser (Closed)

Created:
4 years, 1 month ago by Toon Verwaest
Modified:
4 years, 1 month ago
Reviewers:
vogelheim
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[parser] Only track parsing-mode (and possibly switch to the preparser) in the parser Otherwise we could in theory abort preparsing to the preparser and preparse again before aborting again... We shouldn't have this mess; so only set up mode_ in the parser in the first place. BUG= Committed: https://crrev.com/56b8afc1c363926348f5cca798ac41f28692e82e Cr-Commit-Position: refs/heads/master@{#40809}

Patch Set 1 #

Total comments: 5

Patch Set 2 : addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -32 lines) Patch
M src/parsing/parser.h View 1 2 chunks +17 lines, -0 lines 0 comments Download
M src/parsing/parser.cc View 1 2 chunks +5 lines, -4 lines 0 comments Download
M src/parsing/parser-base.h View 1 7 chunks +1 line, -27 lines 0 comments Download
M src/parsing/preparser.h View 1 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 13 (6 generated)
Toon Verwaest
ptal
4 years, 1 month ago (2016-11-07 14:35:10 UTC) #2
Toon Verwaest
https://codereview.chromium.org/2479213002/diff/1/src/parsing/parser-base.h File src/parsing/parser-base.h (left): https://codereview.chromium.org/2479213002/diff/1/src/parsing/parser-base.h#oldcode4412 src/parsing/parser-base.h:4412: if (scope()->is_eval_scope()) mode_ = PARSE_EAGERLY; There is no equivalent ...
4 years, 1 month ago (2016-11-07 14:38:13 UTC) #4
vogelheim
lgtm (only style nitpicks; please decide as you see fit) https://codereview.chromium.org/2479213002/diff/1/src/parsing/parser-base.h File src/parsing/parser-base.h (left): https://codereview.chromium.org/2479213002/diff/1/src/parsing/parser-base.h#oldcode4412 ...
4 years, 1 month ago (2016-11-07 14:56:17 UTC) #5
Toon Verwaest
Addressed comments. I replaced Mode mode() with bool parse_lazily() so the preparse/parser-base don't need to ...
4 years, 1 month ago (2016-11-07 16:09:41 UTC) #6
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/2479213002/20001
4 years, 1 month ago (2016-11-07 16:09:54 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-07 16:34:52 UTC) #11
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:24:59 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/56b8afc1c363926348f5cca798ac41f28692e82e
Cr-Commit-Position: refs/heads/master@{#40809}

Powered by Google App Engine
This is Rietveld 408576698