TypedArray accessor detection: consider entire prototype chain
authorfedor <fedor@indutny.com>
Thu, 10 Sep 2015 12:21:47 +0000 (05:21 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 10 Sep 2015 12:21:55 +0000 (12:21 +0000)
commit6da51b4b660ea5fa594c3cb13a5ac032bbe1a1fb
tree02add9a4ab4758a0e8f6920f585bb59d181de2e6
parentebd16fd89d5a8881e28dbda81ab536c876e783f2
TypedArray accessor detection: consider entire prototype chain

When looking up a special accessor for known TypedArray fields
("length", "byteLength", "byteOffset"), consider the entire prototype
chain, not only the direct prototype.
This allows subclasses of TypedArrays to benefit from fast specialized
accesses.

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

Cr-Commit-Position: refs/heads/master@{#30678}
src/accessors.cc
test/mjsunit/regress/regress-typedarray-length.js