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

Issue 99272: Made sort on non-arrays also affect elements on the prototype, for JSC compatability. (Closed)

Created:
11 years, 7 months ago by Lasse Reichstein
Modified:
9 years, 6 months ago
CC:
v8-dev
Visibility:
Public.

Description

Made sort on non-arrays also affect elements on the prototype, for JSC compatability. Made sort on non-objects with inherited elements JSC compatible.

Patch Set 1 #

Total comments: 4

Patch Set 2 : Added unit tests. Fixed blatant errors. #

Patch Set 3 : Added one more test #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+214 lines, -3 lines) Patch
M src/array.js View 1 2 1 chunk +81 lines, -0 lines 7 comments Download
M src/runtime.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M test/mjsunit/array-sort.js View 2 1 chunk +129 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Lasse Reichstein
Review, please. Now passes the relevant layout test.
11 years, 7 months ago (2009-05-01 07:59:48 UTC) #1
Erik Corry
http://codereview.chromium.org/99272/diff/1/2 File src/array.js (right): http://codereview.chromium.org/99272/diff/1/2#newcode755 Line 755: var max = (proto_length < from) ? proto_length ...
11 years, 7 months ago (2009-05-01 08:13:53 UTC) #2
Mads Ager (chromium)
We need to add tests for this. There are uncovered paths in this code and ...
11 years, 7 months ago (2009-05-01 08:22:22 UTC) #3
Erik Corry
Does it lint? LGTM. http://codereview.chromium.org/99272/diff/1007/9 File src/array.js (right): http://codereview.chromium.org/99272/diff/1007/9#newcode717 Line 717: for (var o = ...
11 years, 7 months ago (2009-05-01 09:58:55 UTC) #4
Lasse Reichstein
11 years, 7 months ago (2009-05-01 10:05:39 UTC) #5
It lints. But only because the linter failed to catch a trailing space in the js
file.

http://codereview.chromium.org/99272/diff/1007/9
File src/array.js (right):

http://codereview.chromium.org/99272/diff/1007/9#newcode754
Line 754: if (proto_length > from) {
Wouldn't make a difference. The next line is a loop from "from" to, but not
including, "proto_length". In fact, the entire if can be dropped. If
proto_length <= from the next for loop will be a nop.

Powered by Google App Engine
This is Rietveld 408576698