Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(619)

Issue 1313493005: [accessors] second-chance typed array field lookup (Closed)

Created:
5 years, 3 months ago by fedor.indutny
Modified:
5 years, 3 months ago
CC:
jochen (gone - plz use gerrit), Michael Lippautz, v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

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. Committed: https://crrev.com/6da51b4b660ea5fa594c3cb13a5ac032bbe1a1fb Cr-Commit-Position: refs/heads/master@{#30678}

Patch Set 1 #

Patch Set 2 : lint #

Total comments: 10

Patch Set 3 : better way of doing things #

Patch Set 4 : instance descriptores #

Total comments: 6

Patch Set 5 : last fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -13 lines) Patch
M src/accessors.cc View 1 2 3 4 1 chunk +28 lines, -13 lines 0 comments Download
M test/mjsunit/regress/regress-typedarray-length.js View 1 2 3 1 chunk +37 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (8 generated)
fedor.indutny
Hello! This one seems to be very important for node.js, as we inherit our Buffer ...
5 years, 3 months ago (2015-09-09 06:28:32 UTC) #2
boopathi
lgtm
5 years, 3 months ago (2015-09-09 07:07:10 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1313493005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1313493005/20001
5 years, 3 months ago (2015-09-09 07:08:37 UTC) #6
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even if an ...
5 years, 3 months ago (2015-09-09 07:08:39 UTC) #8
fedor.indutny
Oops, got confused.
5 years, 3 months ago (2015-09-09 07:09:11 UTC) #9
Michael Achenbach
Adding better owners.
5 years, 3 months ago (2015-09-09 07:24:13 UTC) #11
jochen (gone - plz use gerrit)
Jakob, can you take a look please?
5 years, 3 months ago (2015-09-09 08:45:21 UTC) #13
Jakob Kummerow
The original code is broken. Instead of making it worse (uglier, hackier, more brittle), let's ...
5 years, 3 months ago (2015-09-09 11:51:07 UTC) #14
fedor.indutny
Thank you for the feedback. Hopefully, all of it was addressed. https://codereview.chromium.org/1313493005/diff/20001/src/accessors.cc File src/accessors.cc (right): ...
5 years, 3 months ago (2015-09-09 21:20:36 UTC) #15
fedor.indutny
Just realized that your test still fails, because I lookup properties on the prototype, not ...
5 years, 3 months ago (2015-09-09 21:24:28 UTC) #16
fedor.indutny
Jakob, I think I have figured it out, by using the instance_descriptors. The holder does ...
5 years, 3 months ago (2015-09-09 22:25:14 UTC) #17
Jakob Kummerow
A few more minor comments. LGTM if you address those. I've also updated the CL ...
5 years, 3 months ago (2015-09-10 11:33:56 UTC) #18
fedor.indutny
All fixed, thank you! https://codereview.chromium.org/1313493005/diff/60001/src/accessors.cc File src/accessors.cc (right): https://codereview.chromium.org/1313493005/diff/60001/src/accessors.cc#newcode113 src/accessors.cc:113: DescriptorArray* descriptors = map->instance_descriptors(); On ...
5 years, 3 months ago (2015-09-10 11:56:29 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1313493005/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1313493005/80001
5 years, 3 months ago (2015-09-10 11:56:45 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 3 months ago (2015-09-10 12:21:52 UTC) #23
commit-bot: I haz the power
5 years, 3 months ago (2015-09-10 12:22:05 UTC) #24
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/6da51b4b660ea5fa594c3cb13a5ac032bbe1a1fb
Cr-Commit-Position: refs/heads/master@{#30678}

Powered by Google App Engine
This is Rietveld 408576698