| Index: src/objects-debug.cc
|
| diff --git a/src/objects-debug.cc b/src/objects-debug.cc
|
| index 3047326e2ab195789d438c7e7efc15802cdebbe7..311cab6d8bc1c2348c75274bfc3e64aecc63c4ae 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() ==
|
| + instance_descriptors()->number_of_descriptors());
|
| + }
|
| SLOW_ASSERT(instance_descriptors()->IsSortedNoDuplicates());
|
| if (HasTransitionArray()) {
|
| SLOW_ASSERT(transitions()->IsSortedNoDuplicates());
|
|
|