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

Unified Diff: third_party/WebKit/Source/platform/heap/PagePool.cpp

Issue 1754183002: Rename BaseHeap to BaseArena (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/PagePool.cpp
diff --git a/third_party/WebKit/Source/platform/heap/PagePool.cpp b/third_party/WebKit/Source/platform/heap/PagePool.cpp
index 9bda5c0d1eb8983ef3ff5e744cb9a90547385e20..12580d7d222d30e8029b5852a09578435f00352a 100644
--- a/third_party/WebKit/Source/platform/heap/PagePool.cpp
+++ b/third_party/WebKit/Source/platform/heap/PagePool.cpp
@@ -12,7 +12,7 @@ namespace blink {
FreePagePool::~FreePagePool()
{
- for (int index = 0; index < BlinkGC::NumberOfHeaps; ++index) {
+ for (int index = 0; index < BlinkGC::NumberOfArenas; ++index) {
while (PoolEntry* entry = m_pool[index]) {
m_pool[index] = entry->next;
PageMemory* memory = entry->data;
@@ -53,7 +53,7 @@ PageMemory* FreePagePool::takeFreePage(int index)
OrphanedPagePool::~OrphanedPagePool()
{
- for (int index = 0; index < BlinkGC::NumberOfHeaps; ++index) {
+ for (int index = 0; index < BlinkGC::NumberOfArenas; ++index) {
while (PoolEntry* entry = m_pool[index]) {
m_pool[index] = entry->next;
BasePage* page = entry->data;
@@ -84,7 +84,7 @@ void OrphanedPagePool::decommitOrphanedPages()
ASSERT(state->isAtSafePoint());
#endif
- for (int index = 0; index < BlinkGC::NumberOfHeaps; ++index) {
+ for (int index = 0; index < BlinkGC::NumberOfArenas; ++index) {
PoolEntry* entry = m_pool[index];
PoolEntry** prevNext = &m_pool[index];
while (entry) {
@@ -139,7 +139,7 @@ void OrphanedPagePool::clearMemory(PageMemory* memory)
#if ENABLE(ASSERT)
bool OrphanedPagePool::contains(void* object)
{
- for (int index = 0; index < BlinkGC::NumberOfHeaps; ++index) {
+ for (int index = 0; index < BlinkGC::NumberOfArenas; ++index) {
for (PoolEntry* entry = m_pool[index]; entry; entry = entry->next) {
BasePage* page = entry->data;
if (page->contains(reinterpret_cast<Address>(object)))
« no previous file with comments | « third_party/WebKit/Source/platform/heap/PagePool.h ('k') | third_party/WebKit/Source/platform/heap/PersistentNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698