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

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

Issue 256483003: Add DEFINE_STATIC_REF_WILL_BE_PERSISTENT macro (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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/animation/AnimatableValue.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/heap/Handle.h
diff --git a/Source/platform/heap/Handle.h b/Source/platform/heap/Handle.h
index f9754449675465915771ec9fd0a1b7d194badc02..02a552210157a8dbce984288133279d67233ed2a 100644
--- a/Source/platform/heap/Handle.h
+++ b/Source/platform/heap/Handle.h
@@ -795,6 +795,9 @@ template<typename T> PassOwnPtrWillBeRawPtr<T> adoptPtrWillBeNoop(T* ptr)
#define DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(type) // do nothing
#define DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(type) // do nothing
+#define DEFINE_STATIC_REF_WILL_BE_PERSISTENT(type, name, arguments) \
+ DEFINE_STATIC_LOCAL(Persistent<type>, name, arguments)
+
#else // !ENABLE(OILPAN)
template<typename T>
@@ -860,6 +863,9 @@ template<typename T> PassOwnPtrWillBeRawPtr<T> adoptPtrWillBeNoop(T* ptr) { retu
#define DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(type) \
type::~type() { }
+#define DEFINE_STATIC_REF_WILL_BE_PERSISTENT(type, name, arguments) \
+ DEFINE_STATIC_REF(type, name, arguments)
+
#endif // ENABLE(OILPAN)
} // namespace WebCore
« no previous file with comments | « Source/core/animation/AnimatableValue.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698