Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps: cherry-pick 6da51b4 from v8's upstream #2801

Closed
wants to merge 1 commit into from

Conversation

indutny
Copy link
Member

@indutny indutny commented Sep 10, 2015

Original commit message:

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}

Benchmark results:

 buffers/buffer-iterate.js size=16386 type=slow method=for n=1000:
 ./node: 71607 node: 8702.3 ............ 722.85%

Improvement depends on the code, but generally brings us back to the
performance that we had before the v8 update (if not making it
faster).

This should be backported to 4.0.

cc @nodejs/v8 @rvagg @bnoordhuis @trevnorris

Original commit message:

    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@{nodejs#30678}

Benchmark results:

   buffers/buffer-iterate.js size=16386 type=slow method=for n=1000:
   ./node: 71607 node: 8702.3 ............ 722.85%

Improvement depends on the code, but generally brings us back to the
performance that we had before the v8 update (if not making it
faster).
@ChALkeR ChALkeR added the v8 engine Issues and PRs related to the V8 dependency. label Sep 10, 2015
@bnoordhuis
Copy link
Member

LGTM

1 similar comment
@trevnorris
Copy link
Contributor

LGTM

@indutny
Copy link
Member Author

indutny commented Sep 10, 2015

@trevnorris @bnoordhuis feel free to land it if you have some availability.

indutny added a commit that referenced this pull request Sep 10, 2015
Original commit message:

    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}

Benchmark results:

   buffers/buffer-iterate.js size=16386 type=slow method=for n=1000:
   ./node: 71607 node: 8702.3 ............ 722.85%

Improvement depends on the code, but generally brings us back to the
performance that we had before the v8 update (if not making it
faster).

Fixes: #2463
PR-URL: #2801
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
@bnoordhuis
Copy link
Member

Landed in acb6779.

@bnoordhuis bnoordhuis closed this Sep 10, 2015
@indutny indutny deleted the fix/buffer-iteration-slow branch September 10, 2015 20:42
@indutny
Copy link
Member Author

indutny commented Sep 10, 2015

Thank you, @bnoordhuis !

indutny added a commit that referenced this pull request Sep 11, 2015
Original commit message:

    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}

Benchmark results:

   buffers/buffer-iterate.js size=16386 type=slow method=for n=1000:
   ./node: 71607 node: 8702.3 ............ 722.85%

Improvement depends on the code, but generally brings us back to the
performance that we had before the v8 update (if not making it
faster).

Fixes: #2463
PR-URL: #2801
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
oleavr added a commit to frida/v8 that referenced this pull request Sep 11, 2015
Cherry-picked from Node.js:

commit acb6779c19abf248a4c6d5c3d3389805e7ee8b8d
Author: Fedor Indutny <fedor@indutny.com>
Date:   Thu Sep 10 12:26:50 2015 -0700

    deps: cherry-pick 6da51b4 from v8's upstream

    Original commit message:

        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}

    Benchmark results:

       buffers/buffer-iterate.js size=16386 type=slow method=for n=1000:
       ./node: 71607 node: 8702.3 ............ 722.85%

    Improvement depends on the code, but generally brings us back to the
    performance that we had before the v8 update (if not making it
    faster).

    Fixes: nodejs/node#2463
    PR-URL: nodejs/node#2801
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Trevor Norris <trev.norris@gmail.com>
oleavr added a commit to frida/v8 that referenced this pull request Sep 11, 2015
Cherry-picked from Node.js:

commit acb6779c19abf248a4c6d5c3d3389805e7ee8b8d
Author: Fedor Indutny <fedor@indutny.com>
Date:   Thu Sep 10 12:26:50 2015 -0700

    deps: cherry-pick 6da51b4 from v8's upstream

    Original commit message:

        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}

    Benchmark results:

       buffers/buffer-iterate.js size=16386 type=slow method=for n=1000:
       ./node: 71607 node: 8702.3 ............ 722.85%

    Improvement depends on the code, but generally brings us back to the
    performance that we had before the v8 update (if not making it
    faster).

    Fixes: nodejs/node#2463
    PR-URL: nodejs/node#2801
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Trevor Norris <trev.norris@gmail.com>
oleavr added a commit to frida/v8 that referenced this pull request Sep 12, 2015
Cherry-picked from Node.js:

