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

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

Issue 911663002: Revert of 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 1b06990477473b3b8b60b9405cc4cc94229fd190..556e355b9e3d4a1d666b6535e878053ae04b3c07 100644
--- a/Source/platform/heap/ThreadState.cpp
+++ b/Source/platform/heap/ThreadState.cpp
@@ -305,9 +305,9 @@
s_mainThreadUnderestimatedStackSize = StackFrameDepth::getUnderestimatedStackSize() - sizeof(void*);
}
- for (int heapIndex = 0; heapIndex < LargeObjectHeapIndex; heapIndex++)
- m_heaps[heapIndex] = new NormalPageHeap(this, heapIndex);
- m_heaps[LargeObjectHeapIndex] = new LargeObjectHeap(this, LargeObjectHeapIndex);
+ for (int heapIndex = 0; heapIndex < LargeObjectHeap; heapIndex++)
+ m_heaps[heapIndex] = new ThreadHeapForHeapPage(this, heapIndex);
+ m_heaps[LargeObjectHeap] = new ThreadHeapForLargeObject(this, LargeObjectHeap);
m_weakCallbackStack = new CallbackStack();
}
@@ -570,7 +570,7 @@
#if ENABLE(GC_PROFILING)
const GCInfo* ThreadState::findGCInfo(Address address)
{
- if (BasePage* page = findPageFromAddress(address))
+ if (BaseHeapPage* page = findPageFromAddress(address))
return page->findGCInfo(address);
return nullptr;
}
@@ -1002,10 +1002,10 @@
}
#if ENABLE(ASSERT) || ENABLE(GC_PROFILING)
-BasePage* ThreadState::findPageFromAddress(Address address)
+BaseHeapPage* ThreadState::findPageFromAddress(Address address)
{
for (int i = 0; i < NumberOfHeaps; ++i) {
- if (BasePage* page = m_heaps[i]->findPageFromAddress(address))
+ if (BaseHeapPage* 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