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

Issue 2845933002: SkipIterable - ensure field is only initialized to a known int. (Closed)

Created:
3 years, 7 months ago by sra1
Modified:
3 years, 7 months ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

SkipIterable - ensure field is only initialized to a known int. By checking before initializing, dart2js can infer the field is not null BUG= R=lrn@google.com Committed: https://github.com/dart-lang/sdk/commit/0539c0b8bf38a9fa49d178021e67b36bc9c6e41e

Patch Set 1 #

Total comments: 13

Patch Set 2 : fix .skip(-1) bug #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -15 lines) Patch
M sdk/lib/internal/iterable.dart View 1 2 chunks +22 lines, -14 lines 0 comments Download
M tests/corelib/iterable_skip_test.dart View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 9 (3 generated)
sra1
3 years, 7 months ago (2017-04-28 02:40:04 UTC) #3
Lasse Reichstein Nielsen
https://codereview.chromium.org/2845933002/diff/20001/sdk/lib/internal/iterable.dart File sdk/lib/internal/iterable.dart (right): https://codereview.chromium.org/2845933002/diff/20001/sdk/lib/internal/iterable.dart#newcode591 sdk/lib/internal/iterable.dart:591: : _skipCount = _checkSkip(skipCount); How about inlining the check: ...
3 years, 7 months ago (2017-04-28 06:25:23 UTC) #4
Lasse Reichstein Nielsen
lgtm
3 years, 7 months ago (2017-04-28 08:51:49 UTC) #5
sra1
PTAL https://codereview.chromium.org/2845933002/diff/20001/sdk/lib/internal/iterable.dart File sdk/lib/internal/iterable.dart (right): https://codereview.chromium.org/2845933002/diff/20001/sdk/lib/internal/iterable.dart#newcode591 sdk/lib/internal/iterable.dart:591: : _skipCount = _checkSkip(skipCount); On 2017/04/28 06:25:23, Lasse ...
3 years, 7 months ago (2017-04-28 18:38:37 UTC) #6
Lasse Reichstein Nielsen
lgtm https://codereview.chromium.org/2845933002/diff/20001/sdk/lib/internal/iterable.dart File sdk/lib/internal/iterable.dart (right): https://codereview.chromium.org/2845933002/diff/20001/sdk/lib/internal/iterable.dart#newcode597 sdk/lib/internal/iterable.dart:597: RangeError.checkNotNegative(skipCount, "count"); I'm a little concerned about writing ...
3 years, 7 months ago (2017-05-01 05:32:00 UTC) #7
sra1
3 years, 7 months ago (2017-05-01 17:01:15 UTC) #9
Message was sent while issue was closed.
Committed patchset #2 (id:40001) manually as
0539c0b8bf38a9fa49d178021e67b36bc9c6e41e (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698