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

Issue 2421833002: Remove "is function lazy" logic from Preparser + tiny error reporting refactoring. (Closed)

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

Description

Remove "is function lazy" logic from Preparser + tiny error reporting refactoring. It doesn't need to have this logic. ParseLazyFunctionLiteralBody is basically just ParseStatementList + log the function position. But PreParser doesn't need to have the "which functions to log" logic, since logging the function is always done exactly when Parser falls back to PreParser. (See PreParseLazyFunction.) So in the current state, PreParser would log several functions in a SingletonLogger, and only the last one would take effect (that's the one Parser also logs in SkipLazyFunctionBody). Also updated test-parsing/Regress928 to produce the preparse data the way we do now (i.e., not running the PreParser directly, but running the Parser). Error reporting: when PreParser finds an error, it doesn't need to ReportUnexpectedToken in PreParseLazyFunction, since it already has reported the error whenever it found it. BUG=v8:5515 Committed: https://crrev.com/97fe83c78f1b4076a9ac3dc3cac973dd4b730117 Cr-Commit-Position: refs/heads/master@{#40315}

Patch Set 1 #

Patch Set 2 : kill unused var #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -43 lines) Patch
M src/parsing/preparse-data.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/parsing/preparser.h View 2 chunks +2 lines, -2 lines 0 comments Download
M src/parsing/preparser.cc View 1 6 chunks +5 lines, -15 lines 0 comments Download
M test/cctest/test-parsing.cc View 2 chunks +18 lines, -26 lines 0 comments Download

Messages

Total messages: 15 (10 generated)
marja
ptal
4 years, 2 months ago (2016-10-14 08:31:56 UTC) #4
Toon Verwaest
lgtm
4 years, 2 months ago (2016-10-14 12:27:40 UTC) #8
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/2421833002/20001
4 years, 2 months ago (2016-10-14 12:52:42 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-10-14 13:20:53 UTC) #13
commit-bot: I haz the power
4 years, 2 months ago (2016-10-14 13:21:24 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/97fe83c78f1b4076a9ac3dc3cac973dd4b730117
Cr-Commit-Position: refs/heads/master@{#40315}

Powered by Google App Engine
This is Rietveld 408576698