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

Unified Diff: runtime/vm/raw_object.h

Issue 501583007: Treat null like the object it is in the Observatory and Service. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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/raw_object.h
diff --git a/runtime/vm/raw_object.h b/runtime/vm/raw_object.h
index ebd0f2d311bf7d628aa84b3aba652106e9851a62..631630bf8d8c0815598941d645ac0f1e9dd0d55b 100644
--- a/runtime/vm/raw_object.h
+++ b/runtime/vm/raw_object.h
@@ -377,6 +377,9 @@ class RawObject {
ptr()->tags_ = RememberedBit::update(false, tags);
}
+ bool IsNullOrPseudoNull() {
+ return (!IsHeapObject() && (GetClassId() == kNullCid));
+ }
turnidge 2014/08/27 16:13:56 I missed where this is used... can you tell me?
rmacnak 2014/08/27 18:09:59 Was used in guard for values not to insert in the
bool IsDartInstance() {
return (!IsHeapObject() || (GetClassId() >= kInstanceCid));
}

Powered by Google App Engine
This is Rietveld 408576698