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

Unified Diff: runtime/vm/raw_object.h

Issue 10444091: Avoid reading RawObject::class_ directly in the runtime. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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 ee33853baf6f3c71912996bb473de29749bb771a..99e234e4906711948e1fa7608012c194b1d27f19 100644
--- a/runtime/vm/raw_object.h
+++ b/runtime/vm/raw_object.h
@@ -335,6 +335,7 @@ class RawObject {
intptr_t GetClassIndex() const {
uword tags = ptr()->tags_;
+ ASSERT(!FreeBit::decode(tags));
Ivan Posva 2012/06/01 16:31:06 Please mark this with a TODO that we need to revis
return ClassTag::decode(tags);
}
@@ -344,6 +345,7 @@ class RawObject {
friend class MarkingVisitor;
friend class Object;
friend class RawInstructions;
+ friend class RawInstance;
friend class SnapshotReader;
friend class SnapshotWriter;
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/raw_object.cc » ('j') | runtime/vm/raw_object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698