Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Side by Side Diff: src/heap/heap.h

Issue 2304613002: Revert of [heap] Simplify heuristics for incremental step size. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/heap/heap.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
1680 void ConfigureInitialOldGenerationSize(); 1684 void ConfigureInitialOldGenerationSize();
1681 1685
1682 bool HasLowYoungGenerationAllocationRate(); 1686 bool HasLowYoungGenerationAllocationRate();
1683 bool HasLowOldGenerationAllocationRate(); 1687 bool HasLowOldGenerationAllocationRate();
1684 double YoungGenerationMutatorUtilization(); 1688 double YoungGenerationMutatorUtilization();
1685 double OldGenerationMutatorUtilization(); 1689 double OldGenerationMutatorUtilization();
1686 1690
1687 void ReduceNewSpaceSize(); 1691 void ReduceNewSpaceSize();
1688 1692
1689 bool TryFinalizeIdleIncrementalMarking( 1693 bool TryFinalizeIdleIncrementalMarking(
(...skipping 1031 matching lines...) Expand 10 before | Expand all | Expand 10 after
2721 friend class LargeObjectSpace; 2725 friend class LargeObjectSpace;
2722 friend class NewSpace; 2726 friend class NewSpace;
2723 friend class PagedSpace; 2727 friend class PagedSpace;
2724 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); 2728 DISALLOW_COPY_AND_ASSIGN(AllocationObserver);
2725 }; 2729 };
2726 2730
2727 } // namespace internal 2731 } // namespace internal
2728 } // namespace v8 2732 } // namespace v8
2729 2733
2730 #endif // V8_HEAP_HEAP_H_ 2734 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698