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 1659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1670 | 1670 |
1671 // Record statistics before and after garbage collection. | 1671 // Record statistics before and after garbage collection. |
1672 void ReportStatisticsBeforeGC(); | 1672 void ReportStatisticsBeforeGC(); |
1673 void ReportStatisticsAfterGC(); | 1673 void ReportStatisticsAfterGC(); |
1674 | 1674 |
1675 // Creates and installs the full-sized number string cache. | 1675 // Creates and installs the full-sized number string cache. |
1676 int FullSizeNumberStringCacheLength(); | 1676 int FullSizeNumberStringCacheLength(); |
1677 // Flush the number to string cache. | 1677 // Flush the number to string cache. |
1678 void FlushNumberStringCache(); | 1678 void FlushNumberStringCache(); |
1679 | 1679 |
1680 // TODO(hpayer): Allocation site pretenuring may make this method obsolete. | |
1681 // Re-visit incremental marking heuristics. | |
1682 bool IsHighSurvivalRate() { return high_survival_rate_period_length_ > 0; } | |
1683 | |
1684 void ConfigureInitialOldGenerationSize(); | 1680 void ConfigureInitialOldGenerationSize(); |
1685 | 1681 |
1686 bool HasLowYoungGenerationAllocationRate(); | 1682 bool HasLowYoungGenerationAllocationRate(); |
1687 bool HasLowOldGenerationAllocationRate(); | 1683 bool HasLowOldGenerationAllocationRate(); |
1688 double YoungGenerationMutatorUtilization(); | 1684 double YoungGenerationMutatorUtilization(); |
1689 double OldGenerationMutatorUtilization(); | 1685 double OldGenerationMutatorUtilization(); |
1690 | 1686 |
1691 void ReduceNewSpaceSize(); | 1687 void ReduceNewSpaceSize(); |
1692 | 1688 |
1693 bool TryFinalizeIdleIncrementalMarking( | 1689 bool TryFinalizeIdleIncrementalMarking( |
(...skipping 1031 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2725 friend class LargeObjectSpace; | 2721 friend class LargeObjectSpace; |
2726 friend class NewSpace; | 2722 friend class NewSpace; |
2727 friend class PagedSpace; | 2723 friend class PagedSpace; |
2728 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); | 2724 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); |
2729 }; | 2725 }; |
2730 | 2726 |
2731 } // namespace internal | 2727 } // namespace internal |
2732 } // namespace v8 | 2728 } // namespace v8 |
2733 | 2729 |
2734 #endif // V8_HEAP_HEAP_H_ | 2730 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |