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

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

Issue 255983003: Oilpan: Move all supplements of Page, Document, and WorkerClients to the managed heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review comments Created 6 years, 8 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
Index: Source/platform/heap/Visitor.h
diff --git a/Source/platform/heap/Visitor.h b/Source/platform/heap/Visitor.h
index c5b1d68c47cd73a082cd1b334ac9b95077293c3d..93baa97efcaa1f1186e4d395ca98690eb440d379 100644
--- a/Source/platform/heap/Visitor.h
+++ b/Source/platform/heap/Visitor.h
@@ -412,6 +412,10 @@ public:
{
return isAlive(member.get());
}
+ template<typename T> inline bool isAlive(RawPtr<T> ptr)
+ {
+ return isAlive(ptr.get());
+ }
#ifndef NDEBUG
void checkGCInfo(const void*, const GCInfo*);
@@ -641,13 +645,13 @@ public:
#define USING_GARBAGE_COLLECTED_MIXIN(TYPE) \
public: \
- virtual void adjustAndMark(Visitor* visitor) const OVERRIDE \
+ virtual void adjustAndMark(WebCore::Visitor* visitor) const OVERRIDE \
{ \
typedef WTF::IsSubclassOfTemplate<TYPE, WebCore::GarbageCollected> IsSubclassOfGarbageCollected; \
COMPILE_ASSERT(IsSubclassOfGarbageCollected::value, OnlyGarbageCollectedObjectsCanHaveGarbageCollectedMixins); \
- visitor->mark(this, &TraceTrait<TYPE>::trace);\
+ visitor->mark(this, &WebCore::TraceTrait<TYPE>::trace); \
} \
- virtual bool isAlive(Visitor* visitor) const OVERRIDE \
+ virtual bool isAlive(WebCore::Visitor* visitor) const OVERRIDE \
{ \
return visitor->isAlive(this); \
}

Powered by Google App Engine
This is Rietveld 408576698