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

Unified Diff: src/objects.h

Issue 96783002: Allocation site pretenuring. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
« src/heap-inl.h ('K') | « src/hydrogen.cc ('k') | src/objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index f98c025ddd3ec0de5ac66198180dd0765406d3cc..51ab11fada7951841a2fc4b8184f39c1f30f6aa6 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -8157,11 +8157,9 @@ class AllocationSite: public Struct {
inline void IncrementMementoCreateCount();
- PretenureFlag GetPretenureMode() {
- int mode = pretenure_decision()->value();
- // Zombie objects "decide" to be untenured.
- return (mode == kTenure) ? TENURED : NOT_TENURED;
- }
+ PretenureFlag GetPretenureMode();
+
+ void ResetPretenureDecision();
// The pretenuring decision is made during gc, and the zombie state allows
// us to recognize when an allocation site is just being kept alive because
« src/heap-inl.h ('K') | « src/hydrogen.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698