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

Issue 8306024: Make native syntax an early error in the preparser. (Closed)

Created:
9 years, 2 months ago by Lasse Reichstein
Modified:
9 years, 2 months ago
Reviewers:
fschneider, Steven
CC:
v8-dev
Visibility:
Public.

Description

Make native syntax an early error in the preparser. Previously the preparser always accepted natives syntax and let the real parser throw the syntax error. In ES5, it should be an early error, so the preparser must catch the error. The perparser library does not expose parsing for natives syntax, it's only used internally. Committed: http://code.google.com/p/v8/source/detail?r=9660

Patch Set 1 #

Total comments: 2

Patch Set 2 : Unified enums #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -26 lines) Patch
M src/compiler.cc View 1 1 chunk +9 lines, -7 lines 0 comments Download
M src/parser.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M src/parser.cc View 1 2 chunks +12 lines, -10 lines 0 comments Download
M src/preparser.h View 1 4 chunks +10 lines, -4 lines 0 comments Download
M src/preparser.cc View 1 chunk +4 lines, -1 line 0 comments Download
M src/preparser-api.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/scanner.h View 1 1 chunk +11 lines, -0 lines 0 comments Download
M test/cctest/test-parsing.cc View 1 2 chunks +39 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
Lasse Reichstein
9 years, 2 months ago (2011-10-17 10:24:42 UTC) #1
fschneider
http://codereview.chromium.org/8306024/diff/1/src/parser.h File src/parser.h (right): http://codereview.chromium.org/8306024/diff/1/src/parser.h#newcode165 src/parser.h:165: kHarmonyScoping = kAllowNativesSyntax * 2 Why is there not ...
9 years, 2 months ago (2011-10-17 10:33:51 UTC) #2
Lasse Reichstein
http://codereview.chromium.org/8306024/diff/1/src/parser.h File src/parser.h (right): http://codereview.chromium.org/8306024/diff/1/src/parser.h#newcode165 src/parser.h:165: kHarmonyScoping = kAllowNativesSyntax * 2 Not sure there is ...
9 years, 2 months ago (2011-10-17 11:00:30 UTC) #3
Steven
Yes indeed, at the moment the preparser gets the information from the scanner. But this ...
9 years, 2 months ago (2011-10-17 11:13:54 UTC) #4
Lasse Reichstein
Moved the enum, please check again.
9 years, 2 months ago (2011-10-17 12:40:30 UTC) #5
fschneider
9 years, 2 months ago (2011-10-17 12:42:38 UTC) #6
lgtm

Powered by Google App Engine
This is Rietveld 408576698