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

Unified Diff: src/objects-inl.h

Issue 284223007: Add allocation sites to scratchpad only if a significant amount of mementos was found. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index 1a59dcc1a212077206a35885c0c9353989aafacd..0e0c808f2f628f3373d0823cf996fac472a9eab4 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -1566,7 +1566,7 @@ inline bool AllocationSite::IncrementMementoFoundCount() {
int value = memento_found_count();
set_memento_found_count(value + 1);
- return value == 0;
+ return value == kPretenureMinimumCreated;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698