Reviewers: titzer,

Description:
Add allocation sites to scratchpad only if a significant amount of mementos was
found.

BUG=

Please review this at https://codereview.chromium.org/284223007/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files (+1, -1 lines):
  M src/objects-inl.h


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;
 }




--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to