Speed-up 'new TypedArray(arrayLike)'.
authordslomov@chromium.org <dslomov@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 1 Aug 2013 08:52:21 +0000 (08:52 +0000)
committerdslomov@chromium.org <dslomov@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 1 Aug 2013 08:52:21 +0000 (08:52 +0000)
commit4ebeda216de6cfba8fea666295ff38fb1a2569ba
treea2be88e835b7ff74dba0adf9d6d4931635ad7605
parent3e7e3f70a63c22cb3321f1d2c2fc6c84881c93f1
Speed-up 'new TypedArray(arrayLike)'.

Handle specially the cases when the argument is a typed array,
in particular of the same type as the one we create.

Allocate backing store uninitialized in cases when we can guarantee
complete initialization.

R=bmeurer@chromium.org

Committed: https://code.google.com/p/v8/source/detail?r=15998

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16005 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
include/v8.h
src/d8.cc
src/runtime.cc
src/runtime.h
src/typedarray.js