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

Issue 15288011: Baseline for-of implementation (Closed)

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

Description

Baseline for-of implementation Add full-codegen support for the ES6 for-of iteration statement. R=mstarzinger@chromium.org, rossberg@chromium.org TEST=mjsunit/harmony/iteration-semantics BUG=v8:2214 Committed: http://code.google.com/p/v8/source/detail?r=15002

Patch Set 1 #

Patch Set 2 : Use more subexpressions #

Total comments: 8

Patch Set 3 : Add tests, rebase onto master #

Patch Set 4 : Add tests for try/catch in loops, proxies #

Total comments: 3

Patch Set 5 : Add non-boolean done, proxy iterators #

Total comments: 1

Patch Set 6 : s/syntax/semantics/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+655 lines, -32 lines) Patch
M src/arm/full-codegen-arm.cc View 1 2 2 chunks +61 lines, -3 lines 0 comments Download
M src/ast.h View 1 2 3 chunks +62 lines, -12 lines 0 comments Download
M src/full-codegen.cc View 1 2 2 chunks +2 lines, -7 lines 0 comments Download
M src/heap.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M src/ia32/full-codegen-ia32.cc View 1 2 2 chunks +60 lines, -3 lines 0 comments Download
M src/parser.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M src/parser.cc View 1 2 4 chunks +75 lines, -3 lines 0 comments Download
M src/x64/full-codegen-x64.cc View 1 2 2 chunks +60 lines, -3 lines 0 comments Download
A test/mjsunit/harmony/iteration-semantics.js View 1 2 3 4 5 1 chunk +327 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
wingo
I am pretty sure that the LoadIC comments for ARM are out of date, and ...
7 years, 7 months ago (2013-05-21 16:20:33 UTC) #1
wingo
The updated patch makes ForOf have subexpressions for the following sub-operations: var iterator = iterable; ...
7 years, 7 months ago (2013-05-22 08:23:08 UTC) #2
Michael Starzinger
The implementation looks good already, just a nit. But can we try to increase the ...
7 years, 6 months ago (2013-06-06 11:09:08 UTC) #3
rossberg
https://codereview.chromium.org/15288011/diff/2001/test/mjsunit/harmony/iteration-semantics.js File test/mjsunit/harmony/iteration-semantics.js (right): https://codereview.chromium.org/15288011/diff/2001/test/mjsunit/harmony/iteration-semantics.js#newcode33 test/mjsunit/harmony/iteration-semantics.js:33: On 2013/06/06 11:09:09, Michael Starzinger wrote: > Can we ...
7 years, 6 months ago (2013-06-06 11:35:32 UTC) #4
rossberg
7 years, 6 months ago (2013-06-06 11:35:57 UTC) #5
wingo
Updated patchset rebases onto master and adds tests. https://codereview.chromium.org/15288011/diff/2001/src/parser.h File src/parser.h (right): https://codereview.chromium.org/15288011/diff/2001/src/parser.h#newcode662 src/parser.h:662: void ...
7 years, 6 months ago (2013-06-06 17:10:01 UTC) #6
rossberg
https://codereview.chromium.org/15288011/diff/2001/test/mjsunit/harmony/iteration-semantics.js File test/mjsunit/harmony/iteration-semantics.js (right): https://codereview.chromium.org/15288011/diff/2001/test/mjsunit/harmony/iteration-semantics.js#newcode33 test/mjsunit/harmony/iteration-semantics.js:33: On 2013/06/06 17:10:06, wingo wrote: > > - interaction ...
7 years, 6 months ago (2013-06-06 18:14:10 UTC) #7
wingo
Updated patch adds some try/catch and proxy tests. PTAL :)
7 years, 6 months ago (2013-06-07 09:01:32 UTC) #8
rossberg
https://codereview.chromium.org/15288011/diff/19001/test/mjsunit/harmony/iteration-semantics.js File test/mjsunit/harmony/iteration-semantics.js (right): https://codereview.chromium.org/15288011/diff/19001/test/mjsunit/harmony/iteration-semantics.js#newcode297 test/mjsunit/harmony/iteration-semantics.js:297: // Proxies and getters, together at last. Thanks. :) ...
7 years, 6 months ago (2013-06-07 09:29:52 UTC) #9
wingo
Added more tests, thanks for the feedback. See inline question about proxy receivers for generators. ...
7 years, 6 months ago (2013-06-07 10:07:15 UTC) #10
rossberg
LGTM from my side https://codereview.chromium.org/15288011/diff/19001/test/mjsunit/harmony/iteration-semantics.js File test/mjsunit/harmony/iteration-semantics.js (right): https://codereview.chromium.org/15288011/diff/19001/test/mjsunit/harmony/iteration-semantics.js#newcode297 test/mjsunit/harmony/iteration-semantics.js:297: // Proxies and getters, together ...
7 years, 6 months ago (2013-06-07 10:43:52 UTC) #11
Michael Starzinger
LGTM from my end as well. https://codereview.chromium.org/15288011/diff/25001/test/mjsunit/harmony/iteration-semantics.js File test/mjsunit/harmony/iteration-semantics.js (right): https://codereview.chromium.org/15288011/diff/25001/test/mjsunit/harmony/iteration-semantics.js#newcode30 test/mjsunit/harmony/iteration-semantics.js:30: // Test for-of ...
7 years, 6 months ago (2013-06-07 10:52:11 UTC) #12
wingo
7 years, 6 months ago (2013-06-07 11:12:33 UTC) #13
Message was sent while issue was closed.
Committed patchset #6 manually as r15002 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698