summaryrefslogtreecommitdiff
path: root/deps/v8/test/cctest/heap/test-compaction.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/cctest/heap/test-compaction.cc')
-rw-r--r--deps/v8/test/cctest/heap/test-compaction.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/deps/v8/test/cctest/heap/test-compaction.cc b/deps/v8/test/cctest/heap/test-compaction.cc
index f34ac54375..d98aa1fb56 100644
--- a/deps/v8/test/cctest/heap/test-compaction.cc
+++ b/deps/v8/test/cctest/heap/test-compaction.cc
@@ -18,6 +18,7 @@
namespace v8 {
namespace internal {
+namespace heap {
namespace {
@@ -26,7 +27,11 @@ void CheckInvariantsOfAbortedPage(Page* page) {
// 1) Markbits are cleared
// 2) The page is not marked as evacuation candidate anymore
// 3) The page is not marked as aborted compaction anymore.
- CHECK(MarkingState::Internal(page).bitmap()->IsClean());
+ CHECK(page->heap()
+ ->mark_compact_collector()
+ ->non_atomic_marking_state()
+ ->bitmap(page)
+ ->IsClean());
CHECK(!page->IsEvacuationCandidate());
CHECK(!page->IsFlagSet(Page::COMPACTION_WAS_ABORTED));
}
@@ -370,5 +375,6 @@ HEAP_TEST(CompactionPartiallyAbortedPageWithStoreBufferEntries) {
}
}
+} // namespace heap
} // namespace internal
} // namespace v8