Index: src/heap/spaces.cc |
diff --git a/src/heap/spaces.cc b/src/heap/spaces.cc |
index db8fb4b7d066bb67c6454827b3570cad811e77d7..8f75e14b788cac4e31459caed1cc58243f0280fd 100644 |
--- a/src/heap/spaces.cc |
+++ b/src/heap/spaces.cc |
@@ -1569,6 +1569,8 @@ void PagedSpace::Verify(ObjectVisitor* visitor) { |
// The object itself should look OK. |
object->ObjectVerify(); |
+ heap()->VerifyRememberedSetFor(object); |
+ |
// All the interior pointers should be contained in the heap. |
int size = object->Size(); |
object->IterateBody(map->instance_type(), size, visitor); |
@@ -3321,6 +3323,8 @@ void LargeObjectSpace::Verify() { |
// The object itself should look OK. |
object->ObjectVerify(); |
+ heap()->VerifyRememberedSetFor(object); |
+ |
// Byte arrays and strings don't have interior pointers. |
if (object->IsAbstractCode()) { |
VerifyPointersVisitor code_visitor; |