Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index c17794f99b394456583b5bf9d9241777f1bc0d63..533e2f2603e9d457570b64dcc51456595c513244 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -5841,6 +5841,9 @@ void Heap::Verify() { |
VerifyPointersVisitor visitor; |
IterateRoots(&visitor, VISIT_ONLY_STRONG); |
+ VerifySmisVisitor smis_visitor; |
+ IterateSmiRoots(&smis_visitor); |
+ |
new_space_.Verify(); |
old_pointer_space_->Verify(&visitor); |
@@ -6138,6 +6141,12 @@ void Heap::IterateWeakRoots(ObjectVisitor* v, VisitMode mode) { |
} |
+void Heap::IterateSmiRoots(ObjectVisitor* v) { |
+ v->VisitPointers(&roots_[kSmiRootsStart], &roots_[kRootListLength]); |
+ v->Synchronize(VisitorSynchronization::kSmiRootList); |
+} |
+ |
+ |
void Heap::IterateStrongRoots(ObjectVisitor* v, VisitMode mode) { |
v->VisitPointers(&roots_[0], &roots_[kStrongRootListLength]); |
v->Synchronize(VisitorSynchronization::kStrongRootList); |