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

Issue 555173002: Array.prototype.sort: Unchecked calls to hasOwnProperty and push and sort (Closed)

Created:
6 years, 3 months ago by Diego Pino
Modified:
6 years, 3 months ago
CC:
aperez, vjaquez, gemont_igalia.com, v8-dev
Project:
v8
Visibility:
Public.

Description

Array.prototype.sort: Unchecked calls to hasOwnProperty and push and sort BUG=v8:3537 LOG=

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fixed issues #

Patch Set 3 : Added test #

Total comments: 5

Patch Set 4 : Fixed nits #

Total comments: 8

Patch Set 5 : Fixed last issues #

Total comments: 5

Patch Set 6 : Fixed 80-column line limit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -11 lines) Patch
M src/array.js View 1 2 3 4 5 6 chunks +12 lines, -11 lines 0 comments Download
M src/macros.py View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M test/mjsunit/array-sort.js View 1 2 3 4 1 chunk +44 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (6 generated)
aperez
On 2014/09/09 16:22:47, Diego Pino wrote: > mailto:dpino@igalia.com changed reviewers: > + mailto:aperez@igalia.com, mailto:ceyusa@gmail.com, mailto:gemont@igalia.com, ...
6 years, 3 months ago (2014-09-10 12:31:32 UTC) #2
arv (Not doing code reviews)
https://codereview.chromium.org/555173002/diff/1/src/array.js File src/array.js (right): https://codereview.chromium.org/555173002/diff/1/src/array.js#newcode867 src/array.js:867: ArrayPush.call(t_array, [i, a[i]]); %_CallFunction(t_array, [i, a[i]], ArrayPush) But why ...
6 years, 3 months ago (2014-09-10 15:47:39 UTC) #6
wingo
Missing a test; please add one. Thanks.
6 years, 3 months ago (2014-09-15 12:36:51 UTC) #7
Diego Pino
On 2014/09/15 12:36:51, wingo wrote: > Missing a test; please add one. Thanks. I updated ...
6 years, 3 months ago (2014-09-15 15:07:50 UTC) #9
arv (Not doing code reviews)
LGTM Just a few nits. https://codereview.chromium.org/555173002/diff/40001/test/mjsunit/array-sort.js File test/mjsunit/array-sort.js (right): https://codereview.chromium.org/555173002/diff/40001/test/mjsunit/array-sort.js#newcode408 test/mjsunit/array-sort.js:408: // Test sort doesn't ...
6 years, 3 months ago (2014-09-15 15:32:48 UTC) #10
Diego Pino
On 2014/09/15 15:32:48, arv wrote: Fixed nits. > https://codereview.chromium.org/555173002/diff/40001/test/mjsunit/array-sort.js#newcode415 > test/mjsunit/array-sort.js:415: Object.defineProperty(arr, "0", { get: ...
6 years, 3 months ago (2014-09-15 17:52:42 UTC) #11
arv (Not doing code reviews)
On 2014/09/15 17:52:42, Diego Pino wrote: > On 2014/09/15 15:32:48, arv wrote: > > Fixed ...
6 years, 3 months ago (2014-09-15 17:56:44 UTC) #12
arv (Not doing code reviews)
https://codereview.chromium.org/555173002/diff/60001/src/array.js File src/array.js (right): https://codereview.chromium.org/555173002/diff/60001/src/array.js#newcode973 src/array.js:973: if (!%_CallFunction(obj, i, ObjectHasOwnProperty) && Maybe use a helper ...
6 years, 3 months ago (2014-09-15 18:05:29 UTC) #13
wingo
https://codereview.chromium.org/555173002/diff/60001/test/mjsunit/array-sort.js File test/mjsunit/array-sort.js (right): https://codereview.chromium.org/555173002/diff/60001/test/mjsunit/array-sort.js#newcode420 test/mjsunit/array-sort.js:420: function TestSortDoesntDepenOnArrayPrototypePush() { "Depend". Also better to write out ...
6 years, 3 months ago (2014-09-16 08:47:48 UTC) #14
Diego Pino
https://codereview.chromium.org/555173002/diff/60001/test/mjsunit/array-sort.js File test/mjsunit/array-sort.js (right): https://codereview.chromium.org/555173002/diff/60001/test/mjsunit/array-sort.js#newcode413 test/mjsunit/array-sort.js:413: Object.defineProperty(arr, "0", {}); On 2014/09/15 18:05:28, arv wrote: > ...
6 years, 3 months ago (2014-09-16 09:56:38 UTC) #15
wingo
LGTM with nits, please add an OWNER https://codereview.chromium.org/555173002/diff/80001/src/array.js File src/array.js (right): https://codereview.chromium.org/555173002/diff/80001/src/array.js#newcode982 src/array.js:982: && !HAS_OWN_PROPERTY(obj, ...
6 years, 3 months ago (2014-09-16 12:11:53 UTC) #16
Diego Pino
https://codereview.chromium.org/555173002/diff/80001/src/array.js File src/array.js (right): https://codereview.chromium.org/555173002/diff/80001/src/array.js#newcode982 src/array.js:982: && !HAS_OWN_PROPERTY(obj, index) && HAS_OWN_PROPERTY(proto, index)) { On 2014/09/16 ...
6 years, 3 months ago (2014-09-16 13:23:21 UTC) #17
arv (Not doing code reviews)
https://codereview.chromium.org/555173002/diff/80001/test/mjsunit/array-sort.js File test/mjsunit/array-sort.js (right): https://codereview.chromium.org/555173002/diff/80001/test/mjsunit/array-sort.js#newcode419 test/mjsunit/array-sort.js:419: On 2014/09/16 at 13:23:20, Diego Pino wrote: > On ...
6 years, 3 months ago (2014-09-16 13:41:10 UTC) #18
arv (Not doing code reviews)
LGTM I'm not an owner. Adding Yang.
6 years, 3 months ago (2014-09-16 13:44:02 UTC) #20
Yang
On 2014/09/16 13:44:02, arv wrote: > LGTM > > I'm not an owner. Adding Yang. ...
6 years, 3 months ago (2014-09-16 14:31:50 UTC) #21
wingo
6 years, 3 months ago (2014-09-17 14:03:47 UTC) #22
On 2014/09/16 14:31:50, Yang wrote:
> On 2014/09/16 13:44:02, arv wrote:
> > LGTM
> > 
> > I'm not an owner. Adding Yang.
> 
> lgtm.

Yeeps!  I went to land this but didn't set the appropriate patch-by line. 
Apologies :-((

Landed in http://code.google.com/p/v8/source/detail?r=24005.

Powered by Google App Engine
This is Rietveld 408576698