DescriptionUse ES2015-style TypedArray prototype chain
This patch switches TypedArrays to use the prototype chain described
in the ES2015 specification, which adds a %TypedArray% superclass above
all individual TypedArray types. Most methods are defined on the
superclass rather than the subclasses.
In order to prevent a performance regression, a few methods are
marked as inline. Inlining might prevent code which was previously
monomorphic from becoming polymorphic, and it was specifically
applied in places where methods became more polymorphic than before.
Tests with realistic workloads would be nice to do before this
ships in stable.
This patch does not bring TypedArrays up to full spec compliance. In
particular, @@species is not yet supported.
R=cbruni
BUG=v8:4085
LOG=Y
Committed: https://crrev.com/07c91dccbe55c7be3ec75857dee5ad59873330b7
Cr-Commit-Position: refs/heads/master@{#33050}
Patch Set 1 #Patch Set 2 : Fix Uint8Array reference #Patch Set 3 : Fix more tests #Patch Set 4 : Fix some things about the proto chain and add stricter constructor checks #
Total comments: 12
Patch Set 5 : Test of prototype property descriptor #
Messages
Total messages: 37 (14 generated)
|