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

Issue 1154773004: Fix DCHECK on SetBookmark. (Closed)

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

Description

Fix DCHECK on SetBookmark. The DCHECK was a lie. The idea was that - when a bookmark is set - the scanner must clearly be at a character boundary and hence the bookmark does not need to save a 'partial' UTF-8 code point. The first part is true - the Scanner is always at a character boundary - but the 'partial' UTF-8 code point is at the end of a block, not at the current character position of the Scanner. Hence, the 'partial' character needs to be saved as well. jkummerow: Thanks for noticing. BUG=chromium:470930 R=jochen@chromium.org, jkummerow@chromium.org LOG=N Committed: https://crrev.com/21e6831ee0526449affa3ef9232e8890fa2617ad Cr-Commit-Position: refs/heads/master@{#28661}

Patch Set 1 #

Total comments: 2

Patch Set 2 : De-nit-ification. #

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

Messages

Total messages: 9 (2 generated)
vogelheim
5 years, 7 months ago (2015-05-27 15:07:28 UTC) #1
Jakob Kummerow
Thanks for fixing! I have a nit. (Haven't reviewed for correctness, just skimmed.) https://codereview.chromium.org/1154773004/diff/1/src/scanner-character-streams.cc File ...
5 years, 7 months ago (2015-05-27 15:10:40 UTC) #2
jochen (gone - plz use gerrit)
lgtm
5 years, 7 months ago (2015-05-27 15:14:58 UTC) #3
vogelheim
https://codereview.chromium.org/1154773004/diff/1/src/scanner-character-streams.cc File src/scanner-character-streams.cc (right): https://codereview.chromium.org/1154773004/diff/1/src/scanner-character-streams.cc#newcode424 src/scanner-character-streams.cc:424: bookmark_utf8_split_char_buffer_[i] = utf8_split_char_buffer_[i]; On 2015/05/27 15:10:40, Jakob wrote: > ...
5 years, 7 months ago (2015-05-27 15:17:55 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1154773004/20001
5 years, 7 months ago (2015-05-27 15:27:58 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 7 months ago (2015-05-27 15:43:35 UTC) #8
commit-bot: I haz the power
5 years, 7 months ago (2015-05-27 15:43:51 UTC) #9
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/21e6831ee0526449affa3ef9232e8890fa2617ad
Cr-Commit-Position: refs/heads/master@{#28661}

Powered by Google App Engine
This is Rietveld 408576698