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

Unified Diff: src/heap.h

Issue 96783002: Allocation site pretenuring. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/flag-definitions.h ('k') | src/heap.cc » ('j') | src/heap.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap.h
diff --git a/src/heap.h b/src/heap.h
index 1c8e0e16e60405f0c03b08b971057b51fa7a9d45..cf9121f47025824718febad017eb4438b400e6db 100644
--- a/src/heap.h
+++ b/src/heap.h
@@ -2186,6 +2186,13 @@ class Heap {
void ProcessArrayBuffers(WeakObjectRetainer* retainer, bool record_slots);
void ProcessAllocationSites(WeakObjectRetainer* retainer, bool record_slots);
+ // Deopts all dependent code of the currently registered allocation sites.
+ void DeoptAllAllocationSitesDependentCode();
+
+ // Evaluates local pretenuring and calls DeoptAllAllocationSitesDependentCode
+ // if too many objects died in the old generation.
+ void EvaluateLocalPretenuring(int64_t objects_before_gc);
+
// Called on heap tear-down.
void TearDownArrayBuffers();
@@ -2229,6 +2236,8 @@ class Heap {
static const int kYoungSurvivalRateLowThreshold = 10;
static const int kYoungSurvivalRateAllowedDeviation = 15;
+ static const int kOldSurvivalRateLowThreshold = 20;
+
int young_survivors_after_last_gc_;
int high_survival_rate_period_length_;
int low_survival_rate_period_length_;
« no previous file with comments | « src/flag-definitions.h ('k') | src/heap.cc » ('j') | src/heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698