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

Issue 2585673002: Replace ASSERT, ENABLE(ASSERT), and ASSERT_NOT_REACHED in wtf (Closed)

Created:
4 years ago by tkent
Modified:
4 years ago
Reviewers:
Yuta Kitamura
CC:
blink-reviews, blink-reviews-wtf_chromium.org, chromium-reviews, haraken, jshin+watch_chromium.org, Mikhail
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace ASSERT, ENABLE(ASSERT), and ASSERT_NOT_REACHED in wtf with DCHECK_op, DCHECK_IS_ON(), and NOTREACHED respectively. This CL added some functions to WTF::HashTable to reduce '#if DCHECK_IS_ON()'. UNIMPLEMENTED macro in OffscreenCanvasRenderingContext2D.cpp is removed because it conflicts to utils.h and is not used. This CL has no behavior changes. BUG=596760 Committed: https://crrev.com/03e415cffc61351a6b97d069aedbb22edcfc8aec Cr-Commit-Position: refs/heads/master@{#439409}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove one of UNIMPLEMENTED macros #

Patch Set 3 : Fix an Asan issue with LinkedHashSetNodeBase::unlink #

Unified diffs Side-by-side diffs Delta from patch set Stats (+441 lines, -435 lines) Patch
M third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp View 1 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/wtf/ASCIICType.h View 2 chunks +5 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/wtf/Atomics.h View 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/wtf/BitVector.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/wtf/BitVector.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/wtf/BloomFilter.h View 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/wtf/DateMath.cpp View 5 chunks +7 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/wtf/Deque.h View 6 chunks +11 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/wtf/DoublyLinkedList.h View 5 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/wtf/HashCountedSet.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/wtf/HashMapTest.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/wtf/HashTable.h View 33 chunks +71 lines, -80 lines 0 comments Download
M third_party/WebKit/Source/wtf/HexNumber.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/wtf/InstanceCounter.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/wtf/LinkedHashSet.h View 1 2 10 chunks +30 lines, -26 lines 0 comments Download
M third_party/WebKit/Source/wtf/LinkedStack.h View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/wtf/ListHashSet.h View 11 chunks +37 lines, -40 lines 0 comments Download
M third_party/WebKit/Source/wtf/MathExtras.h View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/wtf/RefCounted.h View 4 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/wtf/SizeLimits.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/wtf/StdLibExtras.h View 4 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/wtf/StringHasher.h View 4 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/wtf/TerminatedArrayBuilder.h View 3 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/wtf/ThreadRestrictionVerifier.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/wtf/ThreadSpecific.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/wtf/ThreadingPrimitives.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/wtf/TreeNode.h View 5 chunks +12 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/wtf/Vector.h View 1 32 chunks +52 lines, -51 lines 0 comments Download
M third_party/WebKit/Source/wtf/allocator/PartitionAllocator.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/wtf/allocator/Partitions.h View 1 chunk +5 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/wtf/allocator/Partitions.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/wtf/dtoa.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/wtf/dtoa/diy-fp.h View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/wtf/dtoa/double.h View 3 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/wtf/dtoa/double-conversion.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/wtf/dtoa/utils.h View 7 chunks +18 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/ASCIIFastPath.h View 4 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/IntegerToStringConversion.h View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/StringBuffer.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/wtf/text/StringConcatenate.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/wtf/text/StringHash.h View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/StringImpl.h View 4 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/StringImpl.cpp View 16 chunks +26 lines, -21 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/StringImplCF.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/StringOperators.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/wtf/text/StringStatics.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/TextCodec.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/wtf/text/TextCodecICU.cpp View 4 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/TextCodecUTF16.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/wtf/text/TextCodecUTF8.cpp View 7 chunks +11 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/TextEncoding.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/wtf/text/TextEncodingRegistry.cpp View 4 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/UTF8.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/WTFString.h View 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/WTFString.cpp View 6 chunks +13 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/icu/CollatorICU.cpp View 3 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/wtf/typed_arrays/ArrayBuffer.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/wtf/typed_arrays/ArrayBuffer.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferBuilder.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferView.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/wtf/typed_arrays/ArrayPiece.cpp View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 34 (26 generated)
tkent
yutak@, would you review this please?
4 years ago (2016-12-16 05:53:28 UTC) #3
Yuta Kitamura
LGTM https://codereview.chromium.org/2585673002/diff/1/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp File third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp (right): https://codereview.chromium.org/2585673002/diff/1/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp#newcode19 third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp:19: #define UNIMPLEMENTED NOTREACHED Is this used anywhere?
4 years ago (2016-12-16 06:12:39 UTC) #7
tkent
https://codereview.chromium.org/2585673002/diff/1/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp File third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp (right): https://codereview.chromium.org/2585673002/diff/1/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp#newcode19 third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp:19: #define UNIMPLEMENTED NOTREACHED On 2016/12/16 at 06:12:39, Yuta Kitamura ...
4 years ago (2016-12-16 06:16:55 UTC) #8
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/2585673002/40001
4 years ago (2016-12-16 09:32:02 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/280986)
4 years ago (2016-12-16 10:48:06 UTC) #22
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/2585673002/60001
4 years ago (2016-12-19 04:21:49 UTC) #29
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years ago (2016-12-19 04:28:43 UTC) #32
commit-bot: I haz the power
4 years ago (2016-12-19 04:32:37 UTC) #34
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/03e415cffc61351a6b97d069aedbb22edcfc8aec
Cr-Commit-Position: refs/heads/master@{#439409}

Powered by Google App Engine
This is Rietveld 408576698