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

Issue 2065443002: Rename and improve "traceable" templates. (Closed)

Created:
4 years, 6 months ago by sof
Modified:
4 years, 6 months ago
Reviewers:
oilpan-reviews, haraken
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

Rename and improve "traceable" templates. The NeedsTracing<T>::value expression would previously return true if T had a trace() method or T == Member<U>. It would not be true if T == WeakMember<U>; something that was convenient when using NeedsTracing<> in connection with hash table backing stores, needing to determine whether to trace the elements of the table, but not if they were weak references & delegate that to weak processing. As NeedsTracing<T> has grown an increasing number of uses besides the handling of backing store tracing, where exempting WeakMember<> makes no great sense, it is time to alter its meaning to accommodate those uses better. And at the same time rename it to follow the various other predicate templates we provide over types. So, NeedsTracing<T> => IsTraceable<T> (includes weak) NeedsTracingLazily<T> => IsTraceableInCollection<T> (excludes weak) NeedsTracingTrait<Trait> => IsTraceableInCollectionTrait<T> Along with these changes, tidy up the static_assert() error messages in a few places. R= BUG= Committed: https://crrev.com/87a7aa55418719988c0267efcb83a6d83233ea2a Cr-Commit-Position: refs/heads/master@{#399389}

Patch Set 1 #

Patch Set 2 : fix HeapTest compilation #

Patch Set 3 : address TraceTraits FIXME #

Patch Set 4 : comment rewording #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -91 lines) Patch
M third_party/WebKit/Source/platform/heap/HeapAllocator.h View 10 chunks +11 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/HeapTest.cpp View 1 4 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/Member.h View 2 chunks +8 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/TraceTraits.h View 1 2 20 chunks +37 lines, -45 lines 0 comments Download
M third_party/WebKit/Source/wtf/Deque.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/wtf/HashTable.h View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/wtf/HashTraits.h View 1 2 3 2 chunks +8 lines, -4 lines 2 comments Download
M third_party/WebKit/Source/wtf/LinkedHashSet.h View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/wtf/TypeTraits.h View 2 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/wtf/Vector.h View 4 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/wtf/VectorTraits.h View 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 14 (6 generated)
sof
please take a look.
4 years, 6 months ago (2016-06-11 20:39:04 UTC) #3
haraken
LGTM https://codereview.chromium.org/2065443002/diff/60001/third_party/WebKit/Source/wtf/HashTraits.h File third_party/WebKit/Source/wtf/HashTraits.h (left): https://codereview.chromium.org/2065443002/diff/60001/third_party/WebKit/Source/wtf/HashTraits.h#oldcode65 third_party/WebKit/Source/wtf/HashTraits.h:65: struct NeedsTracingLazily { Nit: I'm okay with keeping ...
4 years, 6 months ago (2016-06-12 07:11:31 UTC) #5
sof
https://codereview.chromium.org/2065443002/diff/60001/third_party/WebKit/Source/wtf/HashTraits.h File third_party/WebKit/Source/wtf/HashTraits.h (left): https://codereview.chromium.org/2065443002/diff/60001/third_party/WebKit/Source/wtf/HashTraits.h#oldcode65 third_party/WebKit/Source/wtf/HashTraits.h:65: struct NeedsTracingLazily { On 2016/06/12 07:11:31, haraken wrote: > ...
4 years, 6 months ago (2016-06-12 07:29:44 UTC) #6
haraken
On 2016/06/12 07:29:44, sof wrote: > https://codereview.chromium.org/2065443002/diff/60001/third_party/WebKit/Source/wtf/HashTraits.h > File third_party/WebKit/Source/wtf/HashTraits.h (left): > > https://codereview.chromium.org/2065443002/diff/60001/third_party/WebKit/Source/wtf/HashTraits.h#oldcode65 > ...
4 years, 6 months ago (2016-06-12 08:59:23 UTC) #7
sof
On 2016/06/12 08:59:23, haraken wrote: > On 2016/06/12 07:29:44, sof wrote: > > > https://codereview.chromium.org/2065443002/diff/60001/third_party/WebKit/Source/wtf/HashTraits.h ...
4 years, 6 months ago (2016-06-12 14:30:51 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2065443002/60001
4 years, 6 months ago (2016-06-12 15:11:52 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 6 months ago (2016-06-12 15:15:55 UTC) #12
commit-bot: I haz the power
4 years, 6 months ago (2016-06-12 15:17:52 UTC) #14
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/87a7aa55418719988c0267efcb83a6d83233ea2a
Cr-Commit-Position: refs/heads/master@{#399389}

Powered by Google App Engine
This is Rietveld 408576698