| Index: third_party/WebKit/Source/platform/heap/PersistentNode.h
|
| diff --git a/third_party/WebKit/Source/platform/heap/PersistentNode.h b/third_party/WebKit/Source/platform/heap/PersistentNode.h
|
| index f6ebddbfeca63fea2fd166576e6028f3a785378b..5fb806f8785784d323f997af1a5ba8c6a76a9b93 100644
|
| --- a/third_party/WebKit/Source/platform/heap/PersistentNode.h
|
| +++ b/third_party/WebKit/Source/platform/heap/PersistentNode.h
|
| @@ -7,6 +7,7 @@
|
|
|
| #include "platform/PlatformExport.h"
|
| #include "platform/heap/ThreadState.h"
|
| +#include "wtf/Allocator.h"
|
| #include "wtf/Assertions.h"
|
| #include "wtf/MainThread.h"
|
| #include "wtf/ThreadingPrimitives.h"
|
| @@ -16,6 +17,7 @@ namespace blink {
|
| class CrossThreadPersistentRegion;
|
|
|
| class PersistentNode final {
|
| + DISALLOW_NEW();
|
| public:
|
| PersistentNode()
|
| : m_self(nullptr)
|
| @@ -96,6 +98,7 @@ private:
|
| };
|
|
|
| struct PersistentNodeSlots final {
|
| + USING_FAST_MALLOC(PersistentNodeSlots);
|
| private:
|
| static const int slotCount = 256;
|
| PersistentNodeSlots* m_next;
|
| @@ -109,6 +112,7 @@ private:
|
| // a predefined number of PersistentNodes. You can call allocatePersistentNode/
|
| // freePersistentNode to allocate/free a PersistentNode on the region.
|
| class PLATFORM_EXPORT PersistentRegion final {
|
| + USING_FAST_MALLOC(PersistentRegion);
|
| public:
|
| PersistentRegion()
|
| : m_freeListHead(nullptr)
|
| @@ -159,6 +163,7 @@ private:
|
| };
|
|
|
| class CrossThreadPersistentRegion final {
|
| + USING_FAST_MALLOC(CrossThreadPersistentRegion);
|
| public:
|
| CrossThreadPersistentRegion() : m_persistentRegion(adoptPtr(new PersistentRegion)) { }
|
|
|
|
|