Chromium Code Reviews| Index: runtime/lib/double.cc |
| =================================================================== |
| --- runtime/lib/double.cc (revision 22813) |
| +++ runtime/lib/double.cc (working copy) |
| @@ -80,10 +80,8 @@ |
| Exceptions::ThrowByType(Exceptions::kUnsupported, args); |
| } |
| const Bigint& big = Bigint::Handle(BigintOperations::NewFromDouble(val)); |
| - if (BigintOperations::FitsIntoSmi(big)) { |
| - return BigintOperations::ToSmi(big); |
| - } else if (BigintOperations::FitsIntoMint(big)) { |
| - return Mint::New(BigintOperations::ToMint(big)); |
| + if (BigintOperations::FitsIntoMint(big)) { |
|
Ivan Posva
2013/05/16 21:46:53
I find this very confusing. This would be much mor
srdjan
2013/05/16 21:53:46
Done in next CL.
|
| + return Integer::New(BigintOperations::ToMint(big)); |
| } else { |
| return big.raw(); |
| } |