Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Unified Diff: third_party/WebKit/Source/platform/heap/HeapPage.h

Issue 1424573003: Sync remaining allocation size on in-place backing store recycling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor edits Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/heap/HeapPage.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7859aabaa223b6f13e899d4cc3af41ba79e748e8..e1f17dea22cd8dd78930fcde1bad120963e296f5 100644
--- a/third_party/WebKit/Source/platform/heap/HeapPage.h
+++ b/third_party/WebKit/Source/platform/heap/HeapPage.h
@@ -720,14 +720,18 @@ public:
private:
void allocatePage();
- Address lazySweepPages(size_t, size_t gcInfoIndex) override;
Address outOfLineAllocate(size_t allocationSize, size_t gcInfoIndex);
+ Address allocateFromFreeList(size_t, size_t gcInfoIndex);
+
+ Address lazySweepPages(size_t, size_t gcInfoIndex) override;
+
Address currentAllocationPoint() const { return m_currentAllocationPoint; }
- size_t remainingAllocationSize() const { return m_remainingAllocationSize; }
bool hasCurrentAllocationArea() const { return currentAllocationPoint() && remainingAllocationSize(); }
void setAllocationPoint(Address, size_t);
+
+ size_t remainingAllocationSize() const { return m_remainingAllocationSize; }
+ void setRemainingAllocationSize(size_t);
void updateRemainingAllocationSize();
- Address allocateFromFreeList(size_t, size_t gcInfoIndex);
FreeList m_freeList;
Address m_currentAllocationPoint;
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/heap/HeapPage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698