Chromium Code Reviews| Index: Source/heap/Handle.h |
| diff --git a/Source/heap/Handle.h b/Source/heap/Handle.h |
| index dfebb29c453e3d082122670c9dcd935ffbc26713..5ba3434ccc57c9639d6f68defd62be4d5dd40e70 100644 |
| --- a/Source/heap/Handle.h |
| +++ b/Source/heap/Handle.h |
| @@ -682,6 +682,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_NONE(type) // do nothing |
| +#define DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_NONE(type) // do nothing |
| +#define DEFINE_EMPTY_DESTRUCTOR_WILL_BY_NONE(type) // do nothing |
|
tkent
2014/03/13 01:12:58
WILL_BY -> WILL_BE
zerny-chromium
2014/03/13 06:44:55
Oh. Thanks for spotting that!
|
| #else // !ENABLE(OILPAN) |
| @@ -727,6 +730,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_NONE(type) \ |
| + public: \ |
| + ~type(); \ |
| + private: |
| +#define DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_NONE(type) \ |
| + public: \ |
| + virtual ~type(); \ |
| + private: |
| + |
| +#define DEFINE_EMPTY_DESTRUCTOR_WILL_BY_NONE(type) \ |
| + type::~type() { } |
| #endif // ENABLE(OILPAN) |