| Index: Source/platform/heap/Visitor.h
|
| diff --git a/Source/platform/heap/Visitor.h b/Source/platform/heap/Visitor.h
|
| index 60cca5cd57156ff459003a7945c3c9fef89c6f21..86d6610bb9c94e462d2c14e0ad67f9d091ff7b41 100644
|
| --- a/Source/platform/heap/Visitor.h
|
| +++ b/Source/platform/heap/Visitor.h
|
| @@ -42,10 +42,8 @@
|
| #include "wtf/HashMap.h"
|
| #include "wtf/HashTraits.h"
|
| #include "wtf/TypeTraits.h"
|
| -#if ENABLE(GC_PROFILING)
|
| #include "wtf/InstanceCounter.h"
|
| #include "wtf/text/WTFString.h"
|
| -#endif
|
|
|
| namespace blink {
|
|
|
| @@ -396,6 +394,14 @@ public:
|
|
|
| inline MarkingMode markingMode() const { return m_markingMode; }
|
|
|
| + void setHostInfo(void* object, const String& name)
|
| + {
|
| + m_hostObject = object;
|
| + m_hostName = name;
|
| + }
|
| +
|
| + inline bool isGlobalMarkingVisitor() const { return m_isGlobalMarkingVisitor; }
|
| +
|
| protected:
|
| explicit Visitor(MarkingMode markingMode)
|
| : m_markingMode(markingMode)
|
| @@ -403,6 +409,9 @@ protected:
|
|
|
| virtual void registerWeakCellWithCallback(void**, WeakCallback) = 0;
|
|
|
| + void* m_hostObject;
|
| + String m_hostName;
|
| +
|
| private:
|
| static Visitor* fromHelper(VisitorHelper<Visitor>* helper) { return static_cast<Visitor*>(helper); }
|
|
|
| @@ -410,7 +419,6 @@ private:
|
| bool m_isGlobalMarkingVisitor;
|
| };
|
|
|
| -#if ENABLE(GC_PROFILING)
|
| template<typename T>
|
| struct TypenameStringTrait {
|
| static const String& get()
|
| @@ -419,7 +427,6 @@ struct TypenameStringTrait {
|
| return typenameString;
|
| }
|
| };
|
| -#endif
|
|
|
| } // namespace blink
|
|
|
|
|