Vector ICs: Clear the vector ic slots appropriately during debugging.
authormvstanton <mvstanton@chromium.org>
Thu, 19 Mar 2015 08:03:55 +0000 (01:03 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 19 Mar 2015 08:04:06 +0000 (08:04 +0000)
commit35c3d47e88cb34e3a96ad740a43bfce36f8fd22b
tree91478389bd5eb082a91c7ad8c4b56f0643fefb90
parented082f2adc013bcd958ca334fc5eda05a4747257
Vector ICs: Clear the vector ic slots appropriately during debugging.

When the debugger is active, a host of connected functions get an associated
DebugInfo structure, and their code is copied. The debugger uses the original
code to occasionally patch ICs with their initial value. Although IC learning
can occur, it's thrown away often, depending on the constellation of
breakpoints active or deactivating. Finally, feedback is discarded when the
debugger is turned off.

The type feedback vector needs to be brought into line with this behavior, so
now the debugger clears it's IC slots at appropriate bottlenecks in debug.cc.

R=yangguo@chromium.org
BUG=

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

Cr-Commit-Position: refs/heads/master@{#27289}
src/debug.cc
test/mjsunit/debug-stepframe-clearing.js [new file with mode: 0644]