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

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

Issue 799453003: Oilpan: fix Windows build after r187674. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add needsTracing argument to TraceCompatibilityAdaptor<> 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 | « Source/platform/heap/Handle.h ('k') | Source/platform/heap/Visitor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/heap/InlinedGlobalMarkingVisitor.h
diff --git a/Source/platform/heap/InlinedGlobalMarkingVisitor.h b/Source/platform/heap/InlinedGlobalMarkingVisitor.h
index cf76a98b71f4166a4638cec8940d646f0ef5fdbd..7f4ee90f7a6091462cd2730a1b5ec760ca5fc3f9 100644
--- a/Source/platform/heap/InlinedGlobalMarkingVisitor.h
+++ b/Source/platform/heap/InlinedGlobalMarkingVisitor.h
@@ -75,9 +75,21 @@ private:
Visitor* m_visitor;
};
+// If T does not support trace().
+template <typename T>
+struct TraceCompatibilityAdaptor<T, false, false> {
+ inline static void trace(blink::Visitor*, T*)
+ {
+ }
+
+ inline static void trace(InlinedGlobalMarkingVisitor, T*)
+ {
+ }
+};
+
// If T does not support trace(InlinedGlobalMarkingVisitor).
template <typename T>
-struct TraceCompatibilityAdaptor<T, false> {
+struct TraceCompatibilityAdaptor<T, true, false> {
inline static void trace(blink::Visitor* visitor, T* self)
{
self->trace(visitor);
@@ -92,7 +104,7 @@ struct TraceCompatibilityAdaptor<T, false> {
// If T supports trace(InlinedGlobalMarkingVisitor).
template <typename T>
-struct TraceCompatibilityAdaptor<T, true> {
+struct TraceCompatibilityAdaptor<T, true, true> {
inline static void trace(blink::Visitor* visitor, T* self)
{
if (visitor->isGlobalMarkingVisitor()) {
« no previous file with comments | « Source/platform/heap/Handle.h ('k') | Source/platform/heap/Visitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698