| Index: Source/platform/heap/Visitor.h
|
| diff --git a/Source/platform/heap/Visitor.h b/Source/platform/heap/Visitor.h
|
| index ffadc80fe99aa42561c757d29f9432d498d39a52..f58a8a1842ad5f5985a82929f94982fdc44525b5 100644
|
| --- a/Source/platform/heap/Visitor.h
|
| +++ b/Source/platform/heap/Visitor.h
|
| @@ -47,7 +47,7 @@
|
| #include "wtf/RefPtr.h"
|
| #include "wtf/TypeTraits.h"
|
| #include "wtf/WeakPtr.h"
|
| -#if ENABLE(GC_TRACING)
|
| +#if GC_PROFILE_DEFINE_CLASSNAME
|
| #include "wtf/text/WTFString.h"
|
| #endif
|
|
|
| @@ -93,7 +93,7 @@ struct GCInfo {
|
| FinalizationCallback m_finalize;
|
| bool m_nonTrivialFinalizer;
|
| bool m_hasVTable;
|
| -#if ENABLE(GC_TRACING)
|
| +#if GC_PROFILE_DEFINE_CLASSNAME
|
| // |m_className| is held as a reference to prevent dtor being called at exit.
|
| const String& m_className;
|
| #endif
|
| @@ -426,7 +426,7 @@ public:
|
| FOR_EACH_TYPED_HEAP(DECLARE_VISITOR_METHODS)
|
| #undef DECLARE_VISITOR_METHODS
|
|
|
| -#if ENABLE(GC_TRACING)
|
| +#if GC_PROFILE_MARKING
|
| void setHostInfo(void* object, const String& name)
|
| {
|
| m_hostObject = object;
|
| @@ -436,7 +436,7 @@ public:
|
|
|
| protected:
|
| virtual void registerWeakCell(void**, WeakPointerCallback) = 0;
|
| -#if ENABLE(GC_TRACING)
|
| +#if GC_PROFILE_MARKING
|
| void* m_hostObject;
|
| String m_hostName;
|
| #endif
|
| @@ -675,7 +675,7 @@ private:
|
| #define WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(TYPE)
|
| #endif
|
|
|
| -#if ENABLE(GC_TRACING)
|
| +#if GC_PROFILE_DEFINE_CLASSNAME
|
| template<typename T>
|
| struct TypenameStringTrait {
|
| static const String& get()
|
| @@ -695,7 +695,7 @@ struct GCInfoAtBase {
|
| FinalizerTrait<T>::finalize,
|
| FinalizerTrait<T>::nonTrivialFinalizer,
|
| WTF::IsPolymorphic<T>::value,
|
| -#if ENABLE(GC_TRACING)
|
| +#if GC_PROFILE_DEFINE_CLASSNAME
|
| TypenameStringTrait<T>::get()
|
| #endif
|
| };
|
|
|