Revision: 23041
Author:   [email protected]
Date:     Mon Aug 11 13:45:00 2014 UTC
Log:      Fix precisely sweeping asserts.

BUG=
[email protected]

Review URL: https://codereview.chromium.org/463503002
http://code.google.com/p/v8/source/detail?r=23041

Modified:
 /branches/bleeding_edge/src/heap/spaces.cc

=======================================
--- /branches/bleeding_edge/src/heap/spaces.cc  Tue Aug  5 08:18:22 2014 UTC
+++ /branches/bleeding_edge/src/heap/spaces.cc  Mon Aug 11 13:45:00 2014 UTC
@@ -47,7 +47,9 @@
          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 @@
   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;
 }

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to