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 1371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1382 void TracePathToObject(Object* target); | 1382 void TracePathToObject(Object* target); |
1383 void TracePathToGlobal(); | 1383 void TracePathToGlobal(); |
1384 | 1384 |
1385 void Print(); | 1385 void Print(); |
1386 void PrintHandles(); | 1386 void PrintHandles(); |
1387 | 1387 |
1388 // Report heap statistics. | 1388 // Report heap statistics. |
1389 void ReportHeapStatistics(const char* title); | 1389 void ReportHeapStatistics(const char* title); |
1390 void ReportCodeStatistics(const char* title); | 1390 void ReportCodeStatistics(const char* title); |
1391 #endif | 1391 #endif |
1392 #ifdef ENABLE_SLOW_DCHECKS | |
1393 int CountHandlesForObject(Object* object); | |
1394 #endif | |
1395 | 1392 |
1396 private: | 1393 private: |
1397 class PretenuringScope; | 1394 class PretenuringScope; |
1398 | 1395 |
1399 // External strings table is a place where all external strings are | 1396 // External strings table is a place where all external strings are |
1400 // registered. We need to keep track of such strings to properly | 1397 // registered. We need to keep track of such strings to properly |
1401 // finalize them. | 1398 // finalize them. |
1402 class ExternalStringTable { | 1399 class ExternalStringTable { |
1403 public: | 1400 public: |
1404 // Registers an external string. | 1401 // Registers an external string. |
(...skipping 1242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2647 friend class LargeObjectSpace; | 2644 friend class LargeObjectSpace; |
2648 friend class NewSpace; | 2645 friend class NewSpace; |
2649 friend class PagedSpace; | 2646 friend class PagedSpace; |
2650 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); | 2647 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); |
2651 }; | 2648 }; |
2652 | 2649 |
2653 } // namespace internal | 2650 } // namespace internal |
2654 } // namespace v8 | 2651 } // namespace v8 |
2655 | 2652 |
2656 #endif // V8_HEAP_HEAP_H_ | 2653 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |