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

Unified Diff: runtime/vm/heap.cc

Issue 10450014: Request for comments on overall approach. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix scavenger and freelist handling 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..dd87de49abe162f2c9fdaf8aeeaec3cd61b558e8 100644
--- a/runtime/vm/heap.cc
+++ b/runtime/vm/heap.cc
@@ -132,8 +132,9 @@ void Heap::IterateCodePointers(ObjectPointerVisitor* visitor) {
RawInstructions* Heap::FindObjectInCodeSpace(FindObjectVisitor* visitor) {
// The code heap can only have RawInstructions objects.
RawObject* raw_obj = code_space_->FindObject(visitor);
+ // TODO(vegorov): class lookup to a helper method.
ASSERT((raw_obj == Object::null()) ||
- (raw_obj->ptr()->class_->ptr()->instance_kind_ == kInstructions));
+ (raw_obj->GetClass()->ptr()->instance_kind_ == kInstructions));
return reinterpret_cast<RawInstructions*>(raw_obj);
}

Powered by Google App Engine
This is Rietveld 408576698