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

Unified Diff: runtime/vm/raw_object.h

Issue 24210003: Never return a Dart_Handle on a dart::Class from the embedding API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: . Created 7 years, 3 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
« runtime/vm/mirrors_api_impl.cc ('K') | « runtime/vm/mirrors_api_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/raw_object.h
diff --git a/runtime/vm/raw_object.h b/runtime/vm/raw_object.h
index 32f5d83098f9f5e5f09850f2ab1686324d36630f..0e28b3190f01d18be0c3bbed79a8c91cbf64ee5a 100644
--- a/runtime/vm/raw_object.h
+++ b/runtime/vm/raw_object.h
@@ -347,6 +347,10 @@ class RawObject {
ptr()->tags_ = RememberedBit::update(false, tags);
}
+ bool IsRawClass() {
rmacnak 2013/09/19 00:46:04 Will remove before commit, just here to demonstrat
+ return IsHeapObject() && (GetClassId() == kClassCid);
+ }
+
bool IsDartInstance() {
return (!IsHeapObject() || (GetClassId() >= kInstanceCid));
}
« runtime/vm/mirrors_api_impl.cc ('K') | « runtime/vm/mirrors_api_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698