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

Issue 6246004: Fix bug when the scanner does a pushback at the end of input. (Closed)

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

Description

Fix bug when the scanner does a pushback at the end of input. We don't advance the input cursor past the end of input, so we shouldn't decrease it when we pushback the kEndOfInput marker.

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -13 lines) Patch
M src/preparser-api.cc View 2 chunks +7 lines, -2 lines 0 comments Download
M src/scanner.h View 2 chunks +3 lines, -2 lines 0 comments Download
M src/scanner.cc View 1 chunk +7 lines, -3 lines 0 comments Download
M src/scanner-base.h View 2 chunks +7 lines, -6 lines 2 comments Download

Messages

Total messages: 3 (0 generated)
Lasse Reichstein
9 years, 11 months ago (2011-01-14 10:30:44 UTC) #1
Søren Thygesen Gjesse
LGTM http://codereview.chromium.org/6246004/diff/1/src/scanner-base.h File src/scanner-base.h (right): http://codereview.chromium.org/6246004/diff/1/src/scanner-base.h#newcode100 src/scanner-base.h:100: // Pushes back the most recently read UC16 ...
9 years, 11 months ago (2011-01-14 10:37:16 UTC) #2
Lasse Reichstein
9 years, 11 months ago (2011-01-14 10:49:03 UTC) #3
http://codereview.chromium.org/6246004/diff/1/src/scanner-base.h
File src/scanner-base.h (right):

http://codereview.chromium.org/6246004/diff/1/src/scanner-base.h#newcode100
src/scanner-base.h:100: // Pushes back the most recently read UC16 character (or
negative
The kEndOfInput name isn't publicly visible. All we guarantee is that we return
negative for end-of-input.
The constant is used internally only to give meaningful name to the value
returned in those case.

Powered by Google App Engine
This is Rietveld 408576698