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

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

Issue 783823002: Oilpan: enable eager tracing. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Tidying + add a test for marking stack fallback Created 6 years 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 | Source/platform/heap/HeapLinkedStack.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/heap/Handle.h
diff --git a/Source/platform/heap/Handle.h b/Source/platform/heap/Handle.h
index 7f678b1cb31991f28d02fc0de6b7404ecf942952..8e85ebd711c7ceab95ade6c0848bc981810a4a0d 100644
--- a/Source/platform/heap/Handle.h
+++ b/Source/platform/heap/Handle.h
@@ -976,49 +976,55 @@ public:
template<typename T, typename U, typename V, typename W, typename X>
class TraceEagerlyTrait<HeapHashMap<T, U, V, W, X> > {
public:
- static const bool value = IS_EAGERLY_TRACED_HEAP_COLLECTION(T) || IS_EAGERLY_TRACED_HEAP_COLLECTION(U);
+ static const bool value = MARKER_EAGER_TRACING || TraceEagerlyTrait<T>::value || TraceEagerlyTrait<U>::value;
};
template<typename T, typename U, typename V>
class TraceEagerlyTrait<HeapHashSet<T, U, V> > {
public:
- static const bool value = IS_EAGERLY_TRACED_HEAP_COLLECTION(T);
+ static const bool value = MARKER_EAGER_TRACING || TraceEagerlyTrait<T>::value;
};
template<typename T, typename U, typename V>
class TraceEagerlyTrait<HeapLinkedHashSet<T, U, V> > {
public:
- static const bool value = IS_EAGERLY_TRACED_HEAP_COLLECTION(T);
+ static const bool value = MARKER_EAGER_TRACING || TraceEagerlyTrait<T>::value;
};
template<typename T, size_t inlineCapacity, typename U>
class TraceEagerlyTrait<HeapListHashSet<T, inlineCapacity, U> > {
public:
- static const bool value = IS_EAGERLY_TRACED_HEAP_COLLECTION(T);
+ static const bool value = MARKER_EAGER_TRACING || TraceEagerlyTrait<T>::value;
+};
+
+template<typename T, size_t inlineCapacity>
+class TraceEagerlyTrait<WTF::ListHashSetNode<T, HeapListHashSetAllocator<T, inlineCapacity>>> {
+public:
+ static const bool value = false;
};
template<typename T, size_t inlineCapacity>
class TraceEagerlyTrait<HeapVector<T, inlineCapacity> > {
public:
- static const bool value = IS_EAGERLY_TRACED_HEAP_COLLECTION(T);
+ static const bool value = MARKER_EAGER_TRACING || TraceEagerlyTrait<T>::value;
};
template<typename T, typename U>
class TraceEagerlyTrait<HeapVectorBacking<T, U> > {
public:
- static const bool value = IS_EAGERLY_TRACED_HEAP_COLLECTION(T);
+ static const bool value = MARKER_EAGER_TRACING || TraceEagerlyTrait<T>::value;
};
template<typename T, size_t inlineCapacity>
class TraceEagerlyTrait<HeapDeque<T, inlineCapacity> > {
public:
- static const bool value = IS_EAGERLY_TRACED_HEAP_COLLECTION(T);
+ static const bool value = MARKER_EAGER_TRACING || TraceEagerlyTrait<T>::value;
};
template<typename T, typename U, typename V>
class TraceEagerlyTrait<HeapHashCountedSet<T, U, V> > {
public:
- static const bool value = IS_EAGERLY_TRACED_HEAP_COLLECTION(T);
+ static const bool value = MARKER_EAGER_TRACING || TraceEagerlyTrait<T>::value;
};
} // namespace blink
« no previous file with comments | « no previous file | Source/platform/heap/HeapLinkedStack.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698