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

Issue 11410086: Use iterator, moveNext(), current. (Closed)

Created:
8 years, 1 month ago by floitsch
Modified:
8 years ago
CC:
reviews_dartlang.org, Anders Johnsen, Mads Ager (google)
Visibility:
Public.

Description

Use iterator, moveNext(), current. Committed: https://code.google.com/p/dart/source/detail?r=15019

Patch Set 1 #

Total comments: 8

Patch Set 2 : Some fixes and status file updates. #

Patch Set 3 : Address comments. #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+575 lines, -639 lines) Patch
M pkg/http/lib/src/utils.dart View 1 1 chunk +3 lines, -3 lines 0 comments Download
M pkg/unittest/lib/mock.dart View 1 2 chunks +5 lines, -4 lines 0 comments Download
M pkg/unittest/lib/src/core_matchers.dart View 1 2 chunks +7 lines, -7 lines 0 comments Download
M runtime/lib/array.dart View 1 2 3 chunks +14 lines, -11 lines 4 comments Download
M runtime/lib/byte_array.dart View 1 31 chunks +41 lines, -37 lines 0 comments Download
M runtime/lib/growable_array.dart View 1 1 chunk +1 line, -3 lines 2 comments Download
M runtime/lib/string_base.dart View 4 chunks +8 lines, -8 lines 0 comments Download
M runtime/tests/vm/vm.status View 1 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/vm/intrinsifier.h View 1 chunk +0 lines, -2 lines 2 comments Download
M runtime/vm/intrinsifier_arm.cc View 1 chunk +0 lines, -10 lines 0 comments Download
M runtime/vm/intrinsifier_ia32.cc View 2 chunks +0 lines, -96 lines 0 comments Download
M runtime/vm/intrinsifier_x64.cc View 1 chunk +0 lines, -94 lines 0 comments Download
M runtime/vm/parser.cc View 4 chunks +11 lines, -11 lines 0 comments Download
M runtime/vm/symbols.h View 1 chunk +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/util/link.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/collection/collections.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/core/iterable.dart View 1 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/core/iterator.dart View 1 1 chunk +52 lines, -5 lines 0 comments Download
M sdk/lib/core/queue.dart View 1 2 2 chunks +15 lines, -12 lines 0 comments Download
M sdk/lib/core/sequences.dart View 1 2 chunks +13 lines, -5 lines 0 comments Download
M sdk/lib/core/set.dart View 1 2 chunks +17 lines, -40 lines 0 comments Download
M sdk/lib/html/dart2js/html_dart2js.dart View 1 39 chunks +56 lines, -48 lines 0 comments Download
M sdk/lib/html/dartium/html_dartium.dart View 39 chunks +56 lines, -48 lines 0 comments Download
M sdk/lib/html/src/_Collections.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/html/templates/html/impl/impl_Element.darttemplate View 1 3 chunks +20 lines, -12 lines 0 comments Download
M sdk/lib/html/templates/html/impl/impl_Node.darttemplate View 1 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/html/templates/html/impl/impl_NodeList.darttemplate View 1 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/html/templates/immutable_list_mixin.darttemplate View 1 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/utf/utf16.dart View 1 6 chunks +31 lines, -16 lines 0 comments Download
M sdk/lib/utf/utf32.dart View 1 6 chunks +41 lines, -20 lines 0 comments Download
M sdk/lib/utf/utf8.dart View 1 6 chunks +35 lines, -18 lines 0 comments Download
M sdk/lib/utf/utf_core.dart View 1 8 chunks +39 lines, -25 lines 0 comments Download
M tests/co19/co19-runtime.status View 1 1 chunk +16 lines, -0 lines 0 comments Download
M tests/corelib/list_iterators_test.dart View 1 2 2 chunks +14 lines, -17 lines 0 comments Download
M tests/corelib/queue_iterator_test.dart View 3 chunks +7 lines, -16 lines 0 comments Download
M tests/corelib/reg_exp5_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/corelib/reg_exp_all_matches_test.dart View 1 1 chunk +18 lines, -18 lines 0 comments Download
M tests/corelib/reg_exp_start_end_test.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M tests/corelib/set_iterator_test.dart View 5 chunks +11 lines, -20 lines 0 comments Download
M tests/corelib/string_pattern_test.dart View 2 chunks +8 lines, -7 lines 0 comments Download
M tests/standalone/io/http_server_early_client_close_test.dart View 1 1 chunk +3 lines, -3 lines 0 comments Download
M tests/standalone/standalone.status View 1 1 chunk +3 lines, -1 line 0 comments Download
M tests/utils/utils.status View 1 1 chunk +4 lines, -0 lines 0 comments Download
M utils/pub/utils.dart View 1 1 chunk +5 lines, -4 lines 0 comments Download
M utils/tests/pub/test_pub.dart View 1 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
floitsch
This is the first version of moving to C#-style iterators. It still throws when using ...
8 years, 1 month ago (2012-11-14 15:09:35 UTC) #1
Lasse Reichstein Nielsen
LGTM https://codereview.chromium.org/11410086/diff/1/runtime/lib/array.dart File runtime/lib/array.dart (right): https://codereview.chromium.org/11410086/diff/1/runtime/lib/array.dart#newcode311 runtime/lib/array.dart:311: throw new StateError("No more elements"); Wrong message if ...
8 years, 1 month ago (2012-11-15 10:24:37 UTC) #2
floitsch
https://codereview.chromium.org/11410086/diff/1/runtime/lib/array.dart File runtime/lib/array.dart (right): https://codereview.chromium.org/11410086/diff/1/runtime/lib/array.dart#newcode311 runtime/lib/array.dart:311: throw new StateError("No more elements"); On 2012/11/15 10:24:37, Lasse ...
8 years, 1 month ago (2012-11-16 17:51:58 UTC) #3
Ivan Posva
https://codereview.chromium.org/11410086/diff/10001/runtime/lib/array.dart File runtime/lib/array.dart (right): https://codereview.chromium.org/11410086/diff/10001/runtime/lib/array.dart#newcode108 runtime/lib/array.dart:108: Iterator<E> get iterator => new _FixedSizeArrayIterator<E>(this); We like our ...
8 years ago (2012-11-26 18:20:13 UTC) #4
floitsch
8 years ago (2012-11-28 13:44:34 UTC) #5
Message was sent while issue was closed.
Ivan's comments addressed in https://codereview.chromium.org/11416240

https://codereview.chromium.org/11410086/diff/10001/runtime/lib/array.dart
File runtime/lib/array.dart (right):

https://codereview.chromium.org/11410086/diff/10001/runtime/lib/array.dart#ne...
runtime/lib/array.dart:108: Iterator<E> get iterator => new
_FixedSizeArrayIterator<E>(this);
On 2012/11/26 18:20:13, Ivan Posva wrote:
> We like our curly braces. There is no need to remove them. Thanks!

Done.

https://codereview.chromium.org/11410086/diff/10001/runtime/lib/array.dart#ne...
runtime/lib/array.dart:253: Iterator<E> get iterator => new
_FixedSizeArrayIterator<E>(this);
On 2012/11/26 18:20:13, Ivan Posva wrote:
> ditto

Done.

https://codereview.chromium.org/11410086/diff/10001/runtime/lib/growable_arra...
File runtime/lib/growable_array.dart (right):

https://codereview.chromium.org/11410086/diff/10001/runtime/lib/growable_arra...
runtime/lib/growable_array.dart:218: Iterator<T> get iterator => new
SequenceIterator<T>(this);
On 2012/11/26 18:20:13, Ivan Posva wrote:
> ditto

Done.

https://codereview.chromium.org/11410086/diff/10001/runtime/vm/intrinsifier.h
File runtime/vm/intrinsifier.h (left):

https://codereview.chromium.org/11410086/diff/10001/runtime/vm/intrinsifier.h...
runtime/vm/intrinsifier.h:74: V(_FixedSizeArrayIterator, get:hasNext,
FixedSizeArrayIterator_getHasNext)   \
On 2012/11/26 18:20:13, Ivan Posva wrote:
> The equivalent routines will need to be handled. Please add a TODO, otherwise
we
> will be hunting which things went missing.

done.

Powered by Google App Engine
This is Rietveld 408576698