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

Issue 799853003: Use proper ToLength() operation in %ArrayConcat() (Closed)

Created:
6 years ago by caitp (gmail)
Modified:
6 years ago
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Project:
v8
Visibility:
Public.

Description

Use proper ToLength() operation in %ArrayConcat() LOG=N R=dslomov@chromium.org BUG= Committed: https://crrev.com/aed5d734e66093c54caedf957895764a20db82b1 Cr-Commit-Position: refs/heads/master@{#25828}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Try ToUint32 before calling JS ToLength() #

Total comments: 5

Patch Set 3 : Add tests including primitive non-ToNumber-able toString / valueOf #

Patch Set 4 : Tests for toString/valueOf throwing user exception #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -2 lines) Patch
M src/bootstrapper.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/contexts.h View 2 chunks +2 lines, -0 lines 0 comments Download
M src/execution.h View 1 chunk +5 lines, -0 lines 0 comments Download
M src/execution.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M src/runtime/runtime-array.cc View 1 1 chunk +6 lines, -2 lines 0 comments Download
M test/mjsunit/harmony/array-concat.js View 1 2 3 1 chunk +104 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (2 generated)
caitp (gmail)
https://codereview.chromium.org/799853003/diff/1/src/runtime/runtime-array.cc File src/runtime/runtime-array.cc (right): https://codereview.chromium.org/799853003/diff/1/src/runtime/runtime-array.cc#newcode464 src/runtime/runtime-array.cc:464: // TODO(caitp): ToLength(Get(receiver, "length")) should be a single op. ...
6 years ago (2014-12-13 02:00:47 UTC) #1
Dmitry Lomov (no reviews)
Other than comment below looks good, but I think one more important thing to look ...
6 years ago (2014-12-13 10:42:49 UTC) #3
caitp (gmail)
On 2014/12/13 10:42:49, Dmitry Lomov (chromium) wrote: > Other than comment below looks good, but ...
6 years ago (2014-12-13 16:41:34 UTC) #4
Dmitry Lomov (no reviews)
Couple more comments (one thing I missed in my prev review is that ToUint32 can ...
6 years ago (2014-12-15 07:23:52 UTC) #5
caitp (gmail)
https://codereview.chromium.org/799853003/diff/20001/src/runtime/runtime-array.cc File src/runtime/runtime-array.cc (right): https://codereview.chromium.org/799853003/diff/20001/src/runtime/runtime-array.cc#newcode468 src/runtime/runtime-array.cc:468: val->ToUint32(&length); On 2014/12/15 07:23:51, Dmitry Lomov (chromium) wrote: > ...
6 years ago (2014-12-15 14:11:00 UTC) #6
Dmitry Lomov (no reviews)
https://codereview.chromium.org/799853003/diff/20001/src/runtime/runtime-array.cc File src/runtime/runtime-array.cc (right): https://codereview.chromium.org/799853003/diff/20001/src/runtime/runtime-array.cc#newcode468 src/runtime/runtime-array.cc:468: val->ToUint32(&length); On 2014/12/15 14:11:00, caitp wrote: > On 2014/12/15 ...
6 years ago (2014-12-15 14:18:20 UTC) #7
caitp (gmail)
On 2014/12/15 14:18:20, Dmitry Lomov (chromium) wrote: > https://codereview.chromium.org/799853003/diff/20001/src/runtime/runtime-array.cc > File src/runtime/runtime-array.cc (right): > > ...
6 years ago (2014-12-15 17:46:19 UTC) #8
Dmitry Lomov (no reviews)
On 2014/12/15 17:46:19, caitp wrote: > On 2014/12/15 14:18:20, Dmitry Lomov (chromium) wrote: > > ...
6 years ago (2014-12-15 17:48:32 UTC) #9
caitp (gmail)
https://codereview.chromium.org/799853003/diff/20001/test/mjsunit/harmony/array-concat.js File test/mjsunit/harmony/array-concat.js (right): https://codereview.chromium.org/799853003/diff/20001/test/mjsunit/harmony/array-concat.js#newcode80 test/mjsunit/harmony/array-concat.js:80: "length": {valueOf: null, toString: null}, On 2014/12/15 07:23:51, Dmitry ...
6 years ago (2014-12-15 18:15:29 UTC) #10
Dmitry Lomov (no reviews)
lgtm
6 years ago (2014-12-15 18:40:08 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/799853003/60001
6 years ago (2014-12-15 18:41:35 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001)
6 years ago (2014-12-15 19:08:37 UTC) #14
caitp (gmail)
On 2014/12/15 19:08:37, I haz the power (commit-bot) wrote: > Committed patchset #4 (id:60001) I ...
6 years ago (2014-12-16 02:51:31 UTC) #15
Dmitry Lomov (no reviews)
On 2014/12/16 02:51:31, caitp wrote: > On 2014/12/15 19:08:37, I haz the power (commit-bot) wrote: ...
6 years ago (2014-12-16 06:59:29 UTC) #16
commit-bot: I haz the power
6 years ago (2014-12-17 10:13:44 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/aed5d734e66093c54caedf957895764a20db82b1
Cr-Commit-Position: refs/heads/master@{#25828}

Powered by Google App Engine
This is Rietveld 408576698