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

Issue 91103003: Use the integer type to get rid of above 0 checks in bounds checks. (Closed)

Created:
7 years ago by ngeoffray
Modified:
7 years ago
Reviewers:
kasperl, sra1
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Use the integer type to get rid of above 0 checks in bounds checks. R=kasperl@google.com Committed: https://code.google.com/p/dart/source/detail?r=30705

Patch Set 1 #

Patch Set 2 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -17 lines) Patch
M sdk/lib/_internal/compiler/implementation/ssa/value_range_analyzer.dart View 4 chunks +15 lines, -16 lines 1 comment Download
M tests/compiler/dart2js/value_range2_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download
A tests/compiler/dart2js/value_range3_test.dart View 1 chunk +33 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
ngeoffray
7 years ago (2013-11-27 10:07:38 UTC) #1
kasperl
LGTM.
7 years ago (2013-11-27 10:09:51 UTC) #2
ngeoffray
Committed patchset #2 manually as r30705 (presubmit successful).
7 years ago (2013-11-27 10:21:53 UTC) #3
sra1
7 years ago (2013-11-27 20:29:35 UTC) #4
Message was sent while issue was closed.
DBC

https://codereview.chromium.org/91103003/diff/20001/sdk/lib/_internal/compile...
File sdk/lib/_internal/compiler/implementation/ssa/value_range_analyzer.dart
(right):

https://codereview.chromium.org/91103003/diff/20001/sdk/lib/_internal/compile...
sdk/lib/_internal/compiler/implementation/ssa/value_range_analyzer.dart:296:
class PositiveValue extends InstructionValue {
Zero is possible, but is not positive.
Perhaps leave it as "LengthValue", or rename to "Nonnegative" or some other
term.

Powered by Google App Engine
This is Rietveld 408576698