commit acb6779c19abf248a4c6d5c3d3389805e7ee8b8d
Author: Fedor Indutny <fedor@indutny.com>
Date:   Thu Sep 10 12:26:50 2015 -0700

    deps: cherry-pick 6da51b4 from v8's upstream

    Original commit message:

        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}

    Benchmark results:

       buffers/buffer-iterate.js size=16386 type=slow method=for n=1000:
       ./node: 71607 node: 8702.3 ............ 722.85%

    Improvement depends on the code, but generally brings us back to the
    performance that we had before the v8 update (if not making it
    faster).

    Fixes: nodejs/node#2463
    PR-URL: nodejs/node#2801
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Trevor Norris <trev.norris@gmail.com>
oleavr added a commit to frida/v8 that referenced this pull request Sep 12, 2015
Cherry-picked from Node.js:

commit acb6779c19abf248a4c6d5c3d3389805e7ee8b8d
Author: Fedor Indutny <fedor@indutny.com>
Date:   Thu Sep 10 12:26:50 2015 -0700

    deps: cherry-pick 6da51b4 from v8's upstream

    Original commit message:

        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}

    Benchmark results:

       buffers/buffer-iterate.js size=16386 type=slow method=for n=1000:
       ./node: 71607 node: 8702.3 ............ 722.85%

    Improvement depends on the code, but generally brings us back to the
    performance that we had before the v8 update (if not making it
    faster).

    Fixes: nodejs/node#2463
    PR-URL: nodejs/node#2801
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Trevor Norris <trev.norris@gmail.com>
@rvagg rvagg mentioned this pull request Sep 12, 2015
oleavr added a commit to frida/v8 that referenced this pull request Sep 12, 2015
Cherry-picked from Node.js:

commit acb6779c19abf248a4c6d5c3d3389805e7ee8b8d
Author: Fedor Indutny <fedor@indutny.com>
Date:   Thu Sep 10 12:26:50 2015 -0700

    deps: cherry-pick 6da51b4 from v8's upstream

    Original commit message:

        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}

    Benchmark results:

       buffers/buffer-iterate.js size=16386 type=slow method=for n=1000:
       ./node: 71607 node: 8702.3 ............ 722.85%

    Improvement depends on the code, but generally brings us back to the
    performance that we had before the v8 update (if not making it
    faster).

    Fixes: nodejs/node#2463
    PR-URL: nodejs/node#2801
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Trevor Norris <trev.norris@gmail.com>
oleavr added a commit to frida/v8 that referenced this pull request Sep 12, 2015
Cherry-picked from Node.js:

commit acb6779c19abf248a4c6d5c3d3389805e7ee8b8d
Author: Fedor Indutny <fedor@indutny.com>
Date:   Thu Sep 10 12:26:50 2015 -0700

    deps: cherry-pick 6da51b4 from v8's upstream

    Original commit message:

        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}

    Benchmark results:

       buffers/buffer-iterate.js size=16386 type=slow method=for n=1000:
       ./node: 71607 node: 8702.3 ............ 722.85%

    Improvement depends on the code, but generally brings us back to the
    performance that we had before the v8 update (if not making it
    faster).

    Fixes: nodejs/node#2463
    PR-URL: nodejs/node#2801
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Trevor Norris <trev.norris@gmail.com>
oleavr added a commit to frida/v8 that referenced this pull request Sep 12, 2015
Cherry-picked from Node.js:

commit acb6779c19abf248a4c6d5c3d3389805e7ee8b8d
Author: Fedor Indutny <fedor@indutny.com>
Date:   Thu Sep 10 12:26:50 2015 -0700

    deps: cherry-pick 6da51b4 from v8's upstream

    Original commit message:

        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}

    Benchmark results:

       buffers/buffer-iterate.js size=16386 type=slow method=for n=1000:
       ./node: 71607 node: 8702.3 ............ 722.85%

    Improvement depends on the code, but generally brings us back to the
    performance that we had before the v8 update (if not making it
    faster).

    Fixes: nodejs/node#2463
    PR-URL: nodejs/node#2801
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Trevor Norris <trev.norris@gmail.com>
oleavr added a commit to frida/v8 that referenced this pull request Sep 12, 2015
Cherry-picked from Node.js:

