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

Issue 321943005: Fix bug with range of shift operations. (Closed)

Created:
6 years, 6 months ago by Florian Schneider
Modified:
6 years, 6 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Fix bug with range of shift operations. A shift can only deoptimize if the rhs is negative: This is the case if the range of the rhs is not contained within [0, +inf]. !range->IsPositive() is _not_ the same as range->IsNegative(). I find these names confusing and we should find better alternatives. R=vegorov@google.com Committed: https://code.google.com/p/dart/source/detail?r=37176

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -6 lines) Patch
M runtime/vm/intermediate_language.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/vm/intermediate_language_arm.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/intermediate_language_arm64.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/intermediate_language_mips.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/intermediate_language_x64.cc View 1 1 chunk +1 line, -1 line 0 comments Download
A tests/language/vm/optimized_shl_test.dart View 1 2 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Florian Schneider
6 years, 6 months ago (2014-06-10 10:53:41 UTC) #1
kasperl
Regression test?
6 years, 6 months ago (2014-06-10 10:55:15 UTC) #2
Vyacheslav Egorov (Google)
lgtm
6 years, 6 months ago (2014-06-10 11:41:38 UTC) #3
Vyacheslav Egorov (Google)
I suspect there is a test that fails, if there is none, please add one. ...
6 years, 6 months ago (2014-06-10 11:48:35 UTC) #4
Florian Schneider
On 2014/06/10 11:48:35, Vyacheslav Egorov (Google) wrote: > I suspect there is a test that ...
6 years, 6 months ago (2014-06-10 12:05:23 UTC) #5
Florian Schneider
6 years, 6 months ago (2014-06-10 12:58:40 UTC) #6
Message was sent while issue was closed.
Committed patchset #3 manually as r37176 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698