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

Issue 9148021: Implement for-in. (Closed)

Created:
8 years, 11 months ago by Lasse Reichstein
Modified:
8 years, 11 months ago
Reviewers:
ngeoffray
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Implement for-in. Direct implementation with no optimizations. Committed: https://code.google.com/p/dart/source/detail?r=3180

Patch Set 1 #

Total comments: 14

Patch Set 2 : Made test work. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+149 lines, -5 lines) Patch
M frog/leg/lib/core.dart View 2 chunks +31 lines, -1 line 0 comments Download
M frog/leg/resolver.dart View 1 chunk +13 lines, -1 line 0 comments Download
M frog/leg/ssa/builder.dart View 1 chunk +61 lines, -1 line 0 comments Download
M frog/leg/typechecker.dart View 1 chunk +1 line, -1 line 0 comments Download
A frog/tests/leg_only/src/ForInTest.dart View 1 1 chunk +42 lines, -0 lines 0 comments Download
M tests/corelib/corelib-leg.status View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
Lasse Reichstein
8 years, 11 months ago (2012-01-11 08:15:49 UTC) #1
ngeoffray
LGTM! http://codereview.chromium.org/9148021/diff/1/frog/leg/lib/core.dart File frog/leg/lib/core.dart (right): http://codereview.chromium.org/9148021/diff/1/frog/leg/lib/core.dart#newcode341 frog/leg/lib/core.dart:341: class ListIterator<T> /* implements Iterator<T> */ { I'd ...
8 years, 11 months ago (2012-01-11 10:09:22 UTC) #2
Lasse Reichstein
8 years, 11 months ago (2012-01-11 10:26:00 UTC) #3
http://codereview.chromium.org/9148021/diff/1/frog/leg/resolver.dart
File frog/leg/resolver.dart (right):

http://codereview.chromium.org/9148021/diff/1/frog/leg/resolver.dart#newcode501
frog/leg/resolver.dart:501: // TODO(lrn): A non-terminating error report would
be fine here.
No, I was guessing that cancel was the right thing.
Using error now.

http://codereview.chromium.org/9148021/diff/1/frog/leg/resolver.dart#newcode502
frog/leg/resolver.dart:502: print(declaration);
On 2012/01/11 10:09:22, ngeoffray wrote:
> Remove print.

Done.

http://codereview.chromium.org/9148021/diff/1/frog/leg/ssa/builder.dart
File frog/leg/ssa/builder.dart (right):

http://codereview.chromium.org/9148021/diff/1/frog/leg/ssa/builder.dart#newco...
frog/leg/ssa/builder.dart:1296: //     E <declaredIdentifier> = $iter.next();
I should make it optional in Iterator<E> too then.
I prefer this way, even though E might implicitly be "Dynamic".

http://codereview.chromium.org/9148021/diff/1/frog/tests/leg_only/src/ForInTe...
File frog/tests/leg_only/src/ForInTest.dart (right):

http://codereview.chromium.org/9148021/diff/1/frog/tests/leg_only/src/ForInTe...
frog/tests/leg_only/src/ForInTest.dart:36: // Enable when we donno longer
generate code that bail out on
Done.

Powered by Google App Engine
This is Rietveld 408576698