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

Unified Diff: runtime/vm/object.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.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index 6e45f028dd6b18fcb27ca0e28b9f483cf84f88fe..ed73e6b290694cae026078ac4f7ed8527a6bc1fa 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -410,7 +410,6 @@ class Object {
}
static RawClass* class_class() { return class_class_; }
- static RawClass* null_class() { return null_class_; }
static RawClass* dynamic_class() { return dynamic_class_; }
static RawClass* void_class() { return void_class_; }
static RawClass* unresolved_class_class() { return unresolved_class_class_; }
@@ -558,7 +557,6 @@ class Object {
static RawObject* null_;
static RawClass* class_class_; // Class of the Class vm object.
- static RawClass* null_class_; // Class of the null object.
static RawClass* dynamic_class_; // Class of the 'dynamic' type.
static RawClass* void_class_; // Class of the 'void' type.
static RawClass* unresolved_class_class_; // Class of UnresolvedClass.
@@ -3751,9 +3749,7 @@ class AbstractType : public Instance {
}
// Check if this type represents the 'Null' type.
- bool IsNullType() const {
- return HasResolvedTypeClass() && (type_class() == Object::null_class());
- }
+ bool IsNullType() const;
// Check if this type represents the 'void' type.
bool IsVoidType() const {
« no previous file with comments | « runtime/vm/dart_api_impl_test.cc ('k') | runtime/vm/object.cc » ('j') | runtime/vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698