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

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

Issue 383743002: Oilpan: GC profiling. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 5 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 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
};

Powered by Google App Engine
This is Rietveld 408576698