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

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

Issue 1477023003: Refactor the Heap into ThreadHeap to prepare for per thread heaps Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactored Created 4 years, 11 months 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
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 b35988ad1e2ba7aedcc8414a6dff58f0d6713fd4..31349423e918ca7dab80280dd3ce4597a50ee78e 100644
--- a/third_party/WebKit/Source/platform/heap/HeapPage.h
+++ b/third_party/WebKit/Source/platform/heap/HeapPage.h
@@ -683,7 +683,7 @@ protected:
BasePage* m_firstUnsweptPage;
private:
- virtual Address lazySweepPages(size_t, size_t gcInfoIndex) = 0;
+ virtual Address lazySweepPages(size_t, size_t gcInfoIndex, GCGroup*) = 0;
ThreadState* m_threadState;
@@ -728,7 +728,7 @@ private:
Address outOfLineAllocate(size_t allocationSize, size_t gcInfoIndex);
Address allocateFromFreeList(size_t, size_t gcInfoIndex);
- Address lazySweepPages(size_t, size_t gcInfoIndex) override;
+ Address lazySweepPages(size_t, size_t gcInfoIndex, GCGroup*) override;
Address currentAllocationPoint() const { return m_currentAllocationPoint; }
bool hasCurrentAllocationArea() const { return currentAllocationPoint() && remainingAllocationSize(); }
@@ -750,14 +750,14 @@ private:
class LargeObjectHeap final : public BaseHeap {
public:
LargeObjectHeap(ThreadState*, int);
- Address allocateLargeObjectPage(size_t, size_t gcInfoIndex);
+ Address allocateLargeObjectPage(size_t, size_t gcInfoIndex, GCGroup*);
void freeLargeObjectPage(LargeObjectPage*);
#if ENABLE(ASSERT)
bool isConsistentForGC() override { return true; }
#endif
private:
- Address doAllocateLargeObjectPage(size_t, size_t gcInfoIndex);
- Address lazySweepPages(size_t, size_t gcInfoIndex) override;
+ Address doAllocateLargeObjectPage(size_t, size_t gcInfoIndex, GCGroup*);
+ Address lazySweepPages(size_t, size_t gcInfoIndex, GCGroup*) override;
};
// Mask an address down to the enclosing oilpan heap base page. All oilpan heap

Powered by Google App Engine
This is Rietveld 408576698