| 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 1510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1521 | 1521 |
| 1522 // Report heap statistics. | 1522 // Report heap statistics. |
| 1523 void ReportHeapStatistics(const char* title); | 1523 void ReportHeapStatistics(const char* title); |
| 1524 void ReportCodeStatistics(const char* title); | 1524 void ReportCodeStatistics(const char* title); |
| 1525 #endif | 1525 #endif |
| 1526 | 1526 |
| 1527 static const char* GarbageCollectionReasonToString( | 1527 static const char* GarbageCollectionReasonToString( |
| 1528 GarbageCollectionReason gc_reason); | 1528 GarbageCollectionReason gc_reason); |
| 1529 | 1529 |
| 1530 private: | 1530 private: |
| 1531 class SkipStoreBufferScope; |
| 1531 class PretenuringScope; | 1532 class PretenuringScope; |
| 1532 | 1533 |
| 1533 // External strings table is a place where all external strings are | 1534 // External strings table is a place where all external strings are |
| 1534 // registered. We need to keep track of such strings to properly | 1535 // registered. We need to keep track of such strings to properly |
| 1535 // finalize them. | 1536 // finalize them. |
| 1536 class ExternalStringTable { | 1537 class ExternalStringTable { |
| 1537 public: | 1538 public: |
| 1538 // Registers an external string. | 1539 // Registers an external string. |
| 1539 inline void AddString(String* string); | 1540 inline void AddString(String* string); |
| 1540 | 1541 |
| (...skipping 1150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2691 friend class LargeObjectSpace; | 2692 friend class LargeObjectSpace; |
| 2692 friend class NewSpace; | 2693 friend class NewSpace; |
| 2693 friend class PagedSpace; | 2694 friend class PagedSpace; |
| 2694 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); | 2695 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); |
| 2695 }; | 2696 }; |
| 2696 | 2697 |
| 2697 } // namespace internal | 2698 } // namespace internal |
| 2698 } // namespace v8 | 2699 } // namespace v8 |
| 2699 | 2700 |
| 2700 #endif // V8_HEAP_HEAP_H_ | 2701 #endif // V8_HEAP_HEAP_H_ |
| OLD | NEW |