Merge r10466 from the bleeding_edge to the 3.7 branch.

Limit number of loop iterations in Heap::ReserveSpace.

This allows to avoid infinite loops in pathalogical cases e.g. when OS refuses to give new pages to V8.

R=erik.corry@gmail.com
BUG=99027

Review URL: https://chromiumcodereview.appspot.com/8286020
------------------------------------------------------------------------
Review URL: https://chromiumcodereview.appspot.com/9226020

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