| Index: third_party/WebKit/Source/platform/heap/HeapPage.h
|
| diff --git a/third_party/WebKit/Source/platform/heap/HeapPage.h b/third_party/WebKit/Source/platform/heap/HeapPage.h
|
| index 11b8138ae01492f8c458f3c4e64dc76f20d824bc..6659ddc8c858a1b4174eb86756127ba1ed54a198 100644
|
| --- a/third_party/WebKit/Source/platform/heap/HeapPage.h
|
| +++ b/third_party/WebKit/Source/platform/heap/HeapPage.h
|
| @@ -494,7 +494,6 @@ public:
|
| return sizeof(NormalPage) + paddingSize;
|
| }
|
|
|
| -
|
| NormalPageArena* arenaForNormalPage();
|
|
|
| private:
|
| @@ -696,6 +695,8 @@ public:
|
|
|
| Address allocateLargeObject(size_t allocationSize, size_t gcInfoIndex);
|
|
|
| + bool willObjectBeLazilySwept(BasePage*, void*) const;
|
| +
|
| protected:
|
| BasePage* m_firstPage;
|
| BasePage* m_firstUnsweptPage;
|
| @@ -741,6 +742,9 @@ public:
|
| return header->payloadEnd() == m_currentAllocationPoint;
|
| }
|
|
|
| + bool isLazySweeping() const { return m_isLazySweeping; }
|
| + void setIsLazySweeping(bool flag) { m_isLazySweeping = flag; }
|
| +
|
| private:
|
| void allocatePage();
|
| Address outOfLineAllocate(size_t allocationSize, size_t gcInfoIndex);
|
| @@ -763,6 +767,8 @@ private:
|
|
|
| // The size of promptly freed objects in the heap.
|
| size_t m_promptlyFreedSize;
|
| +
|
| + bool m_isLazySweeping;
|
| };
|
|
|
| class LargeObjectArena final : public BaseArena {
|
|
|