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

Issue 279773002: Fix Array.prototype.push and Array.prototype.unshift for read-only length. (Closed)

Created:
6 years, 7 months ago by ulan
Modified:
6 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Fix Array.prototype.push and Array.prototype.unshift for read-only length. BUG= R=mstarzinger@chromium.org, mvstanton@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=21423

Patch Set 1 : #

Patch Set 2 : Fix test expectations #

Patch Set 3 : Read only length does not imply normalized array #

Patch Set 4 : Disable inlining of Push if length is read-only. #

Patch Set 5 : Extend test #

Total comments: 1

Patch Set 6 : Rename ChangeOfReadOnlyLength and fix getting length from array. #

Total comments: 3

Patch Set 7 : Address comments #

Total comments: 10

Patch Set 8 : Address comments #

Patch Set 9 : Whitespace #

Unified diffs Side-by-side diffs Delta from patch set Stats (+179 lines, -20 lines) Patch
M src/array.js View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M src/builtins.cc View 1 2 3 4 5 6 7 4 chunks +11 lines, -8 lines 0 comments Download
M src/hydrogen.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M src/ic.cc View 1 2 3 4 5 6 7 8 2 chunks +10 lines, -9 lines 0 comments Download
M src/objects.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M src/objects.cc View 1 2 3 4 5 6 7 2 chunks +43 lines, -0 lines 0 comments Download
A test/mjsunit/array-push-unshift-read-only-length.js View 1 2 3 4 1 chunk +107 lines, -0 lines 0 comments Download
M test/webkit/fast/js/Object-defineProperty-expected.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
ulan
PTAL
6 years, 7 months ago (2014-05-09 08:44:58 UTC) #1
ulan
On 2014/05/09 08:44:58, ulan wrote: > PTAL Found a flaw, this doesn't work with optimized ...
6 years, 7 months ago (2014-05-09 09:37:12 UTC) #2
ulan
I uploaded a new patch set with a hydrogen fix. PTAL.
6 years, 7 months ago (2014-05-09 12:26:56 UTC) #3
mvstanton
Couple of comments, if addressed then lgtm. https://codereview.chromium.org/279773002/diff/100001/src/builtins.cc File src/builtins.cc (right): https://codereview.chromium.org/279773002/diff/100001/src/builtins.cc#newcode387 src/builtins.cc:387: if (to_add ...
6 years, 7 months ago (2014-05-09 12:56:09 UTC) #4
Michael Starzinger
Looking good. https://codereview.chromium.org/279773002/diff/120001/src/builtins.cc File src/builtins.cc (right): https://codereview.chromium.org/279773002/diff/120001/src/builtins.cc#newcode390 src/builtins.cc:390: JSArray::ReadOnlyLengthError(array)); As discussed offline: Instead of handling ...
6 years, 7 months ago (2014-05-14 08:30:47 UTC) #5
ulan
Thank you, I uploaded new patch. Note that I changed KeyedStoreIC in ic.cc: there was ...
6 years, 7 months ago (2014-05-15 11:15:53 UTC) #6
Michael Starzinger
LGTM. Just a couple of nits and suggestions left. https://codereview.chromium.org/279773002/diff/160001/src/array.js File src/array.js (right): https://codereview.chromium.org/279773002/diff/160001/src/array.js#newcode606 src/array.js:606: ...
6 years, 7 months ago (2014-05-21 12:34:36 UTC) #7
ulan
Thank you for review. Landing. https://codereview.chromium.org/279773002/diff/160001/src/array.js File src/array.js (right): https://codereview.chromium.org/279773002/diff/160001/src/array.js#newcode606 src/array.js:606: if (len > 0) ...
6 years, 7 months ago (2014-05-21 14:52:21 UTC) #8
ulan
6 years, 7 months ago (2014-05-22 08:10:06 UTC) #9
Message was sent while issue was closed.
Committed patchset #9 manually as r21423 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698