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

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

Issue 1402103004: Oilpan: Factor out GC-related enum definitions to BlinkGC.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 b46fc709a2ac3776efabe3b534e89cf49f195f3f..f88e90cf94d76e4d9c586a5e19e00845706d0eed 100644
--- a/third_party/WebKit/Source/platform/heap/PagePool.cpp
+++ b/third_party/WebKit/Source/platform/heap/PagePool.cpp
@@ -13,7 +13,7 @@ namespace blink {
FreePagePool::~FreePagePool()
{
- for (int index = 0; index < ThreadState::NumberOfHeaps; ++index) {
+ for (int index = 0; index < BlinkGC::NumberOfHeaps; ++index) {
while (PoolEntry* entry = m_pool[index]) {
m_pool[index] = entry->next;
PageMemory* memory = entry->data;
@@ -54,7 +54,7 @@ PageMemory* FreePagePool::takeFreePage(int index)
OrphanedPagePool::~OrphanedPagePool()
{
- for (int index = 0; index < ThreadState::NumberOfHeaps; ++index) {
+ for (int index = 0; index < BlinkGC::NumberOfHeaps; ++index) {
while (PoolEntry* entry = m_pool[index]) {
m_pool[index] = entry->next;
BasePage* page = entry->data;
@@ -85,7 +85,7 @@ void OrphanedPagePool::decommitOrphanedPages()
ASSERT(state->isAtSafePoint());
#endif
- for (int index = 0; index < ThreadState::NumberOfHeaps; ++index) {
+ for (int index = 0; index < BlinkGC::NumberOfHeaps; ++index) {
PoolEntry* entry = m_pool[index];
PoolEntry** prevNext = &m_pool[index];
while (entry) {
@@ -140,7 +140,7 @@ void OrphanedPagePool::clearMemory(PageMemory* memory)
#if ENABLE(ASSERT)
bool OrphanedPagePool::contains(void* object)
{
- for (int index = 0; index < ThreadState::NumberOfHeaps; ++index) {
+ for (int index = 0; index < BlinkGC::NumberOfHeaps; ++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/PendingGCRunner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698