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

Unified Diff: Source/platform/heap/Heap.h

Issue 271443004: Oilpan: fix gc_tracing compilation after r173313. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/heap/Heap.h
diff --git a/Source/platform/heap/Heap.h b/Source/platform/heap/Heap.h
index ad072dff694c80c8054213b4e0d7342b8c1976ca..e464e89dcfb4c2596f1cc1f532ebc3f2c16f394c 100644
--- a/Source/platform/heap/Heap.h
+++ b/Source/platform/heap/Heap.h
@@ -1731,10 +1731,15 @@ template<typename ValueArg, size_t inlineCapacity, typename U>
struct GCInfoTrait<ListHashSet<ValueArg, inlineCapacity, U, HeapListHashSetAllocator<ValueArg, inlineCapacity> > > {
static const GCInfo* get()
{
+ typedef WTF::ListHashSet<ValueArg, inlineCapacity, U, HeapListHashSetAllocator<ValueArg, inlineCapacity> > TargetType;
static const GCInfo info = {
- TraceTrait<ListHashSet<ValueArg, inlineCapacity, U, HeapListHashSetAllocator<ValueArg, inlineCapacity> > >::trace,
+ TraceTrait<TargetType>::trace,
0,
- false // ListHashSet needs no finalization though its backing might.
+ false, // ListHashSet needs no finalization though its backing might.
+ false, // no vtable.
+#if ENABLE(GC_TRACING)
+ TypenameStringTrait<TargetType>::get()
+#endif
};
return &info;
}
@@ -1744,10 +1749,15 @@ template<typename T, typename Allocator>
struct GCInfoTrait<WTF::ListHashSetNode<T, Allocator> > {
static const GCInfo* get()
{
+ typedef WTF::ListHashSetNode<T, Allocator> TargetType;
static const GCInfo info = {
- TraceTrait<WTF::ListHashSetNode<T, Allocator> >::trace,
- WTF::ListHashSetNode<T, Allocator>::finalize,
- WTF::HashTraits<T>::needsDestruction // The node needs destruction if its data does.
+ TraceTrait<TargetType>::trace,
+ TargetType::finalize,
+ WTF::HashTraits<T>::needsDestruction, // The node needs destruction if its data does.
+ false, // no vtable.
+#if ENABLE(GC_TRACING)
+ TypenameStringTrait<TargetType>::get()
+#endif
};
return &info;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698