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

Unified Diff: runtime/vm/heap.cc

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/heap.cc
diff --git a/runtime/vm/heap.cc b/runtime/vm/heap.cc
index 1a4df3c328eb4f54527af2524f8d398937bea608..5edb638e75a3e5654c503e48bf9dd1c0562d3d22 100644
--- a/runtime/vm/heap.cc
+++ b/runtime/vm/heap.cc
@@ -133,7 +133,7 @@ RawInstructions* Heap::FindObjectInCodeSpace(FindObjectVisitor* visitor) {
// The code heap can only have RawInstructions objects.
RawObject* raw_obj = code_space_->FindObject(visitor);
ASSERT((raw_obj == Object::null()) ||
- (raw_obj->ptr()->class_->ptr()->instance_kind_ == kInstructions));
+ (raw_obj->GetClassIndex() == kInstructions));
return reinterpret_cast<RawInstructions*>(raw_obj);
}
« no previous file with comments | « runtime/vm/gc_marker.cc ('k') | runtime/vm/object.h » ('j') | runtime/vm/raw_object.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698