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

Unified Diff: dart/runtime/vm/object.cc

Issue 754763003: Version 1.8.3 (Closed) Base URL: http://dart.googlecode.com/svn/branches/1.8/
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dart/runtime/vm/method_recognizer.h ('k') | dart/runtime/vm/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/runtime/vm/object.cc
===================================================================
--- dart/runtime/vm/object.cc (revision 42037)
+++ dart/runtime/vm/object.cc (working copy)
@@ -15904,9 +15904,9 @@
return raw();
}
{ // Check for overflow.
- int cnt = Utils::HighestBit(left_value);
- if ((cnt + right_value) >= Smi::kBits) {
- if ((cnt + right_value) >= Mint::kBits) {
+ int cnt = Utils::BitLength(left_value);
+ if ((cnt + right_value) > Smi::kBits) {
+ if ((cnt + right_value) > Mint::kBits) {
return Bigint::NewFromShiftedInt64(left_value, right_value);
} else {
int64_t left_64 = left_value;
« no previous file with comments | « dart/runtime/vm/method_recognizer.h ('k') | dart/runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698