Reland "Harden NumberToSize against overflows."
authordslomov@chromium.org <dslomov@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 14 Nov 2013 11:40:32 +0000 (11:40 +0000)
committerdslomov@chromium.org <dslomov@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 14 Nov 2013 11:40:32 +0000 (11:40 +0000)
commitaefa2a2161113105fb203dfedf376a91ca1dfb5b
treed7835f173107a185cbc47a595896b3d02654fe78
parentc6705f5e40fe155b5325ae448c147e5d4b1aa1a6
Reland "Harden NumberToSize against overflows."

The callers to NumberToSize are supposed to validate the number, but
this adds a last line of defense.

TBR=jkummerow@chromium.org, ulan@chromium.org

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@17737 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/v8conversions.h