Chromium Code Reviews| Index: third_party/WebKit/Source/platform/heap/HeapPage.cpp |
| diff --git a/third_party/WebKit/Source/platform/heap/HeapPage.cpp b/third_party/WebKit/Source/platform/heap/HeapPage.cpp |
| index 637100d5f8eb42d30327a9ce160010aaeeb1702a..b17f11d18c462fbb49688c58bd8a0a46a01a12e6 100644 |
| --- a/third_party/WebKit/Source/platform/heap/HeapPage.cpp |
| +++ b/third_party/WebKit/Source/platform/heap/HeapPage.cpp |
| @@ -545,7 +545,7 @@ bool NormalPageHeap::coalesce() |
| if (startOfGap != page->payloadEnd()) |
| addToFreeList(startOfGap, page->payloadEnd() - startOfGap); |
| } |
| - Heap::decreaseAllocatedObjectSize(freedSize); |
| + threadState()->decreaseAllocatedObjectSize(freedSize); |
| ASSERT(m_promptlyFreedSize == freedSize); |
| m_promptlyFreedSize = 0; |
| return true; |
| @@ -663,16 +663,16 @@ void NormalPageHeap::setRemainingAllocationSize(size_t newRemainingAllocationSiz |
| // - if previous alloc checkpoint is larger, allocation size has increased. |
| // - if smaller, a net reduction in size since last call to updateRemainingAllocationSize(). |
| if (m_lastRemainingAllocationSize > m_remainingAllocationSize) |
| - Heap::increaseAllocatedObjectSize(m_lastRemainingAllocationSize - m_remainingAllocationSize); |
| + threadState()->increaseAllocatedObjectSize(m_lastRemainingAllocationSize - m_remainingAllocationSize); |
| else if (m_lastRemainingAllocationSize != m_remainingAllocationSize) |
| - Heap::decreaseAllocatedObjectSize(m_remainingAllocationSize - m_lastRemainingAllocationSize); |
| + threadState()->decreaseAllocatedObjectSize(m_remainingAllocationSize - m_lastRemainingAllocationSize); |
| m_lastRemainingAllocationSize = m_remainingAllocationSize; |
| } |
| void NormalPageHeap::updateRemainingAllocationSize() |
| { |
| if (m_lastRemainingAllocationSize > remainingAllocationSize()) { |
| - Heap::increaseAllocatedObjectSize(m_lastRemainingAllocationSize - remainingAllocationSize()); |
| + threadState()->increaseAllocatedObjectSize(m_lastRemainingAllocationSize - remainingAllocationSize()); |
| m_lastRemainingAllocationSize = remainingAllocationSize(); |
| } |
| ASSERT(m_lastRemainingAllocationSize == remainingAllocationSize()); |
| @@ -839,7 +839,7 @@ Address LargeObjectHeap::doAllocateLargeObjectPage(size_t allocationSize, size_t |
| largeObject->link(&m_firstPage); |
| Heap::increaseAllocatedSpace(largeObject->size()); |
| - Heap::increaseAllocatedObjectSize(largeObject->size()); |
| + threadState()->increaseAllocatedObjectSize(largeObject->size()); |
| return result; |
| } |
| @@ -1157,7 +1157,7 @@ void NormalPage::sweep() |
| heapForNormalPage()->addToFreeList(startOfGap, payloadEnd() - startOfGap); |
| if (markedObjectSize) |
| - Heap::increaseMarkedObjectSize(markedObjectSize); |
| + ThreadState::current()->increaseMarkedObjectSize(markedObjectSize); |
|
haraken
2016/02/12 09:30:54
heapForNormalPage()->threadState()->
peria
2016/02/15 04:16:59
Done.
|
| } |
| void NormalPage::makeConsistentForGC() |
| @@ -1182,7 +1182,7 @@ void NormalPage::makeConsistentForGC() |
| headerAddress += header->size(); |
| } |
| if (markedObjectSize) |
| - Heap::increaseMarkedObjectSize(markedObjectSize); |
| + ThreadState::current()->increaseMarkedObjectSize(markedObjectSize); |
|
haraken
2016/02/12 09:30:54
heapForNormalPage()->threadState()->
peria
2016/02/15 04:16:59
Done.
|
| } |
| void NormalPage::makeConsistentForMutator() |
| @@ -1449,7 +1449,7 @@ void LargeObjectPage::removeFromHeap() |
| void LargeObjectPage::sweep() |
| { |
| heapObjectHeader()->unmark(); |
| - Heap::increaseMarkedObjectSize(size()); |
| + ThreadState::current()->increaseMarkedObjectSize(size()); |
|
haraken
2016/02/12 09:30:54
heap()->threadState()->
peria
2016/02/15 04:16:59
Done.
|
| } |
| void LargeObjectPage::makeConsistentForGC() |
| @@ -1457,7 +1457,7 @@ void LargeObjectPage::makeConsistentForGC() |
| HeapObjectHeader* header = heapObjectHeader(); |
| if (header->isMarked()) { |
| header->unmark(); |
| - Heap::increaseMarkedObjectSize(size()); |
| + ThreadState::current()->increaseMarkedObjectSize(size()); |
|
haraken
2016/02/12 09:30:54
heap()->threadState()->
peria
2016/02/15 04:16:59
Done.
|
| } else { |
| header->markDead(); |
| } |