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

Unified Diff: runtime/vm/snapshot.cc

Issue 10942025: Convert String and List to abstract classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated to tip-of-tree. Created 8 years, 3 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
Index: runtime/vm/snapshot.cc
diff --git a/runtime/vm/snapshot.cc b/runtime/vm/snapshot.cc
index b5102a313dd872452a5bee70f652cbea496abc02..ae08a2806f106595072c4ea5b3bf88546b90890f 100644
--- a/runtime/vm/snapshot.cc
+++ b/runtime/vm/snapshot.cc
@@ -66,8 +66,8 @@ static RawType* GetType(ObjectStore* object_store, int index) {
case kDoubleType: return object_store->double_type();
case kIntType: return object_store->int_type();
case kBoolType: return object_store->bool_type();
- case kStringInterface: return object_store->string_interface();
- case kListInterface: return object_store->list_interface();
+ case kStringType: return object_store->string_type();
+ case kListType: return object_store->list_type();
case kByteArrayInterface: return object_store->byte_array_interface();
default: break;
}
@@ -100,10 +100,10 @@ static int GetTypeIndex(ObjectStore* object_store, const RawType* raw_type) {
return kIntType;
} else if (raw_type == object_store->bool_type()) {
return kBoolType;
- } else if (raw_type == object_store->string_interface()) {
- return kStringInterface;
- } else if (raw_type == object_store->list_interface()) {
- return kListInterface;
+ } else if (raw_type == object_store->string_type()) {
+ return kStringType;
+ } else if (raw_type == object_store->list_type()) {
+ return kListType;
} else if (raw_type == object_store->byte_array_interface()) {
return kByteArrayInterface;
}

Powered by Google App Engine
This is Rietveld 408576698