| Index: Source/heap/Handle.h
|
| diff --git a/Source/heap/Handle.h b/Source/heap/Handle.h
|
| index 892123a75418d4a6a3f5118c984cb80d9a3e5110..2df56dd4cdc9545165576a1faff971663c156b2d 100644
|
| --- a/Source/heap/Handle.h
|
| +++ b/Source/heap/Handle.h
|
| @@ -683,6 +683,9 @@ template<typename T> PassOwnPtrWillBeRawPtr<T> adoptPtrWillBeNoop(T* ptr)
|
| }
|
|
|
| #define WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED // do nothing when oilpan is enabled.
|
| +#define DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(type) // do nothing
|
| +#define DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(type) // do nothing
|
| +#define DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(type) // do nothing
|
|
|
| #else // !ENABLE(OILPAN)
|
|
|
| @@ -729,6 +732,17 @@ template<typename T> PassRefPtrWillBeRawPtr<T> adoptRefWillBeRefCountedGarbageCo
|
| template<typename T> PassOwnPtrWillBeRawPtr<T> adoptPtrWillBeNoop(T* ptr) { return adoptPtr(ptr); }
|
|
|
| #define WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED WTF_MAKE_FAST_ALLOCATED
|
| +#define DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(type) \
|
| + public: \
|
| + ~type(); \
|
| + private:
|
| +#define DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(type) \
|
| + public: \
|
| + virtual ~type(); \
|
| + private:
|
| +
|
| +#define DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(type) \
|
| + type::~type() { }
|
|
|
| #endif // ENABLE(OILPAN)
|
|
|
|
|