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

Issue 936483004: Make value range analysis tolerate erroneous length expressions. (Closed)

Created:
5 years, 10 months ago by herhut
Modified:
5 years, 10 months ago
Reviewers:
floitsch, zarah
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Make value range analysis tolerate erroneous length expressions. BUG= http://dartbug.com/21166 R=floitsch@google.com Committed: https://code.google.com/p/dart/source/detail?r=43836

Patch Set 1 #

Patch Set 2 : added test #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -0 lines) Patch
M pkg/compiler/lib/src/ssa/value_range_analyzer.dart View 1 chunk +6 lines, -0 lines 0 comments Download
A tests/compiler/dart2js_extra/21166_test.dart View 1 1 chunk +25 lines, -0 lines 4 comments Download

Messages

Total messages: 6 (2 generated)
herhut
This fixed the symptom and solves the problem for this optimisation. What I really think ...
5 years, 10 months ago (2015-02-18 10:24:35 UTC) #2
floitsch
LGTM, but add a test, since we want to fix the co19 tests.
5 years, 10 months ago (2015-02-18 11:55:21 UTC) #3
herhut
Committed patchset #2 (id:20001) manually as 43836 (presubmit successful).
5 years, 10 months ago (2015-02-18 12:12:04 UTC) #5
floitsch
5 years, 10 months ago (2015-02-18 13:52:48 UTC) #6
Message was sent while issue was closed.
Still LGTM.

https://codereview.chromium.org/936483004/diff/20001/tests/compiler/dart2js_e...
File tests/compiler/dart2js_extra/21166_test.dart (right):

https://codereview.chromium.org/936483004/diff/20001/tests/compiler/dart2js_e...
tests/compiler/dart2js_extra/21166_test.dart:1: // Copyright (c) 2015, the Dart
project authors.  Please see the AUTHORS file
I prefer if it is in the language tests.

Give the test a "correct" name, and mention the bug only in the comments (as you
do now).

https://codereview.chromium.org/936483004/diff/20001/tests/compiler/dart2js_e...
tests/compiler/dart2js_extra/21166_test.dart:6: // Fails when compiling with
--checked.
Shouldn't fail.

https://codereview.chromium.org/936483004/diff/20001/tests/compiler/dart2js_e...
tests/compiler/dart2js_extra/21166_test.dart:21: doStuff(); // This is expected
to fail but not crash the compiler.
Check your operations.

https://codereview.chromium.org/936483004/diff/20001/tests/compiler/dart2js_e...
tests/compiler/dart2js_extra/21166_test.dart:22: } catch (_) {}
Make sure this is a TypeError.

Powered by Google App Engine
This is Rietveld 408576698