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

Unified Diff: Source/platform/heap/ThreadState.cpp

Issue 906213002: Oilpan: Rename heap classes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
« no previous file with comments | « Source/platform/heap/ThreadState.h ('k') | Source/platform/heap/Visitor.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/heap/ThreadState.cpp
diff --git a/Source/platform/heap/ThreadState.cpp b/Source/platform/heap/ThreadState.cpp
index 07be5c643fbe7a15e2ad93f039d691ac1818b8bc..b7487b791a4c72dad3cca2457ffae9c1603865c8 100644
--- a/Source/platform/heap/ThreadState.cpp
+++ b/Source/platform/heap/ThreadState.cpp
@@ -257,9 +257,9 @@ ThreadState::ThreadState()
s_mainThreadUnderestimatedStackSize = StackFrameDepth::getUnderestimatedStackSize() - sizeof(void*);
}
- for (int heapIndex = 0; heapIndex < LargeObjectHeap; heapIndex++)
- m_heaps[heapIndex] = new ThreadHeapForHeapPage(this, heapIndex);
- m_heaps[LargeObjectHeap] = new ThreadHeapForLargeObject(this, LargeObjectHeap);
+ for (int heapIndex = 0; heapIndex < LargeObjectHeapIndex; heapIndex++)
+ m_heaps[heapIndex] = new NormalPageHeap(this, heapIndex);
+ m_heaps[LargeObjectHeapIndex] = new LargeObjectHeap(this, LargeObjectHeapIndex);
m_weakCallbackStack = new CallbackStack();
}
@@ -522,7 +522,7 @@ void ThreadState::visitPersistents(Visitor* visitor)
#if ENABLE(GC_PROFILING)
const GCInfo* ThreadState::findGCInfo(Address address)
{
- if (BaseHeapPage* page = findPageFromAddress(address))
+ if (BasePage* page = findPageFromAddress(address))
return page->findGCInfo(address);
return nullptr;
}
@@ -954,10 +954,10 @@ void ThreadState::prepareHeapForTermination()
}
#if ENABLE(ASSERT) || ENABLE(GC_PROFILING)
-BaseHeapPage* ThreadState::findPageFromAddress(Address address)
+BasePage* ThreadState::findPageFromAddress(Address address)
{
for (int i = 0; i < NumberOfHeaps; ++i) {
- if (BaseHeapPage* page = m_heaps[i]->findPageFromAddress(address))
+ if (BasePage* page = m_heaps[i]->findPageFromAddress(address))
return page;
}
return nullptr;
« no previous file with comments | « Source/platform/heap/ThreadState.h ('k') | Source/platform/heap/Visitor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698