OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 1668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1679 ++(classAgeCounts.add(className, AgeCounts()).storedValue->value.age
s[header->age()]); | 1679 ++(classAgeCounts.add(className, AgeCounts()).storedValue->value.age
s[header->age()]); |
1680 } | 1680 } |
1681 } | 1681 } |
1682 } | 1682 } |
1683 #endif | 1683 #endif |
1684 | 1684 |
1685 #if ENABLE(ASSERT) || ENABLE(GC_PROFILING) | 1685 #if ENABLE(ASSERT) || ENABLE(GC_PROFILING) |
1686 bool NormalPage::contains(Address addr) | 1686 bool NormalPage::contains(Address addr) |
1687 { | 1687 { |
1688 Address blinkPageStart = roundToBlinkPageStart(address()); | 1688 Address blinkPageStart = roundToBlinkPageStart(address()); |
1689 ASSERT(blinkPageStart == address() - WTF::kSystemPageSize); // Page is at al
igned address plus guard page size. | 1689 ASSERT(blinkPageStart == address() - blinkGuardPageSize); // Page is at alig
ned address plus guard page size. |
1690 return blinkPageStart <= addr && addr < blinkPageStart + blinkPageSize; | 1690 return blinkPageStart <= addr && addr < blinkPageStart + blinkPageSize; |
1691 } | 1691 } |
1692 #endif | 1692 #endif |
1693 | 1693 |
1694 NormalPageHeap* NormalPage::heapForNormalPage() | 1694 NormalPageHeap* NormalPage::heapForNormalPage() |
1695 { | 1695 { |
1696 return static_cast<NormalPageHeap*>(heap()); | 1696 return static_cast<NormalPageHeap*>(heap()); |
1697 } | 1697 } |
1698 | 1698 |
1699 LargeObjectPage::LargeObjectPage(PageMemory* storage, BaseHeap* heap, size_t pay
loadSize) | 1699 LargeObjectPage::LargeObjectPage(PageMemory* storage, BaseHeap* heap, size_t pay
loadSize) |
(...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2548 size_t Heap::s_objectSizeAtLastGC = 0; | 2548 size_t Heap::s_objectSizeAtLastGC = 0; |
2549 size_t Heap::s_markedObjectSize = 0; | 2549 size_t Heap::s_markedObjectSize = 0; |
2550 size_t Heap::s_persistentCount = 0; | 2550 size_t Heap::s_persistentCount = 0; |
2551 size_t Heap::s_persistentCountAtLastGC = 0; | 2551 size_t Heap::s_persistentCountAtLastGC = 0; |
2552 size_t Heap::s_collectedPersistentCount = 0; | 2552 size_t Heap::s_collectedPersistentCount = 0; |
2553 size_t Heap::s_partitionAllocSizeAtLastGC = 0; | 2553 size_t Heap::s_partitionAllocSizeAtLastGC = 0; |
2554 size_t Heap::s_heapSizePerPersistent = 0; | 2554 size_t Heap::s_heapSizePerPersistent = 0; |
2555 double Heap::s_estimatedMarkingTimePerByte = 0.0; | 2555 double Heap::s_estimatedMarkingTimePerByte = 0.0; |
2556 | 2556 |
2557 } // namespace blink | 2557 } // namespace blink |
OLD | NEW |