commit acb6779c19abf248a4c6d5c3d3389805e7ee8b8d
Author: Fedor Indutny <fedor@indutny.com>
Date:   Thu Sep 10 12:26:50 2015 -0700

    deps: cherry-pick 6da51b4 from v8's upstream

    Original commit message:

        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}

    Benchmark results:

       buffers/buffer-iterate.js size=16386 type=slow method=for n=1000:
       ./node: 71607 node: 8702.3 ............ 722.85%

    Improvement depends on the code, but generally brings us back to the
    performance that we had before the v8 update (if not making it
    faster).

    Fixes: nodejs/node#2463
    PR-URL: nodejs/node#2801
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Trevor Norris <trev.norris@gmail.com>
oleavr added a commit to frida/v8 that referenced this pull request Sep 12, 2015
Cherry-picked from Node.js:

commit acb6779c19abf248a4c6d5c3d3389805e7ee8b8d
Author: Fedor Indutny <fedor@indutny.com>
Date:   Thu Sep 10 12:26:50 2015 -0700

    deps: cherry-pick 6da51b4 from v8's upstream

    Original commit message:

        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}

    Benchmark results:

       buffers/buffer-iterate.js size=16386 type=slow method=for n=1000:
       ./node: 71607 node: 8702.3 ............ 722.85%

    Improvement depends on the code, but generally brings us back to the
    performance that we had before the v8 update (if not making it
    faster).

    Fixes: nodejs/node#2463
    PR-URL: nodejs/node#2801
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Trevor Norris <trev.norris@gmail.com>
oleavr added a commit to frida/v8 that referenced this pull request Sep 12, 2015
Cherry-picked from Node.js:

commit acb6779c19abf248a4c6d5c3d3389805e7ee8b8d
Author: Fedor Indutny <fedor@indutny.com>
Date:   Thu Sep 10 12:26:50 2015 -0700

    deps: cherry-pick 6da51b4 from v8's upstream

    Original commit message:

        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}

    Benchmark results:

       buffers/buffer-iterate.js size=16386 type=slow method=for n=1000:
       ./node: 71607 node: 8702.3 ............ 722.85%

    Improvement depends on the code, but generally brings us back to the
    performance that we had before the v8 update (if not making it
    faster).

    Fixes: nodejs/node#2463
    PR-URL: nodejs/node#2801
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Trevor Norris <trev.norris@gmail.com>
@Fishrock123 Fishrock123 mentioned this pull request Sep 13, 2015
7 tasks
@rvagg rvagg mentioned this pull request Sep 22, 2015
@MylesBorins
Copy link
Contributor

landed in lts as 6098504

oleavr added a commit to frida/v8 that referenced this pull request Dec 26, 2015
Cherry-picked from Node.js:

commit acb6779c19abf248a4c6d5c3d3389805e7ee8b8d
Author: Fedor Indutny <fedor@indutny.com>
Date:   Thu Sep 10 12:26:50 2015 -0700

    deps: cherry-pick 6da51b4 from v8's upstream

    Original commit message:

        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}

    Benchmark results:

       buffers/buffer-iterate.js size=16386 type=slow method=for n=1000:
       ./node: 71607 node: 8702.3 ............ 722.85%

    Improvement depends on the code, but generally brings us back to the
    performance that we had before the v8 update (if not making it
    faster).

    Fixes: nodejs/node#2463
    PR-URL: nodejs/node#2801
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Trevor Norris <trev.norris@gmail.com>
oleavr added a commit to frida/v8 that referenced this pull request Aug 11, 2016
Cherry-picked from Node.js:

commit acb6779c19abf248a4c6d5c3d3389805e7ee8b8d
Author: Fedor Indutny <fedor@indutny.com>
Date:   Thu Sep 10 12:26:50 2015 -0700

    deps: cherry-pick 6da51b4 from v8's upstream

    Original commit message:

        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}

    Benchmark results:

       buffers/buffer-iterate.js size=16386 type=slow method=for n=1000:
       ./node: 71607 node: 8702.3 ............ 722.85%

    Improvement depends on the code, but generally brings us back to the
    performance that we had before the v8 update (if not making it
    faster).

    Fixes: nodejs/node#2463
    PR-URL: nodejs/node#2801
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v8 engine Issues and PRs related to the V8 dependency.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants