Fix responsiveness of high promotion mode heuristics.
authormstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 25 Jan 2012 13:46:42 +0000 (13:46 +0000)
committermstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 25 Jan 2012 13:46:42 +0000 (13:46 +0000)
commit4b913965a9f6bd22038ca1cf63efd2edad01c5cf
tree8cd03cf87c58d960a91250c9b6a27ca3cd4bce5b
parent09ff5c4c44be36b0a781d0ef2d6e742f59dda0c9
Fix responsiveness of high promotion mode heuristics.

This changes the heuristics for the high promotion mode to be checked
on all GCs (including scavenges), so that changes in the applications
behavior are recognized earlier. It also fixes miscalculations in the
survival counter and rate which caused heuristics to fail completely.

R=vegorov@chromium.org
BUG=v8:1899

Review URL: https://chromiumcodereview.appspot.com/9196003

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10500 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/heap.cc
src/heap.h