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

Issue 1180713003: Better messages for optimized index errors. (Closed)

Created:
5 years, 6 months ago by sra1
Modified:
5 years, 6 months ago
CC:
reviews_dartlang.org
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Better messages for optimized index errors. Typed list, Array and String indexer methods detect index errors in their own optimized way but now defer to common code to diagnose the error. This code is shared with the optimized 'ioore' helper, which makes the error message consistent between optimized and unoptimized code. The main reason for doing this is to ensure that the error messages have as much information as possible to help debug off-line using captured error messages. BUG= R=lrn@google.com Committed: https://github.com/dart-lang/sdk/commit/0d4361fb6d4a4c9aa1078268c03039737f541364 Reverted: https://github.com/dart-lang/sdk/commit/82215d36f4f6163082d802508331e8b49b711b77 Committed: https://github.com/dart-lang/sdk/commit/f7263216e48e4348a489795a459938ce5c73f27c

Patch Set 1 #

Patch Set 2 : #

Total comments: 8

Patch Set 3 : #

Patch Set 4 : Basis for status fixes #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+565 lines, -47 lines) Patch
M sdk/lib/_internal/compiler/js_lib/interceptors.dart View 1 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/js_lib/js_array.dart View 1 2 1 chunk +13 lines, -6 lines 0 comments Download
M sdk/lib/_internal/compiler/js_lib/js_helper.dart View 1 2 3 4 3 chunks +48 lines, -11 lines 0 comments Download
M sdk/lib/_internal/compiler/js_lib/js_string.dart View 1 3 chunks +6 lines, -6 lines 0 comments Download
M sdk/lib/_internal/compiler/js_lib/native_typed_data.dart View 1 3 chunks +23 lines, -23 lines 0 comments Download
M sdk/lib/core/errors.dart View 1 1 chunk +2 lines, -1 line 0 comments Download
A tests/compiler/dart2js_extra/consistent_index_error_array_test.dart View 1 1 chunk +151 lines, -0 lines 0 comments Download
A tests/compiler/dart2js_extra/consistent_index_error_string_test.dart View 1 1 chunk +147 lines, -0 lines 0 comments Download
A tests/compiler/dart2js_extra/consistent_index_error_typed_list_test.dart View 1 1 chunk +159 lines, -0 lines 0 comments Download
M tests/lib/typed_data/typed_data_list_test.dart View 1 2 chunks +15 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
sra1
5 years, 6 months ago (2015-06-12 02:49:53 UTC) #3
Lasse Reichstein Nielsen
LGTM (rubberstamping the tests). https://codereview.chromium.org/1180713003/diff/40001/sdk/lib/_internal/compiler/js_lib/js_array.dart File sdk/lib/_internal/compiler/js_lib/js_array.dart (right): https://codereview.chromium.org/1180713003/diff/40001/sdk/lib/_internal/compiler/js_lib/js_array.dart#newcode578 sdk/lib/_internal/compiler/js_lib/js_array.dart:578: if (newLength is !int) throw ...
5 years, 6 months ago (2015-06-12 14:24:37 UTC) #4
sra1
https://chromiumcodereview.appspot.com/1180713003/diff/40001/sdk/lib/_internal/compiler/js_lib/js_array.dart File sdk/lib/_internal/compiler/js_lib/js_array.dart (right): https://chromiumcodereview.appspot.com/1180713003/diff/40001/sdk/lib/_internal/compiler/js_lib/js_array.dart#newcode578 sdk/lib/_internal/compiler/js_lib/js_array.dart:578: if (newLength is !int) throw new ArgumentError.value(newLength); On 2015/06/12 ...
5 years, 6 months ago (2015-06-12 22:29:05 UTC) #5
sra1
Committed patchset #3 (id:60001) manually as 0d4361fb6d4a4c9aa1078268c03039737f541364 (presubmit successful).
5 years, 6 months ago (2015-06-12 22:34:10 UTC) #6
sra1
5 years, 6 months ago (2015-06-13 01:22:05 UTC) #7
Message was sent while issue was closed.
Committed patchset #5 (id:100001) manually as
f7263216e48e4348a489795a459938ce5c73f27c (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698