| Index: src/heap/spaces-inl.h
|
| diff --git a/src/heap/spaces-inl.h b/src/heap/spaces-inl.h
|
| index 6222e6bbed600eb2063e5077e2f17bd12f6b66fd..02a115a3dbd0021d0e06c442138e5b449906c773 100644
|
| --- a/src/heap/spaces-inl.h
|
| +++ b/src/heap/spaces-inl.h
|
| @@ -88,7 +88,7 @@ HeapObject* HeapObjectIterator::FromCurrentPage() {
|
| continue;
|
| }
|
| HeapObject* obj = HeapObject::FromAddress(cur_addr_);
|
| - int obj_size = (size_func_ == NULL) ? obj->Size() : size_func_(obj);
|
| + int obj_size = obj->Size();
|
| cur_addr_ += obj_size;
|
| DCHECK(cur_addr_ <= cur_end_);
|
| // TODO(hpayer): Remove the debugging code.
|
|
|