Add allocation sites to scratchpad only if a significant amount of mementos was found.
authorhpayer@chromium.org <hpayer@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 19 May 2014 16:07:20 +0000 (16:07 +0000)
committerhpayer@chromium.org <hpayer@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 19 May 2014 16:07:20 +0000 (16:07 +0000)
BUG=
R=titzer@chromium.org

Review URL: https://codereview.chromium.org/284223007

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21370 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/objects-inl.h

index 1a59dcc1a212077206a35885c0c9353989aafacd..0e0c808f2f628f3373d0823cf996fac472a9eab4 100644 (file)
@@ -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;
 }