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

Issue 200473003: Make invalid LHSs a parse-time (reference) error (Closed)

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

Description

Make invalid LHSs a parse-time (reference) error This is required by the spec. It also prevents crashes resulting from the attempt to read type feedback for the RHS of an invalid assignment which full codegen never actually allocated info for. To do: check properly in preparser already. R=marja@chromium.org, mstarzinger@chromium.org BUG=351658 LOG=Y Committed: https://code.google.com/p/v8/source/detail?r=19976

Patch Set 1 #

Total comments: 2

Patch Set 2 : Comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -192 lines) Patch
M src/a64/full-codegen-a64.cc View 3 chunks +5 lines, -19 lines 0 comments Download
M src/arm/full-codegen-arm.cc View 3 chunks +5 lines, -19 lines 0 comments Download
M src/factory.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/factory.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M src/heap.h View 1 chunk +0 lines, -4 lines 0 comments Download
M src/ia32/full-codegen-ia32.cc View 3 chunks +5 lines, -19 lines 0 comments Download
M src/messages.js View 2 chunks +5 lines, -4 lines 0 comments Download
M src/parser.h View 2 chunks +11 lines, -7 lines 0 comments Download
M src/parser.cc View 7 chunks +25 lines, -39 lines 0 comments Download
M src/preparser.h View 5 chunks +24 lines, -19 lines 0 comments Download
M src/preparser.cc View 2 chunks +8 lines, -4 lines 0 comments Download
M src/x64/full-codegen-x64.cc View 3 chunks +5 lines, -19 lines 0 comments Download
M test/cctest/test-parsing.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M test/mjsunit/invalid-lhs.js View 1 chunk +26 lines, -26 lines 0 comments Download
A + test/mjsunit/regress/regress-crbug-351658.js View 1 chunk +7 lines, -12 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
rossberg
6 years, 9 months ago (2014-03-14 16:33:25 UTC) #1
marja
lgtm
6 years, 9 months ago (2014-03-17 08:48:45 UTC) #2
Michael Starzinger
LGTM. https://codereview.chromium.org/200473003/diff/1/test/cctest/test-parsing.cc File test/cctest/test-parsing.cc (left): https://codereview.chromium.org/200473003/diff/1/test/cctest/test-parsing.cc#oldcode2221 test/cctest/test-parsing.cc:2221: "new foo++", IIUC, this should throw an "invalid ...
6 years, 9 months ago (2014-03-17 09:28:17 UTC) #3
rossberg
https://codereview.chromium.org/200473003/diff/1/test/cctest/test-parsing.cc File test/cctest/test-parsing.cc (left): https://codereview.chromium.org/200473003/diff/1/test/cctest/test-parsing.cc#oldcode2221 test/cctest/test-parsing.cc:2221: "new foo++", On 2014/03/17 09:28:17, Michael Starzinger wrote: > ...
6 years, 9 months ago (2014-03-17 10:12:31 UTC) #4
rossberg
6 years, 9 months ago (2014-03-17 10:21:13 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 manually as r19976 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698