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

Unified Diff: runtime/vm/snapshot.cc

Issue 10441111: - Rename class index to class id. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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/raw_object.cc ('k') | runtime/vm/stub_code_ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/snapshot.cc
===================================================================
--- runtime/vm/snapshot.cc (revision 8135)
+++ runtime/vm/snapshot.cc (working copy)
@@ -232,7 +232,7 @@
}
cls_ = obj;
cls_.set_instance_kind(object_kind);
- cls_.set_index(kIllegalObjectKind);
+ cls_.set_id(kIllegalObjectKind);
isolate()->class_table()->Register(cls_);
return cls_.raw();
}
@@ -370,9 +370,9 @@
RawObject* raw_obj = reinterpret_cast<RawObject*>(address + kHeapObjectTag);
raw_obj->ptr()->class_ = cls.raw();
uword tags = 0;
- intptr_t index = cls.index();
+ intptr_t index = cls.id();
ASSERT(index != kIllegalObjectKind);
- tags = RawObject::ClassTag::update(index, tags);
+ tags = RawObject::ClassIdTag::update(index, tags);
tags = RawObject::SizeTag::update(size, tags);
raw_obj->ptr()->tags_ = tags;
return raw_obj;
@@ -527,7 +527,7 @@
// Check if it is a code object in that case just write a Null object
// as we do not want code objects in the snapshot.
- if (RawObject::ClassTag::decode(GetObjectTags(rawobj)) == kCode) {
+ if (RawObject::ClassIdTag::decode(GetObjectTags(rawobj)) == kCode) {
WriteIndexedObject(Object::kNullObject);
return;
}
@@ -612,7 +612,7 @@
return;
}
- RawClass* cls = class_table_->At(RawObject::ClassTag::decode(tags));
+ RawClass* cls = class_table_->At(RawObject::ClassIdTag::decode(tags));
// Object is being serialized, add it to the forward ref list and mark
// it so that future references to this object in the snapshot will use
« no previous file with comments | « runtime/vm/raw_object.cc ('k') | runtime/vm/stub_code_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698