Commit 9de44924 authored by hpayer@chromium.org's avatar hpayer@chromium.org

Fix precisely sweeping asserts.

BUG=
R=jochen@chromium.org

Review URL: https://codereview.chromium.org/463503002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23041 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 0425f9ed
......@@ -47,7 +47,9 @@ HeapObjectIterator::HeapObjectIterator(Page* page,
owner == page->heap()->code_space());
Initialize(reinterpret_cast<PagedSpace*>(owner), page->area_start(),
page->area_end(), kOnePageOnly, size_func);
DCHECK(page->WasSweptPrecisely() || page->SweepingCompleted());
DCHECK(page->WasSweptPrecisely() ||
(static_cast<PagedSpace*>(owner)->swept_precisely() &&
page->SweepingCompleted()));
}
......@@ -81,7 +83,9 @@ bool HeapObjectIterator::AdvanceToNextPage() {
if (cur_page == space_->anchor()) return false;
cur_addr_ = cur_page->area_start();
cur_end_ = cur_page->area_end();
DCHECK(cur_page->WasSweptPrecisely());
DCHECK(cur_page->WasSweptPrecisely() ||
(static_cast<PagedSpace*>(cur_page->owner())->swept_precisely() &&
cur_page->SweepingCompleted()));
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment