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

Unified Diff: vm/object_store.h

Issue 9965042: - Add a class index to the classes. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 9 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: vm/object_store.h
===================================================================
--- vm/object_store.h (revision 5947)
+++ vm/object_store.h (working copy)
@@ -61,7 +61,10 @@
~ObjectStore();
- RawClass* object_class() const { return object_class_; }
+ RawClass* object_class() const {
+ ASSERT(object_class_ != Object::null());
+ return object_class_;
+ }
void set_object_class(const Class& value) { object_class_ = value.raw(); }
static intptr_t object_class_offset() {
return OFFSET_OF(ObjectStore, object_class_);

Powered by Google App Engine
This is Rietveld 408576698