Merged r17800, r17801 into 3.21 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/80653002

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