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

Issue 12212175: Optimize left shift of a constant: compute max value of right that does not overflow into Mint/Bigi… (Closed)

Created:
7 years, 10 months ago by srdjan
Modified:
7 years, 9 months ago
Reviewers:
Florian Schneider
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Optimize left shift of a constant: compute max value of right that does not overflow into Mint/Bigint. Committed: https://code.google.com/p/dart/source/detail?r=18525

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -2 lines) Patch
M runtime/vm/intermediate_language_ia32.cc View 1 2 1 chunk +29 lines, -1 line 0 comments Download
M runtime/vm/intermediate_language_x64.cc View 1 2 1 chunk +29 lines, -1 line 0 comments Download
A tests/standalone/constant_left_shift_test.dart View 1 2 1 chunk +78 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
srdjan
7 years, 10 months ago (2013-02-14 00:25:25 UTC) #1
Florian Schneider
LGTM. https://codereview.chromium.org/12212175/diff/1/tests/standalone/constant_left_shift_test.dart File tests/standalone/constant_left_shift_test.dart (right): https://codereview.chromium.org/12212175/diff/1/tests/standalone/constant_left_shift_test.dart#newcode25 tests/standalone/constant_left_shift_test.dart:25: } Also add a test case for shiftLeft0(i) ...
7 years, 10 months ago (2013-02-14 17:41:06 UTC) #2
srdjan
7 years, 9 months ago (2013-02-27 18:27:25 UTC) #3
Message was sent while issue was closed.
https://codereview.chromium.org/12212175/diff/1/tests/standalone/constant_lef...
File tests/standalone/constant_left_shift_test.dart (right):

https://codereview.chromium.org/12212175/diff/1/tests/standalone/constant_lef...
tests/standalone/constant_left_shift_test.dart:25: }
On 2013/02/14 17:41:07, Florian Schneider wrote:
> Also add a test case for shiftLeft0(i) where i < 0.

Done.

Powered by Google App Engine
This is Rietveld 408576698