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

Issue 446023002: Enable ES6 iteration by default (Closed)

Created:
6 years, 4 months ago by wingo
Modified:
6 years, 4 months ago
Reviewers:
rossberg
CC:
v8-dev
Project:
v8
Visibility:
Public.

Description

Enable ES6 iteration by default This enables for-of, as well as @@iterator implementations for strings and arrays. R=rossberg@chromium.org BUG=v8:2214 LOG=Y Committed: https://code.google.com/p/v8/source/detail?r=22980

Patch Set 1 #

Patch Set 2 : Moved tests to es6, fixed duplicate ExtendArrayPrototype name in unscopables.js #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -879 lines) Patch
M BUILD.gn View 1 2 chunks +2 lines, -1 line 0 comments Download
M src/bootstrapper.cc View 1 2 chunks +1 line, -3 lines 0 comments Download
M src/flag-definitions.h View 1 2 chunks +0 lines, -2 lines 0 comments Download
M src/parser.cc View 1 3 chunks +1 line, -4 lines 0 comments Download
M src/preparser.h View 1 4 chunks +0 lines, -4 lines 0 comments Download
M src/preparser.cc View 1 chunk +1 line, -2 lines 0 comments Download
M src/unscopables.js View 1 2 chunks +4 lines, -4 lines 0 comments Download
M test/cctest/test-parsing.cc View 4 chunks +5 lines, -9 lines 0 comments Download
M test/mjsunit/builtins.js View 1 chunk +3 lines, -1 line 0 comments Download
M test/mjsunit/debug-script.js View 1 chunk +1 line, -1 line 0 comments Download
A + test/mjsunit/es6/array-iterator.js View 1 1 chunk +1 line, -1 line 0 comments Download
A + test/mjsunit/es6/iteration-semantics.js View 1 1 chunk +0 lines, -1 line 0 comments Download
A + test/mjsunit/es6/iteration-syntax.js View 1 1 chunk +1 line, -1 line 0 comments Download
A + test/mjsunit/es6/regress/regress-crbug-248025.js View 1 1 chunk +0 lines, -2 lines 0 comments Download
A + test/mjsunit/es6/string-iterator.js View 1 1 chunk +0 lines, -2 lines 0 comments Download
A + test/mjsunit/es6/typed-array-iterator.js View 1 1 chunk +0 lines, -2 lines 0 comments Download
M test/mjsunit/harmony/array-iterator.js View 1 1 chunk +0 lines, -252 lines 0 comments Download
M test/mjsunit/harmony/generators-iteration.js View 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/harmony/iteration-semantics.js View 1 1 chunk +0 lines, -337 lines 0 comments Download
M test/mjsunit/harmony/iteration-syntax.js View 1 1 chunk +0 lines, -70 lines 0 comments Download
M test/mjsunit/harmony/proxies.js View 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/harmony/regress/regress-crbug-248025.js View 1 1 chunk +0 lines, -40 lines 0 comments Download
M test/mjsunit/harmony/string-iterator.js View 1 1 chunk +0 lines, -91 lines 0 comments Download
M test/mjsunit/harmony/typed-array-iterator.js View 1 1 chunk +0 lines, -41 lines 0 comments Download
M test/mjsunit/mjsunit.status View 1 1 chunk +4 lines, -4 lines 0 comments Download
M tools/gyp/v8.gyp View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
wingo
6 years, 4 months ago (2014-08-06 15:35:07 UTC) #1
rossberg
LGTM, except that the relevant tests should move to the mjsunit/es6 directory now.
6 years, 4 months ago (2014-08-07 14:10:03 UTC) #2
wingo
On 2014/08/07 14:10:03, rossberg wrote: > LGTM, except that the relevant tests should move to ...
6 years, 4 months ago (2014-08-07 14:59:43 UTC) #3
rossberg
On 2014/08/07 14:59:43, wingo wrote: > Could it be something about the bailout id's again? ...
6 years, 4 months ago (2014-08-07 15:24:50 UTC) #4
rossberg
On 2014/08/07 15:24:50, rossberg wrote: > On 2014/08/07 14:59:43, wingo wrote: > > Could it ...
6 years, 4 months ago (2014-08-07 15:25:44 UTC) #5
wingo
Bah, for some reason --harmony-unscopables doesn't work with --harmony-iteration, so I can't land this patch ...
6 years, 4 months ago (2014-08-07 16:20:50 UTC) #6
wingo
On 2014/08/07 16:20:50, wingo wrote: > Bah, for some reason --harmony-unscopables doesn't work with > ...
6 years, 4 months ago (2014-08-07 16:25:01 UTC) #7
wingo
Committed patchset #2 manually as 22980 (presubmit successful).
6 years, 4 months ago (2014-08-07 16:42:38 UTC) #8
arv (Not doing code reviews)
On 2014/08/07 at 16:25:01, wingo wrote: > So this turns out to be because of ...
6 years, 4 months ago (2014-08-07 16:49:07 UTC) #9
rossberg
6 years, 4 months ago (2014-08-07 17:08:12 UTC) #10
Message was sent while issue was closed.
On 2014/08/07 16:49:07, arv wrote:
> Maybe we should stop introducing functions that are just called immediately?

I agree. I'd go for named IIFEs. (I'm somewhat undecided about routinely using
toplevel blocks for tests, since the toplevel is quite special in many regards.
E.g., it will always bypass lazy compilation.)

Powered by Google App Engine
This is Rietveld 408576698