Chromium Code Reviews| Index: Source/platform/heap/ThreadState.h |
| diff --git a/Source/platform/heap/ThreadState.h b/Source/platform/heap/ThreadState.h |
| index c94e4b68d885d3f960573290a905b3df38ead42b..d105b2162a6ca01cb51e5f066b725734f6fe0665 100644 |
| --- a/Source/platform/heap/ThreadState.h |
| +++ b/Source/platform/heap/ThreadState.h |
| @@ -161,6 +161,16 @@ template<typename U> class ThreadingTrait<const U> : public ThreadingTrait<U> { |
| } \ |
| using UsingPreFinazlizerMacroNeedsTrailingSemiColon = char |
| +#if ENABLE(OILPAN) |
| +#define WILL_BE_USING_PRE_FINALIZER(Class, method) USING_PRE_FINALIZER(Class, method) |
| +#define WILL_REGISTER_PREFINALIZER(objectPointer) ThreadState::current()->registerPreFinalizer(*objectPointer) |
| +#define WILL_UNREGISTER_PREFINALIZER(objectPointer) ThreadState::current()->unregisterPreFinalizer(*objectPointer) |
|
haraken
2015/01/26 01:39:42
I'm not quite sure how helpful these macros are th
sof
2015/01/26 10:06:57
ok, i'm fine with waiting until a later juncture w
|
| +#else |
| +#define WILL_BE_USING_PRE_FINALIZER(Class, method) |
| +#define WILL_REGISTER_PREFINALIZER(objectPointer) |
| +#define WILL_UNREGISTER_PREFINALIZER(objectPointer) |
| +#endif |
| + |
| // List of typed heaps. The list is used to generate the implementation |
| // of typed heap related methods. |
| // |