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

Unified Diff: runtime/vm/object_store.h

Issue 22638011: Move Null class out of the VM isolate. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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/object_store.h
diff --git a/runtime/vm/object_store.h b/runtime/vm/object_store.h
index 76a2bcf72711b98ff10b3577da1f9bf14c50c763..1d51a8c437ca0d09b2cf0e9b3b3579f697abda9b 100644
--- a/runtime/vm/object_store.h
+++ b/runtime/vm/object_store.h
@@ -50,6 +50,12 @@ class ObjectStore {
object_type_ = value.raw();
}
+ RawClass* null_class() const {
+ ASSERT(null_class_ != Object::null());
+ return null_class_;
+ }
+ void set_null_class(const Class& value) { null_class_ = value.raw(); }
+
RawType* null_type() const { return null_type_; }
void set_null_type(const Type& value) {
null_type_ = value.raw();
@@ -427,6 +433,7 @@ class ObjectStore {
RawObject** from() { return reinterpret_cast<RawObject**>(&object_class_); }
RawClass* object_class_;
RawType* object_type_;
+ RawClass* null_class_;
RawType* null_type_;
RawType* dynamic_type_;
RawType* void_type_;
« runtime/vm/object.cc ('K') | « runtime/vm/object.cc ('k') | runtime/vm/object_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698