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

Unified Diff: Source/heap/Heap.h

Issue 171843002: [oilpan] Remove GC_INFO_{DEFINE,DECLARE} macros (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: rebased Created 6 years, 10 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/core/css/CSSValuePool.h ('k') | Source/heap/Visitor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/heap/Heap.h
diff --git a/Source/heap/Heap.h b/Source/heap/Heap.h
index 5f8740352c90e616c5ca78cb2a043dcc3e91f06f..769fd8842ed1b779c3a64e178102065772176a19 100644
--- a/Source/heap/Heap.h
+++ b/Source/heap/Heap.h
@@ -929,6 +929,9 @@ public:
protected:
GarbageCollected() { ASSERT(ThreadStateFor<ThreadingTrait<T>::Affinity>::State()->contains(reinterpret_cast<Address>(this))); }
~GarbageCollected() { }
+
+public:
+ typedef T GarbageCollectedBase;
};
// Forward declaration.
@@ -953,6 +956,7 @@ protected:
{
static_cast<T*>(this)->~T();
}
+ template<typename Any> friend struct FinalizerTrait;
GarbageCollectedFinalized() { }
~GarbageCollectedFinalized() { }
« no previous file with comments | « Source/core/css/CSSValuePool.h ('k') | Source/heap/Visitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698