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

Issue 196343033: Make PreParser track valid left hand sides. (Closed)

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

Description

Make PreParser track valid left hand sides. Notes: - This makes PreParser produce invalid_lhs_in_assignment and invalid_lhs_in_prefix_op. Other errors will follow as the corresponding funcs move to ParserBase. - PreParserExpression::IsStrictFunction and StrictFunction() are not needed any more -> removed them. R=rossberg@chromium.org BUG= Committed: https://code.google.com/p/v8/source/detail?r=20125

Patch Set 1 #

Total comments: 4

Patch Set 2 : fix #

Patch Set 3 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -20 lines) Patch
M src/preparser.h View 5 chunks +16 lines, -12 lines 0 comments Download
M src/preparser.cc View 1 6 chunks +11 lines, -8 lines 0 comments Download
M test/cctest/test-parsing.cc View 1 1 chunk +70 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
marja
rossberg, ptal
6 years, 9 months ago (2014-03-19 15:07:49 UTC) #1
rossberg
LGTM modulo comments Nice, this is simpler than I thought it'd be. https://codereview.chromium.org/196343033/diff/1/test/cctest/test-parsing.cc File test/cctest/test-parsing.cc ...
6 years, 9 months ago (2014-03-19 15:29:08 UTC) #2
marja
Thanks for review! I was also expecting this to be more difficult, but reading Expression::IsValidLeftHandSide, ...
6 years, 9 months ago (2014-03-19 15:41:14 UTC) #3
rossberg
On 2014/03/19 15:41:14, marja wrote: > Thanks for review! > > I was also expecting ...
6 years, 9 months ago (2014-03-19 15:55:31 UTC) #4
marja
There was one fix needed, in PreParser::ParseMemberWithNewPrefixesExpression it didn't transmit the lefthandsideness of the expression ...
6 years, 9 months ago (2014-03-19 17:13:54 UTC) #5
rossberg
lgtm
6 years, 9 months ago (2014-03-19 17:15:55 UTC) #6
marja
6 years, 9 months ago (2014-03-20 13:18:26 UTC) #7
Message was sent while issue was closed.
Committed patchset #3 manually as r20125 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698