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 1344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1355 void TracePathToObject(Object* target); | 1355 void TracePathToObject(Object* target); |
1356 void TracePathToGlobal(); | 1356 void TracePathToGlobal(); |
1357 | 1357 |
1358 void Print(); | 1358 void Print(); |
1359 void PrintHandles(); | 1359 void PrintHandles(); |
1360 | 1360 |
1361 // Report heap statistics. | 1361 // Report heap statistics. |
1362 void ReportHeapStatistics(const char* title); | 1362 void ReportHeapStatistics(const char* title); |
1363 void ReportCodeStatistics(const char* title); | 1363 void ReportCodeStatistics(const char* title); |
1364 #endif | 1364 #endif |
| 1365 #ifdef ENABLE_SLOW_DCHECKS |
| 1366 int CountHandlesForObject(Object* object); |
| 1367 #endif |
1365 | 1368 |
1366 private: | 1369 private: |
1367 class PretenuringScope; | 1370 class PretenuringScope; |
1368 class UnmapFreeMemoryTask; | 1371 class UnmapFreeMemoryTask; |
1369 | 1372 |
1370 // External strings table is a place where all external strings are | 1373 // External strings table is a place where all external strings are |
1371 // registered. We need to keep track of such strings to properly | 1374 // registered. We need to keep track of such strings to properly |
1372 // finalize them. | 1375 // finalize them. |
1373 class ExternalStringTable { | 1376 class ExternalStringTable { |
1374 public: | 1377 public: |
(...skipping 1247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2622 friend class LargeObjectSpace; | 2625 friend class LargeObjectSpace; |
2623 friend class NewSpace; | 2626 friend class NewSpace; |
2624 friend class PagedSpace; | 2627 friend class PagedSpace; |
2625 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); | 2628 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); |
2626 }; | 2629 }; |
2627 | 2630 |
2628 } // namespace internal | 2631 } // namespace internal |
2629 } // namespace v8 | 2632 } // namespace v8 |
2630 | 2633 |
2631 #endif // V8_HEAP_HEAP_H_ | 2634 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |