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

Unified Diff: runtime/vm/object.cc

Issue 353513002: Use range information for optimizing integer boxing and fix bug in range analysis. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 6 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 | « runtime/vm/object.h ('k') | runtime/vm/object_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
===================================================================
--- runtime/vm/object.cc (revision 37654)
+++ runtime/vm/object.cc (working copy)
@@ -15265,7 +15265,7 @@
if (IsMint()) {
Mint& mint = Mint::Handle();
mint ^= raw();
- if (Smi::IsValid64(mint.value())) {
+ if (Smi::IsValid(mint.value())) {
return Smi::New(mint.value());
} else {
return raw();
@@ -15507,7 +15507,7 @@
}
if (integer.IsMint()) {
int64_t mint_value = integer.AsInt64Value();
- return Smi::IsValid64(mint_value);
+ return Smi::IsValid(mint_value);
}
if (integer.IsBigint()) {
return BigintOperations::FitsIntoSmi(Bigint::Cast(integer));
@@ -15570,7 +15570,7 @@
RawMint* Mint::New(int64_t val, Heap::Space space) {
// Do not allocate a Mint if Smi would do.
- ASSERT(!Smi::IsValid64(val));
+ ASSERT(!Smi::IsValid(val));
ASSERT(Isolate::Current()->object_store()->mint_class() != Class::null());
Mint& result = Mint::Handle();
{
@@ -15587,7 +15587,7 @@
RawMint* Mint::NewCanonical(int64_t value) {
// Do not allocate a Mint if Smi would do.
- ASSERT(!Smi::IsValid64(value));
+ ASSERT(!Smi::IsValid(value));
const Class& cls =
Class::Handle(Isolate::Current()->object_store()->mint_class());
const Array& constants = Array::Handle(cls.constants());
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/object_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698