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 |