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

Unified Diff: Source/heap/Visitor.h

Issue 22887044: [oilpan] Make the oilpan branch build on Mac. (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Add FIXME. Created 7 years, 4 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 | « Source/heap/Heap.cpp ('k') | Source/heap/atomicops/atomicops.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/heap/Visitor.h
diff --git a/Source/heap/Visitor.h b/Source/heap/Visitor.h
index 27be4b5eb8c283ce412df1925a9dd023ed98cdc0..bb995eef03f3a6f20d1634274f3ca6bc49e350e0 100644
--- a/Source/heap/Visitor.h
+++ b/Source/heap/Visitor.h
@@ -84,7 +84,7 @@ public:
}
#ifndef NDEBUG
- static void check(Visitor*, const T*);
+ static void checkTypeMarker(Visitor*, const T*);
#endif
};
@@ -102,7 +102,7 @@ public:
if (!t)
return;
#ifndef NDEBUG
- AcceptTrait<T>::check(this, t);
+ AcceptTrait<T>::checkTypeMarker(this, t);
#endif
AcceptTrait<T>::visit(this, t);
}
@@ -114,7 +114,7 @@ public:
if (!t)
return;
#ifndef NDEBUG
- AcceptTrait<T>::check(this, t.raw());
+ AcceptTrait<T>::checkTypeMarker(this, t.raw());
#endif
AcceptTrait<T>::visit(this, t.raw());
}
@@ -169,7 +169,7 @@ public:
};
#ifndef NDEBUG
-template<typename T> void AcceptTrait<T>::check(Visitor* visitor, const T* t)
+template<typename T> void AcceptTrait<T>::checkTypeMarker(Visitor* visitor, const T* t)
{
visitor->checkTypeMarker(const_cast<T*>(t), getTypeMarker());
}
@@ -197,7 +197,7 @@ inline void doNothingAccept(Visitor*, void*)
class AcceptTrait<type> { \
public: \
static void accept(Visitor*, void*) { } \
- static void check(Visitor*, const void*) { } \
+ static void checkTypeMarker(Visitor*, const void*) { } \
static void visit(Visitor* v, type* p) { \
v->visit(p, &accept); \
} \
« no previous file with comments | « Source/heap/Heap.cpp ('k') | Source/heap/atomicops/atomicops.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698