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

Issue 5593004: Changed interface to preparser to not require pushback support. (Closed)

Created:
10 years ago by Lasse Reichstein
Modified:
9 years, 6 months ago
Reviewers:
Rico
CC:
v8-dev
Visibility:
Public.

Description

Changed interface to preparser to not require pushback support. Changed implementation of pushback in preparer character stream. Removed assert that isn't satisfied by in test-cases, but only by the real code. Make preparser compile again.

Patch Set 1 #

Total comments: 7

Patch Set 2 : Address review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -38 lines) Patch
M include/v8-preparser.h View 1 chunk +0 lines, -7 lines 0 comments Download
M preparser/preparser-process.cc View 1 4 chunks +19 lines, -7 lines 0 comments Download
M src/preparser-api.cc View 1 3 chunks +61 lines, -23 lines 0 comments Download
M src/scanner-base.cc View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
Lasse Reichstein
http://codereview.chromium.org/5593004/diff/1/src/scanner-base.cc File src/scanner-base.cc (left): http://codereview.chromium.org/5593004/diff/1/src/scanner-base.cc#oldcode515 src/scanner-base.cc:515: ASSERT_EQ(Token::RBRACE, next_.token); This only holds in real use. The ...
10 years ago (2010-12-08 09:28:56 UTC) #1
Rico
LGTM http://codereview.chromium.org/5593004/diff/1/preparser/preparser-process.cc File preparser/preparser-process.cc (right): http://codereview.chromium.org/5593004/diff/1/preparser/preparser-process.cc#newcode153 preparser/preparser-process.cc:153: // Preparse stdin and output result on stdout. ...
10 years ago (2010-12-08 09:46:25 UTC) #2
Lasse Reichstein
10 years ago (2010-12-08 10:05:36 UTC) #3
http://codereview.chromium.org/5593004/diff/1/preparser/preparser-process.cc
File preparser/preparser-process.cc (right):

http://codereview.chromium.org/5593004/diff/1/preparser/preparser-process.cc#...
preparser/preparser-process.cc:153: // Preparse stdin and output result on
stdout.
Good catch. Fixed.

http://codereview.chromium.org/5593004/diff/1/preparser/preparser-process.cc#...
preparser/preparser-process.cc:197: if (!file) return EXIT_FAILURE;
We check the returns of reads and writes as well.

http://codereview.chromium.org/5593004/diff/1/src/preparser-api.cc
File src/preparser-api.cc (right):

http://codereview.chromium.org/5593004/diff/1/src/preparser-api.cc#newcode51
src/preparser-api.cc:51: * an external buffer is allocated/reused to hold
further pushbacks, and
On 2010/12/08 09:46:25, Rico wrote:
> and but -> and

Done.

Powered by Google App Engine
This is Rietveld 408576698