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

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

Issue 1351063002: Oilpan: Remove 'inline' from Heap::allocateOnHeapIndex Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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/Heap.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/heap/Heap.cpp
diff --git a/Source/platform/heap/Heap.cpp b/Source/platform/heap/Heap.cpp
index df1dca7b730a8d767606bbf360af0e11e9830f88..d5ea06463eb7323e7ee80c543f4c690d06377efc 100644
--- a/Source/platform/heap/Heap.cpp
+++ b/Source/platform/heap/Heap.cpp
@@ -600,6 +600,14 @@ double Heap::estimatedMarkingTime()
return s_estimatedMarkingTimePerByte * (Heap::allocatedObjectSize() + Heap::markedObjectSize());
}
+Address Heap::allocateOnHeapIndex(ThreadState* state, size_t size, int heapIndex, size_t gcInfoIndex)
+{
+ ASSERT(state->isAllocationAllowed());
+ ASSERT(heapIndex != ThreadState::LargeObjectHeapIndex);
+ NormalPageHeap* heap = static_cast<NormalPageHeap*>(state->heap(heapIndex));
+ return heap->allocateObject(allocationSizeFromSize(size), gcInfoIndex);
+}
+
void Heap::reportMemoryUsageHistogram()
{
static size_t supportedMaxSizeInMB = 4 * 1024;
« no previous file with comments | « Source/platform/heap/Heap.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698