From b2c9fcaa4c3f4ad9f0cc957349f14978aae5c267 Mon Sep 17 00:00:00 2001 From: "hpayer@chromium.org" Date: Mon, 19 May 2014 16:07:20 +0000 Subject: [PATCH] Add allocation sites to scratchpad only if a significant amount of mementos was found. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/objects-inl.h b/src/objects-inl.h index 1a59dcc1a2..0e0c808f2f 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; }