| Index: src/spaces.cc
|
| diff --git a/src/spaces.cc b/src/spaces.cc
|
| index 7fb99f8f70ff6264d659fe8c778cbdcad01b9cac..e7cb8ccf85254003af635e44c2fe81d582e2b926 100644
|
| --- a/src/spaces.cc
|
| +++ b/src/spaces.cc
|
| @@ -18,9 +18,6 @@ namespace internal {
|
| // HeapObjectIterator
|
|
|
| HeapObjectIterator::HeapObjectIterator(PagedSpace* space) {
|
| - // Check that we actually can iterate this space.
|
| - ASSERT(space->is_iterable());
|
| -
|
| // You can't actually iterate over the anchor page. It is not a real page,
|
| // just an anchor for the double linked page list. Initialize as if we have
|
| // reached the end of the anchor page, then the first iteration will move on
|
| @@ -35,9 +32,6 @@ HeapObjectIterator::HeapObjectIterator(PagedSpace* space) {
|
|
|
| HeapObjectIterator::HeapObjectIterator(PagedSpace* space,
|
| HeapObjectCallback size_func) {
|
| - // Check that we actually can iterate this space.
|
| - ASSERT(space->is_iterable());
|
| -
|
| // You can't actually iterate over the anchor page. It is not a real page,
|
| // just an anchor for the double linked page list. Initialize the current
|
| // address and end as NULL, then the first iteration will move on
|
| @@ -72,6 +66,9 @@ void HeapObjectIterator::Initialize(PagedSpace* space,
|
| Address cur, Address end,
|
| HeapObjectIterator::PageMode mode,
|
| HeapObjectCallback size_f) {
|
| + // Check that we actually can iterate this space.
|
| + ASSERT(space->is_iterable());
|
| +
|
| space_ = space;
|
| cur_addr_ = cur;
|
| cur_end_ = end;
|
|
|