| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_HEAP_HEAP_H_ | 5 #ifndef V8_HEAP_HEAP_H_ |
| 6 #define V8_HEAP_HEAP_H_ | 6 #define V8_HEAP_HEAP_H_ |
| 7 | 7 |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 1769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1780 void ResetAllAllocationSitesDependentCode(PretenureFlag flag); | 1780 void ResetAllAllocationSitesDependentCode(PretenureFlag flag); |
| 1781 | 1781 |
| 1782 // Evaluates local pretenuring for the old space and calls | 1782 // Evaluates local pretenuring for the old space and calls |
| 1783 // ResetAllTenuredAllocationSitesDependentCode if too many objects died in | 1783 // ResetAllTenuredAllocationSitesDependentCode if too many objects died in |
| 1784 // the old space. | 1784 // the old space. |
| 1785 void EvaluateOldSpaceLocalPretenuring(uint64_t size_of_objects_before_gc); | 1785 void EvaluateOldSpaceLocalPretenuring(uint64_t size_of_objects_before_gc); |
| 1786 | 1786 |
| 1787 // Called on heap tear-down. Frees all remaining ArrayBuffer backing stores. | 1787 // Called on heap tear-down. Frees all remaining ArrayBuffer backing stores. |
| 1788 void TearDownArrayBuffers(); | 1788 void TearDownArrayBuffers(); |
| 1789 | 1789 |
| 1790 // These correspond to the non-Helper versions. | |
| 1791 void RegisterNewArrayBufferHelper(std::map<void*, size_t>& live_buffers, | |
| 1792 void* data, size_t length); | |
| 1793 void UnregisterArrayBufferHelper( | |
| 1794 std::map<void*, size_t>& live_buffers, | |
| 1795 std::map<void*, size_t>& not_yet_discovered_buffers, void* data); | |
| 1796 void RegisterLiveArrayBufferHelper( | |
| 1797 std::map<void*, size_t>& not_yet_discovered_buffers, void* data); | |
| 1798 size_t FreeDeadArrayBuffersHelper( | |
| 1799 Isolate* isolate, std::map<void*, size_t>& live_buffers, | |
| 1800 std::map<void*, size_t>& not_yet_discovered_buffers); | |
| 1801 void TearDownArrayBuffersHelper( | |
| 1802 Isolate* isolate, std::map<void*, size_t>& live_buffers, | |
| 1803 std::map<void*, size_t>& not_yet_discovered_buffers); | |
| 1804 | |
| 1805 // Record statistics before and after garbage collection. | 1790 // Record statistics before and after garbage collection. |
| 1806 void ReportStatisticsBeforeGC(); | 1791 void ReportStatisticsBeforeGC(); |
| 1807 void ReportStatisticsAfterGC(); | 1792 void ReportStatisticsAfterGC(); |
| 1808 | 1793 |
| 1809 // Creates and installs the full-sized number string cache. | 1794 // Creates and installs the full-sized number string cache. |
| 1810 int FullSizeNumberStringCacheLength(); | 1795 int FullSizeNumberStringCacheLength(); |
| 1811 // Flush the number to string cache. | 1796 // Flush the number to string cache. |
| 1812 void FlushNumberStringCache(); | 1797 void FlushNumberStringCache(); |
| 1813 | 1798 |
| 1814 // Sets used allocation sites entries to undefined. | 1799 // Sets used allocation sites entries to undefined. |
| (...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2786 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2771 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
| 2787 | 2772 |
| 2788 private: | 2773 private: |
| 2789 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2774 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2790 }; | 2775 }; |
| 2791 #endif // DEBUG | 2776 #endif // DEBUG |
| 2792 } | 2777 } |
| 2793 } // namespace v8::internal | 2778 } // namespace v8::internal |
| 2794 | 2779 |
| 2795 #endif // V8_HEAP_HEAP_H_ | 2780 #endif // V8_HEAP_HEAP_H_ |
| OLD | NEW |