Speed up typed array constructors.
authordslomov@chromium.org <dslomov@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 7 Nov 2013 14:56:40 +0000 (14:56 +0000)
committerdslomov@chromium.org <dslomov@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 7 Nov 2013 14:56:40 +0000 (14:56 +0000)
commitf3acd446ad2f280d2c306c01783fc18f93904ee6
treed6e0f9bfc7b2f5a5d0330de546c237dd9356fc28
parent233b8b4f96564714f338d73e24cfc9e49626fba9
Speed up typed array constructors.
 - Avoid calls into ToPositiveInteger for valid cases of 'undefined' arguments.
  (Otherwise it calls into runtime).
 - Reduce the checks performed in case offset for TypedArrayFromArrayBuffer
  constructor is called with no offset argument.

R=yangguo@chromium.org

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@17567 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/typedarray.js