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

Issue 1302893002: Tighten & check the BookmarkScope API contract a bit.

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

Description

Tighten & check the BookmarkScope API contract a bit. The real fix for crbug.com/510825 is in Blink (crrev.com/1286883004). When debugging, I first suspected abuse of the BookmarkScope and added additional assertions to check proper use. It turned out that didn't actually have anything to do with the bug in question, but IMHO it's still a useful cleanup. This should not actually change any behaviour. R=rossberg@chromium.org BUG=chromium:510825

Patch Set 1 #

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

Messages

Total messages: 4 (0 generated)
vogelheim
5 years, 4 months ago (2015-08-20 13:48:26 UTC) #1
rossberg
lgtm https://codereview.chromium.org/1302893002/diff/1/src/scanner.h File src/scanner.h (right): https://codereview.chromium.org/1302893002/diff/1/src/scanner.h#newcode367 src/scanner.h:367: if (my_bookmark_) scanner_->DropBookmark(); Hm, this _does_ change the ...
5 years, 4 months ago (2015-08-20 15:45:12 UTC) #2
vogelheim
https://codereview.chromium.org/1302893002/diff/1/src/scanner.h File src/scanner.h (right): https://codereview.chromium.org/1302893002/diff/1/src/scanner.h#newcode367 src/scanner.h:367: if (my_bookmark_) scanner_->DropBookmark(); On 2015/08/20 15:45:12, rossberg wrote: > ...
5 years, 4 months ago (2015-08-20 16:26:31 UTC) #3
rossberg
5 years, 4 months ago (2015-08-20 16:37:32 UTC) #4
On 2015/08/20 16:26:31, vogelheim wrote:
> https://codereview.chromium.org/1302893002/diff/1/src/scanner.h
> File src/scanner.h (right):
> 
> https://codereview.chromium.org/1302893002/diff/1/src/scanner.h#newcode367
> src/scanner.h:367: if (my_bookmark_) scanner_->DropBookmark();
> On 2015/08/20 15:45:12, rossberg wrote:
> > Hm, this _does_ change the semantics, doesn't it? It looks more correct,
> though.
> 
> Yes, good observation. But I think the case where this makes a difference
> shouldn't happen in practice, so it shouldn't change behaviour overall.
> 
> And if the case does happen, this should fix a bug. :)  This is what I
> originally meant to implement.

Would be good to know if it is supposed to happen. :) If not, this could perhaps
be a DCHECK.

Powered by Google App Engine
This is Rietveld 408576698