Chromium Code Reviews| 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*) { } \ |
|
Erik Corry
2013/08/23 11:20:19
These backslashes are kinda messy.
|
| static void visit(Visitor* v, type* p) { \ |
| v->visit(p, &accept); \ |
| } \ |