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 1393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1404 void TracePathToObject(Object* target); | 1404 void TracePathToObject(Object* target); |
1405 void TracePathToGlobal(); | 1405 void TracePathToGlobal(); |
1406 | 1406 |
1407 void Print(); | 1407 void Print(); |
1408 void PrintHandles(); | 1408 void PrintHandles(); |
1409 | 1409 |
1410 // Report heap statistics. | 1410 // Report heap statistics. |
1411 void ReportHeapStatistics(const char* title); | 1411 void ReportHeapStatistics(const char* title); |
1412 void ReportCodeStatistics(const char* title); | 1412 void ReportCodeStatistics(const char* title); |
1413 #endif | 1413 #endif |
1414 #ifdef ENABLE_SLOW_DCHECKS | |
1415 int CountHandlesForObject(Object* object); | |
1416 #endif | |
1417 | 1414 |
1418 private: | 1415 private: |
1419 class PretenuringScope; | 1416 class PretenuringScope; |
1420 | 1417 |
1421 // External strings table is a place where all external strings are | 1418 // External strings table is a place where all external strings are |
1422 // registered. We need to keep track of such strings to properly | 1419 // registered. We need to keep track of such strings to properly |
1423 // finalize them. | 1420 // finalize them. |
1424 class ExternalStringTable { | 1421 class ExternalStringTable { |
1425 public: | 1422 public: |
1426 // Registers an external string. | 1423 // Registers an external string. |
(...skipping 1243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2670 friend class LargeObjectSpace; | 2667 friend class LargeObjectSpace; |
2671 friend class NewSpace; | 2668 friend class NewSpace; |
2672 friend class PagedSpace; | 2669 friend class PagedSpace; |
2673 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); | 2670 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); |
2674 }; | 2671 }; |
2675 | 2672 |
2676 } // namespace internal | 2673 } // namespace internal |
2677 } // namespace v8 | 2674 } // namespace v8 |
2678 | 2675 |
2679 #endif // V8_HEAP_HEAP_H_ | 2676 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |