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

Issue 807003004: Templatize visitor arguments for TraceTrait mark and trace methods. (Closed)

Created:
6 years ago by kouhei (in TOK)
Modified:
5 years, 12 months ago
CC:
aandrey+blink_chromium.org, Mads Ager (chromium), blink-reviews, blink-reviews-wtf_chromium.org, kouhei+heap_chromium.org, Mikhail, oilpan-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Templatize visitor arguments for TraceTrait mark and trace methods. This CL replaces Visitor* in TraceTrait<T>::{mark,trace} methods arguments to template parameter VisitorDispatcher. This is to prepare for InlinedGlobalMarkingVisitor implementaion, so that those methods can also be used to dispatch TraceTrait<T>::mark(InlinedGlobalMarkingVisitor) in addition to the current TraceTrait<T>::mark(Visitor*) usage. BUG=420515 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=187674

Patch Set 1 #

Patch Set 2 : fix TypeTraits #

Patch Set 3 : add more asserts #

Patch Set 4 : attempt to fix msvc #

Patch Set 5 : use __if_exists #

Patch Set 6 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -47 lines) Patch
M Source/platform/heap/Heap.h View 1 2 3 4 5 17 chunks +53 lines, -24 lines 0 comments Download
M Source/platform/heap/HeapTest.cpp View 1 2 3 4 5 3 chunks +4 lines, -1 line 0 comments Download
M Source/platform/heap/Visitor.h View 1 2 3 4 5 5 chunks +12 lines, -7 lines 0 comments Download
M Source/wtf/Deque.h View 3 chunks +6 lines, -5 lines 0 comments Download
M Source/wtf/HashTable.h View 3 chunks +4 lines, -3 lines 0 comments Download
M Source/wtf/TypeTraits.h View 1 2 3 4 2 chunks +13 lines, -4 lines 0 comments Download
M Source/wtf/Vector.h View 2 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 20 (8 generated)
kouhei (in TOK)
PTAL. This is split from https://codereview.chromium.org/803443002/
6 years ago (2014-12-17 03:20:43 UTC) #2
haraken
LGTM
6 years ago (2014-12-17 03:43:14 UTC) #3
kouhei (in TOK)
erik.corry: Would you take a look?
6 years ago (2014-12-17 04:38:36 UTC) #7
kouhei (in TOK)
jochen: Would you take a look at wtf/ changes?
6 years ago (2014-12-19 09:53:38 UTC) #9
jochen (gone - plz use gerrit)
lgtm
6 years ago (2014-12-22 14:20:22 UTC) #11
kouhei (in TOK)
Thanks!
6 years ago (2014-12-24 06:26:13 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/807003004/100001
6 years ago (2014-12-24 06:26:57 UTC) #14
commit-bot: I haz the power
Committed patchset #6 (id:100001) as https://src.chromium.org/viewvc/blink?view=rev&revision=187674
5 years, 12 months ago (2014-12-24 07:52:39 UTC) #15
sof
Breaks MSVC compilation, http://build.chromium.org/p/chromium.webkit/builders/WebKit%20Win%20Oilpan%20%28dbg%29/builds/4695 (had a go fixing it in https://codereview.chromium.org/799453003/ , but __if_exists(T::trace) handling ...
5 years, 12 months ago (2014-12-24 15:11:57 UTC) #17
kouhei (in TOK)
On 2014/12/24 15:11:57, sof wrote: > Breaks MSVC compilation, > > > http://build.chromium.org/p/chromium.webkit/builders/WebKit%20Win%20Oilpan%20%28dbg%29/builds/4695 > > ...
5 years, 12 months ago (2014-12-25 01:36:27 UTC) #18
kouhei (in TOK)
A revert of this CL (patchset #6 id:100001) has been created in https://codereview.chromium.org/828453003/ by kouhei@chromium.org. ...
5 years, 12 months ago (2014-12-25 01:39:10 UTC) #19
sof
5 years, 12 months ago (2014-12-25 13:43:39 UTC) #20
Message was sent while issue was closed.
On 2014/12/25 01:36:27, kouhei wrote:
> On 2014/12/24 15:11:57, sof wrote:
> > Breaks MSVC compilation, 
> > 
> > 
> >
>
http://build.chromium.org/p/chromium.webkit/builders/WebKit%20Win%20Oilpan%20...
> > 
> > (had a go fixing it in https://codereview.chromium.org/799453003/ , but
> > __if_exists(T::trace) handling over "const char*" is unexpected.)
> 
> Thanks for noticing.
> Let me revert this for now.

Thanks for doing that; I'm not convinced there is a workable solution for
<=VS2013 if this wants to match against a non-public trace() method.

Powered by Google App Engine
This is Rietveld 408576698