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

Issue 1941843002: Fix ExternalTwobyteStringUtf16CharacterStream::PushBack(kEndOfInput) (Closed)

Created:
4 years, 7 months ago by vogelheim
Modified:
4 years, 7 months ago
Reviewers:
rossberg
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Fix ExternalTwobyteStringUtf16CharacterStream::PushBack(kEndOfInput) PushBack(end-of-input) is a little weird, but since Utf16CharacterStream::Advance will advance pos_m, but not buffer_cursor_ when at the end of the stream, pushing back the end-of-input token needs to do the exact inverse. (The reason Advance does not advance buffer_cursor_ is that buffer_cursor_ is often dereferenced directly to access memory and so always needs to point to, well, memory.) (The PushBack implementation for all other streams looks correct.) R=rossberg@chromium.org BUG=chromium:607903 LOG=Y Committed: https://crrev.com/57f0a521e40a96bab629ca6618c9f939653f8a06 Cr-Commit-Position: refs/heads/master@{#35968}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M src/parsing/scanner-character-streams.h View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 10 (5 generated)
vogelheim
4 years, 7 months ago (2016-05-02 17:13:22 UTC) #3
rossberg
lgtm
4 years, 7 months ago (2016-05-03 09:15:04 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1941843002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1941843002/1
4 years, 7 months ago (2016-05-03 09:37:26 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 7 months ago (2016-05-03 09:41:39 UTC) #8
commit-bot: I haz the power
4 years, 7 months ago (2016-05-03 09:43:53 UTC) #10
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/57f0a521e40a96bab629ca6618c9f939653f8a06
Cr-Commit-Position: refs/heads/master@{#35968}

Powered by Google App Engine
This is Rietveld 408576698