Merged r17800, r17801 into 3.22 branch.

Limit the size for typed arrays to MaxSmi.

Limit size of dehoistable array indices

BUG=319722,chromium:319835,chromium:319860
R=yangguo@chromium.org

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

git-svn-id: https://v8.googlecode.com/svn/branches/3.22@17956 ce2b1a6d-e550-0410-aec6-3dcde31c8c00