Chromium Code Reviews| Index: src/objects-debug.cc |
| diff --git a/src/objects-debug.cc b/src/objects-debug.cc |
| index 3047326e2ab195789d438c7e7efc15802cdebbe7..c738d905bc414330cff89f8c33873ffe2cc929c3 100644 |
| --- a/src/objects-debug.cc |
| +++ b/src/objects-debug.cc |
| @@ -302,6 +302,12 @@ void Map::MapVerify() { |
| instance_size() < HEAP->Capacity())); |
| VerifyHeapPointer(prototype()); |
| VerifyHeapPointer(instance_descriptors()); |
| + if (instance_descriptors()->number_of_descriptors() == 0) { |
| + ASSERT(LastAdded() == kNoneAdded); |
| + } else { |
| + ASSERT(instance_descriptors()->GetDetails(LastAdded()).index() == |
| + NumberOfSetDescriptors()); |
|
danno
2012/07/26 14:42:09
How about NumberOfOwnDescriptors, or just use numb
|
| + } |
| SLOW_ASSERT(instance_descriptors()->IsSortedNoDuplicates()); |
| if (HasTransitionArray()) { |
| SLOW_ASSERT(transitions()->IsSortedNoDuplicates()); |