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

Issue 11042002: Fix buggy computations in value ranges, spotted by floitsch@. (Closed)

Created:
8 years, 2 months ago by ngeoffray
Modified:
8 years, 2 months ago
Reviewers:
Søren Gjesse, floitsch
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fix buggy computations in value ranges, spotted by floitsch@. Committed: https://code.google.com/p/dart/source/detail?r=13344

Patch Set 1 : #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+345 lines, -7 lines) Patch
M lib/compiler/implementation/ssa/value_range_analyzer.dart View 1 2 3 4 2 chunks +33 lines, -4 lines 4 comments Download
A tests/compiler/dart2js/value_range2_test.dart View 1 1 chunk +312 lines, -0 lines 0 comments Download
M tests/compiler/dart2js_extra/dart2js_extra.status View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M tests/language/language_dart2js.status View 1 2 3 4 2 chunks +0 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
ngeoffray
8 years, 2 months ago (2012-10-02 07:57:16 UTC) #1
floitsch
FYI. Please add a test for negative bit-ands. http://codereview.chromium.org/11042002/diff/4001/lib/compiler/implementation/ssa/value_range_analyzer.dart File lib/compiler/implementation/ssa/value_range_analyzer.dart (right): http://codereview.chromium.org/11042002/diff/4001/lib/compiler/implementation/ssa/value_range_analyzer.dart#newcode293 lib/compiler/implementation/ssa/value_range_analyzer.dart:293: // ...
8 years, 2 months ago (2012-10-02 09:32:28 UTC) #2
ngeoffray
I added a unit test for testing range operations. Soren, could you please take a ...
8 years, 2 months ago (2012-10-05 12:48:42 UTC) #3
Søren Gjesse
lgtm
8 years, 2 months ago (2012-10-08 06:49:38 UTC) #4
floitsch
FYI. http://codereview.chromium.org/11042002/diff/2002/lib/compiler/implementation/ssa/value_range_analyzer.dart File lib/compiler/implementation/ssa/value_range_analyzer.dart (right): http://codereview.chromium.org/11042002/diff/2002/lib/compiler/implementation/ssa/value_range_analyzer.dart#newcode56 lib/compiler/implementation/ssa/value_range_analyzer.dart:56: return new OperationValue(this, other, const SubtractOperation()); you shouldn't ...
8 years, 2 months ago (2012-10-10 15:19:59 UTC) #5
ngeoffray
8 years, 2 months ago (2012-10-15 12:17:23 UTC) #6
http://codereview.chromium.org/11042002/diff/2002/lib/compiler/implementation...
File lib/compiler/implementation/ssa/value_range_analyzer.dart (right):

http://codereview.chromium.org/11042002/diff/2002/lib/compiler/implementation...
lib/compiler/implementation/ssa/value_range_analyzer.dart:56: return new
OperationValue(this, other, const SubtractOperation());
On 2012/10/10 15:19:59, floitsch wrote:
> you shouldn't use the operations directly but fetch them from the correct
> system.

I removed this code, so it's not a problem anymore.

http://codereview.chromium.org/11042002/diff/2002/lib/compiler/implementation...
lib/compiler/implementation/ssa/value_range_analyzer.dart:64: if
(other.isPositive()) return new IntValue(-value);
On 2012/10/10 15:19:59, floitsch wrote:
> I don't think this is true.
> -1 & FF => FF and not 1

Well spotted. Actually I think this is dead code, let me check and update the
code.

Powered by Google App Engine
This is Rietveld 408576698