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

Issue 1840163002: Replace all occurrences of RELEASE_ASSERT in wtf with CHECK. (Closed)

Created:
4 years, 8 months ago by kotenkov
Modified:
4 years, 8 months ago
Reviewers:
haraken, Yuta Kitamura
CC:
chromium-reviews, oilpan-reviews, Mads Ager (chromium), blink-reviews, blink-reviews-wtf_chromium.org, kouhei+heap_chromium.org, Mikhail
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace all occurrences of RELEASE_ASSERT in wtf with CHECK. BUG=596760 Committed: https://crrev.com/d181f524c11e0d456bc48261334beda61e6f852c Cr-Commit-Position: refs/heads/master@{#384213}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Use specialized CHECKs. #

Patch Set 3 : CHECK in StringConcatenate.h. #

Total comments: 2

Patch Set 4 : Use CHECK_NE instead of CHECK. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -87 lines) Patch
M third_party/WebKit/Source/wtf/ArrayBuffer.h View 5 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/wtf/BitArray.h View 1 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/wtf/Deque.h View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/wtf/Functional.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/wtf/HashTable.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/wtf/Optional.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/wtf/PageAllocator.cpp View 1 7 chunks +10 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/wtf/PartitionAlloc.h View 3 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/wtf/PartitionAlloc.cpp View 1 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/wtf/PartitionAllocator.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/wtf/Partitions.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/wtf/TerminatedArrayBuilder.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/wtf/TypedArrayBase.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/wtf/Vector.h View 1 7 chunks +9 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/wtf/WTF.cpp View 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/wtf/dtoa/utils.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/wtf/text/AtomicString.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/wtf/text/CString.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/wtf/text/StringConcatenate.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/StringConcatenate.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/wtf/text/StringImpl.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/StringImpl.cpp View 1 14 chunks +17 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/TextCodecUTF16.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/wtf/text/WTFString.cpp View 1 9 chunks +9 lines, -9 lines 0 comments Download

Messages

Total messages: 27 (9 generated)
kotenkov
Are you accepting CLs, converting from RELEASE_ASSERT to CHECK? I've decided to start small and ...
4 years, 8 months ago (2016-03-29 18:53:12 UTC) #2
haraken
LGTM On 2016/03/29 18:53:12, kotenkov wrote: > Are you accepting CLs, converting from RELEASE_ASSERT to ...
4 years, 8 months ago (2016-03-30 00:41:14 UTC) #3
haraken
4 years, 8 months ago (2016-03-30 00:41:24 UTC) #5
Yuta Kitamura
https://codereview.chromium.org/1840163002/diff/1/third_party/WebKit/Source/wtf/BitArray.h File third_party/WebKit/Source/wtf/BitArray.h (right): https://codereview.chromium.org/1840163002/diff/1/third_party/WebKit/Source/wtf/BitArray.h#newcode46 third_party/WebKit/Source/wtf/BitArray.h:46: CHECK(index < arraySize); I think CHECK_LT is more suitable. ...
4 years, 8 months ago (2016-03-30 03:55:17 UTC) #6
kotenkov
On 2016/03/30 03:55:17, Yuta Kitamura wrote: > https://codereview.chromium.org/1840163002/diff/1/third_party/WebKit/Source/wtf/BitArray.h > File third_party/WebKit/Source/wtf/BitArray.h (right): > > https://codereview.chromium.org/1840163002/diff/1/third_party/WebKit/Source/wtf/BitArray.h#newcode46 ...
4 years, 8 months ago (2016-03-30 05:57:30 UTC) #8
kotenkov
There actually are few RELEASE_ASSERTs: bindings 48 core 80 modules 11 platform 50 web 10 ...
4 years, 8 months ago (2016-03-30 20:12:15 UTC) #9
haraken
On 2016/03/30 20:12:15, kotenkov wrote: > There actually are few RELEASE_ASSERTs: > bindings 48 > ...
4 years, 8 months ago (2016-03-30 23:27:08 UTC) #10
Yuta Kitamura
LGTM modulo CHECK_NE and the removal of NO_RETURN_DUE_TO_CRASH https://codereview.chromium.org/1840163002/diff/40001/third_party/WebKit/Source/wtf/Deque.h File third_party/WebKit/Source/wtf/Deque.h (right): https://codereview.chromium.org/1840163002/diff/40001/third_party/WebKit/Source/wtf/Deque.h#newcode561 third_party/WebKit/Source/wtf/Deque.h:561: CHECK(m_index ...
4 years, 8 months ago (2016-03-31 04:46:14 UTC) #11
kotenkov
On 2016/03/31 04:46:14, Yuta Kitamura wrote: > third_party/WebKit/Source/wtf/Deque.h:561: CHECK(m_index != m_deque->m_end); > CHECK_NE? Done. > ...
4 years, 8 months ago (2016-03-31 05:50:55 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1840163002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1840163002/60001
4 years, 8 months ago (2016-03-31 05:51:38 UTC) #15
Yuta Kitamura
On 2016/03/30 00:41:14, haraken wrote: > I think we can just drop the NO_RETURN_DUE_TO_CRASH (since ...
4 years, 8 months ago (2016-03-31 06:29:14 UTC) #16
kotenkov
On 2016/03/31 06:29:14, Yuta Kitamura wrote: > On 2016/03/30 00:41:14, haraken wrote: > > I ...
4 years, 8 months ago (2016-03-31 06:38:03 UTC) #18
Yuta Kitamura
On 2016/03/31 06:38:03, kotenkov wrote: > On 2016/03/31 06:29:14, Yuta Kitamura wrote: > > On ...
4 years, 8 months ago (2016-03-31 07:04:21 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1840163002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1840163002/60001
4 years, 8 months ago (2016-03-31 07:09:29 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 8 months ago (2016-03-31 07:39:59 UTC) #23
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/d181f524c11e0d456bc48261334beda61e6f852c Cr-Commit-Position: refs/heads/master@{#384213}
4 years, 8 months ago (2016-03-31 07:41:24 UTC) #25
tkent
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/1854033002/ by tkent@chromium.org. ...
4 years, 8 months ago (2016-04-03 17:55:18 UTC) #26
Takashi Toyoshima
4 years, 8 months ago (2016-04-04 10:40:39 UTC) #27
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/1859513002/ by toyoshim@chromium.org.

The reason for reverting is: Caused performance regression..

Powered by Google App Engine
This is Rietveld 408576698