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

Issue 579973002: Add Array.prototype.contains (Closed)

Created:
6 years, 3 months ago by domenic
Modified:
6 years ago
CC:
v8-dev
Project:
v8
Visibility:
Public.

Description

Add Array.prototype.contains Requires adding ToLength and SameValueZero implementations. LOG=Y BUG=none R=rossberg@chromium.org, arv@chromium.org TEST=added to test262

Patch Set 1 #

Total comments: 16

Patch Set 2 : Update for code review comments #

Patch Set 3 : Add v8 bug to commit message #

Total comments: 1

Patch Set 4 : Using %FunctionSetLength instead of %_Arguments #

Patch Set 5 : Use `array` instead of `O` #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -0 lines) Patch
M src/harmony-array.js View 1 2 3 4 2 chunks +38 lines, -0 lines 0 comments Download
M src/runtime.js View 1 2 chunks +18 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (3 generated)
domenic_domenicdenicola.com
6 years, 3 months ago (2014-09-18 01:16:23 UTC) #1
domenic_domenicdenicola.com
On 2014/09/18 01:16:23, domenic wrote: On tests: test262 tests still need to be merged (https://github.com/tc39/test262/pull/95) ...
6 years, 3 months ago (2014-09-18 01:18:33 UTC) #2
domenic_domenicdenicola.com
This is my first CL; feedback much appreciated. I don't even know if I'm supposed ...
6 years, 3 months ago (2014-09-18 01:21:20 UTC) #3
caitp (gmail)
https://codereview.chromium.org/579973002/diff/1/src/harmony-array.js File src/harmony-array.js (right): https://codereview.chromium.org/579973002/diff/1/src/harmony-array.js#newcode129 src/harmony-array.js:129: function ArrayContains(searchElement /*, fromIndex */) { // length == ...
6 years, 3 months ago (2014-09-18 01:28:31 UTC) #5
mathias
On 2014/09/18 01:28:31, caitp wrote: > https://codereview.chromium.org/579973002/diff/1/src/harmony-array.js > File src/harmony-array.js (right): > > https://codereview.chromium.org/579973002/diff/1/src/harmony-array.js#newcode129 > ...
6 years, 3 months ago (2014-09-18 06:11:16 UTC) #6
mathias
https://codereview.chromium.org/579973002/diff/1/src/harmony-array.js File src/harmony-array.js (right): https://codereview.chromium.org/579973002/diff/1/src/harmony-array.js#newcode129 src/harmony-array.js:129: function ArrayContains(searchElement /*, fromIndex */) { // length == ...
6 years, 3 months ago (2014-09-18 06:13:07 UTC) #8
mathias
https://codereview.chromium.org/579973002/diff/1/src/runtime.js File src/runtime.js (right): https://codereview.chromium.org/579973002/diff/1/src/runtime.js#newcode581 src/runtime.js:581: if (%_IsSmi(x) && x > 0) return x; // ...
6 years, 3 months ago (2014-09-18 06:16:32 UTC) #9
Dmitry Lomov (no reviews)
Cool. Few comments. As this is a new unapproved feature, this needs intent-to-implement mail. I ...
6 years, 3 months ago (2014-09-18 06:26:46 UTC) #11
Dmitry Lomov (no reviews)
Re CL description: either remove LOG=Y and BUG=None, or add a tracking bug to V8 ...
6 years, 3 months ago (2014-09-18 06:30:13 UTC) #12
rossberg
Can you remind me what stage this proposal is currently in? I agree with Dmitry ...
6 years, 3 months ago (2014-09-18 09:42:59 UTC) #13
domenic_domenicdenicola.com
6 years, 3 months ago (2014-09-18 15:15:13 UTC) #14
arv (Not doing code reviews)
On 2014/09/18 at 06:11:16, mathias wrote: > On 2014/09/18 01:28:31, caitp wrote: > > https://codereview.chromium.org/579973002/diff/1/src/harmony-array.js ...
6 years, 3 months ago (2014-09-18 15:15:14 UTC) #15
domenic_domenicdenicola.com
> As this is a new unapproved feature, this needs intent-to-implement mail. Will send > ...
6 years, 3 months ago (2014-09-18 15:15:50 UTC) #16
domenic_domenicdenicola.com
https://codereview.chromium.org/579973002/diff/1/src/harmony-array.js File src/harmony-array.js (right): https://codereview.chromium.org/579973002/diff/1/src/harmony-array.js#newcode129 src/harmony-array.js:129: function ArrayContains(searchElement /*, fromIndex */) { // length == ...
6 years, 3 months ago (2014-09-18 15:16:13 UTC) #17
arv (Not doing code reviews)
Another proplem is that we are not running the test262 tests by default. https://codereview.chromium.org/579973002/diff/40001/src/harmony-array.js File ...
6 years, 3 months ago (2014-09-18 15:28:03 UTC) #18
Dmitry Lomov (no reviews)
On 2014/09/18 15:15:50, domenic wrote: > > As this is a new unapproved feature, this ...
6 years, 3 months ago (2014-09-18 15:34:54 UTC) #19
Dmitry Lomov (no reviews)
One more comment: since Array.prototype.contains is not a ES6 feature, it should probably be under ...
6 years, 3 months ago (2014-09-18 15:37:29 UTC) #20
rossberg
On 2014/09/18 15:15:50, domenic wrote: > > (For the same reason, it does not make ...
6 years, 3 months ago (2014-09-18 15:49:01 UTC) #21
domenic_domenicdenicola.com
On 2014/09/18 15:34:54, Dmitry Lomov (chromium) wrote: > That is worthwhile (and I think that ...
6 years, 3 months ago (2014-09-18 15:50:08 UTC) #22
domenic_domenicdenicola.com
To my mind the next steps are as follows: - Continue discussion of flags and ...
6 years, 3 months ago (2014-09-22 23:41:08 UTC) #23
domenic (use chromium.org)
6 years ago (2014-12-02 01:11:41 UTC) #24

Powered by Google App Engine
This is Rietveld 408576698