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

Issue 679113003: Correctly handle Array unshift/splices that move elements past the max length of an Array (Closed)

Created:
6 years, 1 month ago by adamk
Modified:
6 years, 1 month ago
CC:
v8-dev
Project:
v8
Visibility:
Public.

Description

Correctly handle Array unshift/splices that move elements past the max length of an Array BUG=v8:2615 LOG=n R=verwaest@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=25270

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -41 lines) Patch
M src/array.js View 3 chunks +18 lines, -2 lines 2 comments Download
D test/mjsunit/bugs/bug-2615.js View 1 chunk +0 lines, -40 lines 0 comments Download
A + test/mjsunit/regress/regress-splice-large-index.js View 0 chunks +-1 lines, --1 lines 0 comments Download

Messages

Total messages: 12 (2 generated)
adamk
Feel free to tell me this SparseMove() is getting too hacky. This is mostly an ...
6 years, 1 month ago (2014-10-27 14:20:47 UTC) #2
adamk
friendly ping? curious for thoughts on this approach.
6 years, 1 month ago (2014-10-29 10:33:34 UTC) #4
Toon Verwaest
lgtm Alternatively you could precalculate at which limit you'll overflow index-range, and just have 2 ...
6 years, 1 month ago (2014-11-04 09:30:33 UTC) #5
adamk
On 2014/11/04 at 09:30:33, verwaest wrote: > lgtm > > Alternatively you could precalculate at ...
6 years, 1 month ago (2014-11-04 16:02:42 UTC) #6
Toon Verwaest
sgtm
6 years, 1 month ago (2014-11-05 11:58:57 UTC) #7
adamk
On 2014/11/04 09:30:33, Toon Verwaest wrote: > lgtm > > Alternatively you could precalculate at ...
6 years, 1 month ago (2014-11-10 18:32:45 UTC) #8
Toon Verwaest
You are right, you'd need to presort... Not sure if that's better. https://codereview.chromium.org/679113003/diff/1/src/array.js File src/array.js ...
6 years, 1 month ago (2014-11-11 13:22:21 UTC) #9
adamk
https://codereview.chromium.org/679113003/diff/1/src/array.js File src/array.js (right): https://codereview.chromium.org/679113003/diff/1/src/array.js#newcode275 src/array.js:275: if (new_key > 0xffffffff) { On 2014/11/11 13:22:21, Toon ...
6 years, 1 month ago (2014-11-11 18:01:01 UTC) #10
adamk
Landing unmodified since it's not clear that sorting is advantageous here. Once tests are passing ...
6 years, 1 month ago (2014-11-11 19:02:43 UTC) #11
adamk
6 years, 1 month ago (2014-11-11 19:08:35 UTC) #12
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as 25270 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698