Merged r18483 into 3.22 branch.

Fix selection of popular pages in store buffer.

BUG=331444
LOG=N
R=verwaest@chromium.org

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

git-svn-id: https://v8.googlecode.com/svn/branches/3.22@18724 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
Merged r18116 into 3.22 branch.

Fix missing bounds check in n-arguments Array constructor.

BUG=v8:3027
R=ulan@chromium.org

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

git-svn-id: https://v8.googlecode.com/svn/branches/3.22@18740 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
Merge remote-tracking branch 'upstream/3.22' into 3.22