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 2751483005: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in core/html/parser/ (Closed)

Created:
3 years, 9 months ago by Hwanseung Lee
Modified:
3 years, 9 months ago
CC:
chromium-reviews, blink-reviews-html_chromium.org, loading-reviews+parser_chromium.org, dglazkov+blink, blink-reviews, kinuko+watch
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in core/html/parser/ Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT with DCHECK_op, NOTREACHED, CHECK_op respectively. BUG=697692 Review-Url: https://codereview.chromium.org/2751483005 Cr-Commit-Position: refs/heads/master@{#458439} Committed: https://chromium.googlesource.com/chromium/src/+/93578226fe0366d00cf97b5e588e51ff1cd56885

Patch Set 1 #

Patch Set 2 : add DCHECK_IS_ON #

Patch Set 3 : add DCHECK_IS_ON #

Patch Set 4 : Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in core/html/parser/ #

Total comments: 6

Patch Set 5 : change comment #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+508 lines, -503 lines) Patch
M third_party/WebKit/Source/core/html/parser/AtomicHTMLToken.h View 3 chunks +14 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/BackgroundHTMLInputStream.cpp View 1 2 3 4 4 chunks +13 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp View 5 chunks +11 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/CSSPreloadScanner.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/parser/CompactHTMLToken.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.h View 3 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp View 1 2 3 4 5 21 chunks +38 lines, -38 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp View 1 2 3 4 5 33 chunks +62 lines, -62 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLElementStack.h View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLElementStack.cpp View 14 chunks +48 lines, -48 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLEntityParser.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLEntityParser.cpp View 5 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLEntitySearch.cpp View 2 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLFormattingElementList.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLFormattingElementList.cpp View 3 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLMetaCharsetParser.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLParserIdioms.cpp View 7 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp View 7 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLResourcePreloader.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLSourceTracker.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLSrcsetParser.h View 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLSrcsetParser.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLStackItem.h View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLToken.h View 12 chunks +44 lines, -44 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLTokenizer.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLTokenizer.cpp View 12 chunks +12 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLTreeBuilder.h View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLTreeBuilder.cpp View 1 93 chunks +154 lines, -152 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLTreeBuilderSimulator.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLViewSourceParser.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/parser/InputStreamPreprocessor.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/parser/TextResourceDecoder.cpp View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/XSSAuditor.cpp View 10 chunks +32 lines, -32 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/XSSAuditorDelegate.cpp View 1 2 3 4 5 3 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 43 (30 generated)
Hwanseung Lee
PTAL, thank you.
3 years, 9 months ago (2017-03-15 23:57:37 UTC) #19
Yoav Weiss
https://codereview.chromium.org/2751483005/diff/60001/third_party/WebKit/Source/core/html/parser/BackgroundHTMLInputStream.cpp File third_party/WebKit/Source/core/html/parser/BackgroundHTMLInputStream.cpp (right): https://codereview.chromium.org/2751483005/diff/60001/third_party/WebKit/Source/core/html/parser/BackgroundHTMLInputStream.cpp#newcode87 third_party/WebKit/Source/core/html/parser/BackgroundHTMLInputStream.cpp:87: #if DCHECK_IS_ON() Why the macro here? https://codereview.chromium.org/2751483005/diff/60001/third_party/WebKit/Source/core/html/parser/HTMLTreeBuilder.cpp File third_party/WebKit/Source/core/html/parser/HTMLTreeBuilder.cpp ...
3 years, 9 months ago (2017-03-16 10:24:44 UTC) #21
Hwanseung Lee
@Yoav Weiss. i left comments. could you check it? thank you. https://codereview.chromium.org/2751483005/diff/60001/third_party/WebKit/Source/core/html/parser/BackgroundHTMLInputStream.cpp File third_party/WebKit/Source/core/html/parser/BackgroundHTMLInputStream.cpp (right): ...
3 years, 9 months ago (2017-03-16 12:34:02 UTC) #22
kouhei (in TOK)
+dominicc: Do you know if we still have stack size regression from DCHECKs? https://codereview.chromium.org/2751483005/diff/60001/third_party/WebKit/Source/core/html/parser/BackgroundHTMLInputStream.cpp File ...
3 years, 9 months ago (2017-03-16 12:47:23 UTC) #24
Hwanseung Lee
https://codereview.chromium.org/2751483005/diff/60001/third_party/WebKit/Source/core/html/parser/BackgroundHTMLInputStream.cpp File third_party/WebKit/Source/core/html/parser/BackgroundHTMLInputStream.cpp (right): https://codereview.chromium.org/2751483005/diff/60001/third_party/WebKit/Source/core/html/parser/BackgroundHTMLInputStream.cpp#newcode84 third_party/WebKit/Source/core/html/parser/BackgroundHTMLInputStream.cpp:84: .size()); // If this ASSERT fires, checkpointIndex is invalid. ...
3 years, 9 months ago (2017-03-16 14:29:54 UTC) #27
dominicc (has gone to gerrit)
On 2017/03/16 at 12:47:23, kouhei wrote: > +dominicc: Do you know if we still have ...
3 years, 9 months ago (2017-03-19 23:04:45 UTC) #30
Hwanseung Lee
@Yoav, kouhei PTAL, thank you.
3 years, 9 months ago (2017-03-21 09:34:14 UTC) #31
Yoav Weiss
On 2017/03/21 09:34:14, Hwanseung Lee wrote: > @Yoav, kouhei > PTAL, thank you. LGTM
3 years, 9 months ago (2017-03-21 09:37:48 UTC) #32
kouhei (in TOK)
lgtm
3 years, 9 months ago (2017-03-21 11:54:11 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2751483005/80001
3 years, 9 months ago (2017-03-21 15:07:25 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/174226) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 9 months ago (2017-03-21 15:09:59 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2751483005/100001
3 years, 9 months ago (2017-03-21 15:19:33 UTC) #40
commit-bot: I haz the power
3 years, 9 months ago (2017-03-21 16:52:18 UTC) #43
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/93578226fe0366d00cf97b5e588e...

Powered by Google App Engine
This is Rietveld 408576698