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

Unified Diff: runtime/vm/snapshot.cc

Issue 11299020: Make creation of list literal more resilient to changes in the underlying (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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/vm/snapshot.cc
===================================================================
--- runtime/vm/snapshot.cc (revision 14985)
+++ runtime/vm/snapshot.cc (working copy)
@@ -38,7 +38,7 @@
static bool IsObjectStoreTypeId(intptr_t index) {
// Check if this is a type which is stored in the object store.
- return (index >= kObjectType && index <= kListInterface);
+ return (index >= kObjectType && index <= kArrayType);
}
@@ -69,7 +69,7 @@
case kIntType: return object_store->int_type();
case kBoolType: return object_store->bool_type();
case kStringType: return object_store->string_type();
- case kListInterface: return object_store->list_interface();
+ case kArrayType: return object_store->array_type();
default: break;
}
UNREACHABLE();
@@ -103,8 +103,8 @@
return kBoolType;
} else if (raw_type == object_store->string_type()) {
return kStringType;
- } else if (raw_type == object_store->list_interface()) {
- return kListInterface;
+ } else if (raw_type == object_store->array_type()) {
+ return kArrayType;
}
return kInvalidIndex;
}
« runtime/vm/parser.cc ('K') | « runtime/vm/parser.cc ('k') | runtime/vm/snapshot_ids.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698