Merge changes 8634 and 8636 to trunk.

Fix bug in prototype transitions cache clearing introduced by r8165.

Invalid loop nesting causes full cleanup of the prototype transitions cache on
every GC.
Review URL: http://codereview.chromium.org/7342045

git-svn-id: http://v8.googlecode.com/svn/trunk@8640 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2 files changed