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

Unified Diff: runtime/lib/double.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
« no previous file with comments | « no previous file | runtime/lib/typed_data.cc » ('j') | runtime/lib/typed_data.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/double.cc
===================================================================
--- runtime/lib/double.cc (revision 22802)
+++ runtime/lib/double.cc (working copy)
@@ -83,7 +83,7 @@
if (BigintOperations::FitsIntoSmi(big)) {
return BigintOperations::ToSmi(big);
siva 2013/05/16 19:52:50 Do we still need this check? We could just do: If
srdjan 2013/05/16 20:03:31 Done.
} else if (BigintOperations::FitsIntoMint(big)) {
- return Mint::New(BigintOperations::ToMint(big));
+ return Integer::New(BigintOperations::ToMint(big));
} else {
return big.raw();
}
« no previous file with comments | « no previous file | runtime/lib/typed_data.cc » ('j') | runtime/lib/typed_data.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698