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

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: using namespace WebCore 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
« no previous file with comments | « Source/platform/heap/Handle.h ('k') | Source/web/ContextFeaturesClientImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/heap/Visitor.h
diff --git a/Source/platform/heap/Visitor.h b/Source/platform/heap/Visitor.h
index 4e809d5df3e9175d6432ad177c2b4100349d3563..a1a328c4ce96522c20e3688fe59387da9180626b 100644
--- a/Source/platform/heap/Visitor.h
+++ b/Source/platform/heap/Visitor.h
@@ -413,6 +413,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*);
@@ -642,13 +646,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); \
}
« no previous file with comments | « Source/platform/heap/Handle.h ('k') | Source/web/ContextFeaturesClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698