-
dslomov@chromium.org authored
This is a fix for performance regression. For new Uint8Array(arrayLike) and the likes, we allocate the backing store of typed array uninitialized and then proceed to feel it in with elements of arrayLike. If the loop over arrayLike runs to completion, we know that all elements of typed arrays had been assigned to and there is no uninitialized memory. If the loop does not run to completion, we propagate the exception to constructor caller, therefore the typed array is not exposed to user program. BUG=270507 R=yangguo@chromium.org Review URL: https://codereview.chromium.org/23463050 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16914 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
afdabcfd