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; |