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 1778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1789 | 1789 |
1790 // These correspond to the non-Helper versions. | 1790 // These correspond to the non-Helper versions. |
1791 void RegisterNewArrayBufferHelper(std::map<void*, size_t>& live_buffers, | 1791 void RegisterNewArrayBufferHelper(std::map<void*, size_t>& live_buffers, |
1792 void* data, size_t length); | 1792 void* data, size_t length); |
1793 void UnregisterArrayBufferHelper( | 1793 void UnregisterArrayBufferHelper( |
1794 std::map<void*, size_t>& live_buffers, | 1794 std::map<void*, size_t>& live_buffers, |
1795 std::map<void*, size_t>& not_yet_discovered_buffers, void* data); | 1795 std::map<void*, size_t>& not_yet_discovered_buffers, void* data); |
1796 void RegisterLiveArrayBufferHelper( | 1796 void RegisterLiveArrayBufferHelper( |
1797 std::map<void*, size_t>& not_yet_discovered_buffers, void* data); | 1797 std::map<void*, size_t>& not_yet_discovered_buffers, void* data); |
1798 size_t FreeDeadArrayBuffersHelper( | 1798 size_t FreeDeadArrayBuffersHelper( |
1799 Isolate* isolate, std::map<void*, size_t>& live_buffers, | 1799 Isolate* isolate, bool from_scavenge, |
1800 std::map<void*, size_t>& not_yet_discovered_buffers); | 1800 std::map<void*, size_t>& not_yet_discovered_buffers); |
1801 void TearDownArrayBuffersHelper( | 1801 void TearDownArrayBuffersHelper( |
1802 Isolate* isolate, std::map<void*, size_t>& live_buffers, | 1802 Isolate* isolate, std::map<void*, size_t>& live_buffers, |
1803 std::map<void*, size_t>& not_yet_discovered_buffers); | 1803 std::map<void*, size_t>& not_yet_discovered_buffers); |
1804 | 1804 |
1805 // Record statistics before and after garbage collection. | 1805 // Record statistics before and after garbage collection. |
1806 void ReportStatisticsBeforeGC(); | 1806 void ReportStatisticsBeforeGC(); |
1807 void ReportStatisticsAfterGC(); | 1807 void ReportStatisticsAfterGC(); |
1808 | 1808 |
1809 // Creates and installs the full-sized number string cache. | 1809 // Creates and installs the full-sized number string cache. |
(...skipping 976 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2786 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2786 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
2787 | 2787 |
2788 private: | 2788 private: |
2789 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2789 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2790 }; | 2790 }; |
2791 #endif // DEBUG | 2791 #endif // DEBUG |
2792 } | 2792 } |
2793 } // namespace v8::internal | 2793 } // namespace v8::internal |
2794 | 2794 |
2795 #endif // V8_HEAP_HEAP_H_ | 2795 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |