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

Unified Diff: runtime/vm/dart_api_message.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/dart_api_impl.cc ('k') | runtime/vm/deferred_objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_api_message.cc
===================================================================
--- runtime/vm/dart_api_message.cc (revision 37654)
+++ runtime/vm/dart_api_message.cc (working copy)
@@ -862,7 +862,7 @@
void ApiMessageWriter::WriteSmi(int64_t value) {
- ASSERT(Smi::IsValid64(value));
+ ASSERT(Smi::IsValid(value));
Write<RawObject*>(Smi::New(static_cast<intptr_t>(value)));
}
@@ -873,7 +873,7 @@
void ApiMessageWriter::WriteMint(Dart_CObject* object, int64_t value) {
- ASSERT(!Smi::IsValid64(value));
+ ASSERT(!Smi::IsValid(value));
// Write out the serialization header value for mint object.
WriteInlinedHeader(object);
// Write out the class and tags information.
@@ -886,7 +886,7 @@
void ApiMessageWriter::WriteInt32(Dart_CObject* object) {
int64_t value = object->value.as_int32;
- if (Smi::IsValid64(value)) {
+ if (Smi::IsValid(value)) {
WriteSmi(value);
} else {
WriteMint(object, value);
@@ -896,7 +896,7 @@
void ApiMessageWriter::WriteInt64(Dart_CObject* object) {
int64_t value = object->value.as_int64;
- if (Smi::IsValid64(value)) {
+ if (Smi::IsValid(value)) {
WriteSmi(value);
} else {
WriteMint(object, value);
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/deferred_objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698