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

Issue 1159433003: Use GetProperty for getting elements. (Closed)

Created:
5 years, 7 months ago by Toon Verwaest
Modified:
5 years, 6 months ago
Reviewers:
Igor Sheludko
CC:
v8-dev, Yang
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Use GetProperty for getting elements. This also fixes issues with - kMaxUint32 being a valid length but not index cornercases - exotic integer objects masking "exotic indexes" even though its in the prototype chain - concating of holey sloppy arguments BUG=v8:4137 LOG=n Committed: https://crrev.com/2fb894fa586485adbf8aec3a6101b6dd35573002 Cr-Commit-Position: refs/heads/master@{#28754}

Patch Set 1 : #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 4

Patch Set 5 : Addressed comments #

Patch Set 6 : Addressed comments #

Patch Set 7 : #

Total comments: 1

Patch Set 8 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+278 lines, -447 lines) Patch
M src/api.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M src/array.js View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/builtins.cc View 1 2 3 4 5 3 chunks +9 lines, -13 lines 0 comments Download
M src/compiler/js-typed-lowering.cc View 1 2 3 4 5 2 chunks +2 lines, -4 lines 0 comments Download
M src/elements.h View 1 2 3 4 5 5 chunks +15 lines, -25 lines 0 comments Download
M src/elements.cc View 1 2 3 4 5 6 7 20 chunks +124 lines, -122 lines 0 comments Download
M src/ic/ic.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M src/json-parser.h View 1 chunk +1 line, -1 line 0 comments Download
M src/json-stringifier.h View 1 chunk +1 line, -1 line 0 comments Download
M src/lookup.h View 3 chunks +4 lines, -2 lines 0 comments Download
M src/lookup.cc View 1 2 3 4 5 8 chunks +28 lines, -6 lines 0 comments Download
M src/lookup-inl.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M src/objects.h View 1 2 3 4 5 7 chunks +8 lines, -28 lines 0 comments Download
M src/objects.cc View 1 2 3 4 5 17 chunks +19 lines, -185 lines 0 comments Download
M src/objects-inl.h View 1 2 3 4 5 6 6 chunks +17 lines, -15 lines 0 comments Download
M src/runtime/runtime-array.cc View 1 2 3 4 5 1 chunk +5 lines, -8 lines 0 comments Download
M src/runtime/runtime-classes.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M src/runtime/runtime-debug.cc View 1 2 3 4 5 1 chunk +2 lines, -3 lines 0 comments Download
M src/runtime/runtime-typedarray.cc View 1 2 3 4 4 chunks +9 lines, -7 lines 0 comments Download
M src/utils.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-api.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M test/cctest/test-api-interceptors.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M test/mjsunit/enumeration-order.js View 2 chunks +4 lines, -4 lines 0 comments Download
M test/mjsunit/es6/indexed-integer-exotics.js View 4 chunks +7 lines, -7 lines 0 comments Download
M test/mjsunit/regress/regress-581.js View 1 chunk +4 lines, -2 lines 0 comments Download
M test/mjsunit/regress/regress-splice-large-index.js View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 17 (8 generated)
Toon Verwaest
PTAL
5 years, 7 months ago (2015-05-22 17:36:18 UTC) #7
Igor Sheludko
https://codereview.chromium.org/1159433003/diff/140001/src/elements.cc File src/elements.cc (right): https://codereview.chromium.org/1159433003/diff/140001/src/elements.cc#newcode1643 src/elements.cc:1643: return index; I think we should not break this ...
5 years, 7 months ago (2015-05-26 17:11:56 UTC) #8
Toon Verwaest
Addressed comments. I cannot support GetKeyForIndex in sloppy arguments objects though. Marking it as unreachable ...
5 years, 7 months ago (2015-05-27 10:06:25 UTC) #9
Toon Verwaest
Addressed all the comments now. (Also rebased.) Now this CL additionally fixes enumerating sloppy mode ...
5 years, 6 months ago (2015-06-02 07:37:11 UTC) #10
Igor Sheludko
Nice solution! lgtm with a nit: https://codereview.chromium.org/1159433003/diff/200001/src/elements.cc File src/elements.cc (right): https://codereview.chromium.org/1159433003/diff/200001/src/elements.cc#newcode1523 src/elements.cc:1523: Object* key = ...
5 years, 6 months ago (2015-06-02 09:36:41 UTC) #11
Toon Verwaest
Thanks. Addressed.
5 years, 6 months ago (2015-06-02 10:10:27 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1159433003/220001
5 years, 6 months ago (2015-06-02 10:10:46 UTC) #15
commit-bot: I haz the power
Committed patchset #8 (id:220001)
5 years, 6 months ago (2015-06-02 10:42:21 UTC) #16
commit-bot: I haz the power
5 years, 6 months ago (2015-06-02 10:42:38 UTC) #17
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/2fb894fa586485adbf8aec3a6101b6dd35573002
Cr-Commit-Position: refs/heads/master@{#28754}

Powered by Google App Engine
This is Rietveld 408576698