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

Issue 15300018: Add initial parser support for harmony iteration (Closed)

Created:
7 years, 7 months ago by wingo
Modified:
7 years, 6 months ago
CC:
v8-dev
Visibility:
Public.

Description

Add initial parser support for harmony iteration This commit adds initial parser support for harmony iteration. Specifically, it will parse: for (x of y) {} for (let x of y) {} for (var x of y) {} The semantics are still unimplemented. TEST=mjsunit/harmony/for-of-syntax BUG=v8:2214 R=rossberg@chromium.org Committed: http://code.google.com/p/v8/source/detail?r=14984

Patch Set 1 #

Patch Set 2 : Use subtyping instead of enumerated value #

Total comments: 11

Patch Set 3 : Fix nits, remove null checks in "for" construction #

Patch Set 4 : Rebase onto current master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+239 lines, -61 lines) Patch
M src/ast.h View 1 2 3 3 chunks +65 lines, -17 lines 0 comments Download
M src/ast.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/flag-definitions.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M src/full-codegen.cc View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download
M src/hydrogen.cc View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M src/parser.h View 1 2 3 4 chunks +7 lines, -1 line 0 comments Download
M src/parser.cc View 1 2 3 15 chunks +44 lines, -18 lines 0 comments Download
M src/preparser.h View 5 chunks +6 lines, -0 lines 0 comments Download
M src/preparser.cc View 3 chunks +13 lines, -4 lines 0 comments Download
M src/prettyprinter.cc View 1 2 chunks +19 lines, -0 lines 0 comments Download
M src/rewriter.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M src/scanner.h View 3 chunks +13 lines, -0 lines 0 comments Download
M src/typing.cc View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M test/cctest/test-parsing.cc View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
A + test/mjsunit/harmony/iteration-syntax.js View 1 2 1 chunk +35 lines, -20 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
wingo
An initial patch for for-of syntax. PTAL :)
7 years, 7 months ago (2013-05-20 16:38:47 UTC) #1
wingo
New patch uses subtyping instead of the additional enumerated value -- ForInStatement is a ForEachStatement, ...
7 years, 7 months ago (2013-05-21 08:17:32 UTC) #2
wingo
A kind ping on this issue :)
7 years, 6 months ago (2013-06-06 09:11:36 UTC) #3
Michael Starzinger
Andreas has volunteered to look at this one. Thanks.
7 years, 6 months ago (2013-06-06 09:32:37 UTC) #4
Michael Starzinger
Just one drive-by comment. https://codereview.chromium.org/15300018/diff/3001/src/ast.h File src/ast.h (right): https://codereview.chromium.org/15300018/diff/3001/src/ast.h#newcode2839 src/ast.h:2839: default: Please avoid default cases ...
7 years, 6 months ago (2013-06-06 09:36:34 UTC) #5
rossberg
LGTM with nits https://codereview.chromium.org/15300018/diff/3001/src/ast.h File src/ast.h (right): https://codereview.chromium.org/15300018/diff/3001/src/ast.h#newcode860 src/ast.h:860: void Initialize(Expression* each, Nit: doesn't this ...
7 years, 6 months ago (2013-06-06 10:32:32 UTC) #6
wingo
On 2013/06/06 09:36:34, Michael Starzinger wrote: > Just one drive-by comment. > > https://codereview.chromium.org/15300018/diff/3001/src/ast.h > ...
7 years, 6 months ago (2013-06-06 13:23:47 UTC) #7
Sven Panne
On 2013/06/06 13:23:47, wingo wrote: > On 2013/06/06 09:36:34, Michael Starzinger wrote: > > Just ...
7 years, 6 months ago (2013-06-06 13:31:52 UTC) #8
wingo
Fixed nits. I did some spelunking to find the purpose of the "if (loop)" foo, ...
7 years, 6 months ago (2013-06-06 14:09:50 UTC) #9
rossberg
Still LGTM
7 years, 6 months ago (2013-06-06 14:25:17 UTC) #10
wingo
7 years, 6 months ago (2013-06-06 14:38:40 UTC) #11
Message was sent while issue was closed.
Committed patchset #4 manually as r14984 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698