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

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

Issue 383743002: Oilpan: GC profiling. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: removed Profiling.h 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 ed9bb1256b950271dafaead45dfcaa11781408cb..1eeb64857d9d9fd2f07645656e80e6356b0c0b37 100644
--- a/Source/platform/heap/Visitor.h
+++ b/Source/platform/heap/Visitor.h
@@ -43,7 +43,7 @@
#include "wtf/RefPtr.h"
#include "wtf/TypeTraits.h"
#include "wtf/WeakPtr.h"
-#if ENABLE(GC_TRACING)
+#if ENABLE(GC_PROFILING)
#include "wtf/text/WTFString.h"
#endif
@@ -89,7 +89,7 @@ struct GCInfo {
FinalizationCallback m_finalize;
bool m_nonTrivialFinalizer;
bool m_hasVTable;
-#if ENABLE(GC_TRACING)
+#if ENABLE(GC_PROFILING)
// |m_className| is held as a reference to prevent dtor being called at exit.
const String& m_className;
#endif
@@ -405,7 +405,7 @@ public:
FOR_EACH_TYPED_HEAP(DECLARE_VISITOR_METHODS)
#undef DECLARE_VISITOR_METHODS
-#if ENABLE(GC_TRACING)
+#if ENABLE(GC_PROFILE_MARKING)
void setHostInfo(void* object, const String& name)
{
m_hostObject = object;
@@ -415,7 +415,7 @@ public:
protected:
virtual void registerWeakCell(void**, WeakPointerCallback) = 0;
-#if ENABLE(GC_TRACING)
+#if ENABLE(GC_PROFILE_MARKING)
void* m_hostObject;
String m_hostName;
#endif
@@ -585,7 +585,7 @@ private:
#define WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(TYPE)
#endif
-#if ENABLE(GC_TRACING)
+#if ENABLE(GC_PROFILING)
template<typename T>
struct TypenameStringTrait {
static const String& get()
@@ -605,7 +605,7 @@ struct GCInfoAtBase {
FinalizerTrait<T>::finalize,
FinalizerTrait<T>::nonTrivialFinalizer,
WTF::IsPolymorphic<T>::value,
-#if ENABLE(GC_TRACING)
+#if ENABLE(GC_PROFILING)
TypenameStringTrait<T>::get()
#endif
};

Powered by Google App Engine
This is Rietveld 408576698