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

Unified Diff: runtime/lib/typed_data.cc

Issue 14962008: Fix issue 5275: The VM must always generate the most compact form of an integer (Smi, Mint or Bigin… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 months 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
Index: runtime/lib/typed_data.cc
===================================================================
--- runtime/lib/typed_data.cc (revision 22802)
+++ runtime/lib/typed_data.cc (working copy)
@@ -259,7 +259,7 @@
if (value > static_cast<uint64_t>(Mint::kMaxValue)) { \
result = BigintOperations::NewFromUint64(value); \
} else if (value > static_cast<uint64_t>(Smi::kMaxValue)) { \
siva 2013/05/16 19:52:50 Ditto comment here. This could just be: } else {
srdjan 2013/05/16 20:03:31 Done.
- result = Mint::New(value); \
+ result = Integer::New(value); \
} else { \
result = Smi::New(value); \
} \
@@ -410,7 +410,7 @@
if (value > static_cast<uint64_t>(Mint::kMaxValue)) {
return BigintOperations::NewFromUint64(value);
} else if (value > static_cast<uint64_t>(Smi::kMaxValue)) {
- return Mint::New(value);
+ return Integer::New(value);
siva 2013/05/16 19:52:50 Ditto here too. it could just be: return Integer:
srdjan 2013/05/16 20:03:31 Done.
}
return Smi::New(value);
}
« runtime/lib/double.cc ('K') | « runtime/lib/double.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698