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

Issue 1132603003: Change RangeError instances to use RangeError.range. (Closed)

Created:
5 years, 7 months ago by Lasse Reichstein Nielsen
Modified:
5 years, 6 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Change RangeError instances to use RangeError.range. This avoids using the (sometimes confusing) "[...)" notation for half-open ranges. Also change argument tests to simpler interval tests, and move error handling to the end of the functions. Mostly in VM typed-data libraries. R=sgjesse@google.com, srdjan@google.com Committed: https://github.com/dart-lang/sdk/commit/932bcc6901d70492c6f1b8d000b9555a0db62f4b Committed: https://github.com/dart-lang/sdk/commit/cf4eaae5a689132369e8ebfbbe52fd71aa5060e6

Patch Set 1 #

Patch Set 2 : Organize tests for performance. #

Patch Set 3 : Tweaks #

Total comments: 14

Patch Set 4 : Don't try to optimize (yet!) #

Patch Set 5 : Also use RangeError.range for dart2js code. #

Total comments: 2

Patch Set 6 : Adapt function fingerprints too. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+213 lines, -221 lines) Patch
M runtime/lib/typed_data.dart View 1 2 3 4 5 76 chunks +109 lines, -120 lines 0 comments Download
M runtime/vm/exceptions.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/exceptions.cc View 1 2 3 4 5 2 chunks +11 lines, -10 lines 0 comments Download
M runtime/vm/method_recognizer.h View 1 2 3 4 5 3 chunks +72 lines, -72 lines 0 comments Download
M runtime/vm/symbols.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/js_lib/native_typed_data.dart View 1 2 3 4 3 chunks +16 lines, -16 lines 0 comments Download
M sdk/lib/convert/encoding.dart View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 14 (3 generated)
Lasse Reichstein Nielsen
5 years, 7 months ago (2015-05-13 10:29:15 UTC) #3
Søren Gjesse
lgtm https://codereview.chromium.org/1132603003/diff/40001/runtime/lib/typed_data.dart File runtime/lib/typed_data.dart (right): https://codereview.chromium.org/1132603003/diff/40001/runtime/lib/typed_data.dart#newcode512 runtime/lib/typed_data.dart:512: // TODO(srdjan): Optimize to skip copying if the ...
5 years, 7 months ago (2015-05-13 11:22:08 UTC) #4
Ivan Posva
Does not look good to me due to subtle changes in behaviour and style. Please ...
5 years, 7 months ago (2015-05-14 18:13:18 UTC) #5
Lasse Reichstein Nielsen
PTAL https://codereview.chromium.org/1132603003/diff/40001/runtime/lib/typed_data.dart File runtime/lib/typed_data.dart (left): https://codereview.chromium.org/1132603003/diff/40001/runtime/lib/typed_data.dart#oldcode499 runtime/lib/typed_data.dart:499: if (skipCount < 0) { On 2015/05/14 18:13:18, ...
5 years, 7 months ago (2015-05-18 12:21:09 UTC) #6
srdjan
DBC https://codereview.chromium.org/1132603003/diff/80001/runtime/lib/typed_data.dart File runtime/lib/typed_data.dart (right): https://codereview.chromium.org/1132603003/diff/80001/runtime/lib/typed_data.dart#newcode492 runtime/lib/typed_data.dart:492: assert(false); Why is this assert needed?
5 years, 7 months ago (2015-05-18 16:22:00 UTC) #8
Lasse Reichstein Nielsen
https://codereview.chromium.org/1132603003/diff/80001/runtime/lib/typed_data.dart File runtime/lib/typed_data.dart (right): https://codereview.chromium.org/1132603003/diff/80001/runtime/lib/typed_data.dart#newcode492 runtime/lib/typed_data.dart:492: assert(false); It's not *needed* (that's why it's an assert). ...
5 years, 7 months ago (2015-05-19 13:05:07 UTC) #9
Søren Gjesse
lgtm
5 years, 7 months ago (2015-05-27 09:27:45 UTC) #10
Lasse Reichstein Nielsen
Committed patchset #5 (id:80001) manually as 932bcc6901d70492c6f1b8d000b9555a0db62f4b (presubmit successful).
5 years, 6 months ago (2015-05-28 08:34:09 UTC) #11
Lasse Reichstein Nielsen
Updated fingerprints. PTAL
5 years, 6 months ago (2015-05-28 19:33:43 UTC) #12
srdjan
lgtm
5 years, 6 months ago (2015-05-28 19:51:37 UTC) #13
Lasse Reichstein Nielsen
5 years, 6 months ago (2015-05-29 08:50:25 UTC) #14
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as
cf4eaae5a689132369e8ebfbbe52fd71aa5060e6 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698