| 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);
|
| }
|
|
|
|
|