| Index: src/objects-debug.cc
|
| ===================================================================
|
| --- src/objects-debug.cc (revision 5141)
|
| +++ src/objects-debug.cc (working copy)
|
| @@ -646,6 +646,16 @@
|
| }
|
|
|
|
|
| +void Map::NormalizedMapVerify() {
|
| + MapVerify();
|
| + ASSERT(instance_descriptors() == Heap::empty_descriptor_array());
|
| + ASSERT(code_cache() == Heap::empty_fixed_array());
|
| + ASSERT(pre_allocated_property_fields() == 0);
|
| + ASSERT(unused_property_fields() == 0);
|
| + ASSERT(scavenger() == Heap::GetScavenger(instance_type(), instance_size()));
|
| +}
|
| +
|
| +
|
| void CodeCache::CodeCachePrint() {
|
| HeapObject::PrintHeader("CodeCache");
|
| PrintF("\n - default_cache: ");
|
| @@ -1361,6 +1371,21 @@
|
| }
|
|
|
|
|
| +void NormalizedMapCache::NormalizedMapCacheVerify() {
|
| + FixedArray::cast(this)->Verify();
|
| + if (FLAG_enable_slow_asserts) {
|
| + for (int i = 0; i < length(); i++) {
|
| + Object* e = get(i);
|
| + if (e->IsMap()) {
|
| + Map::cast(e)->NormalizedMapVerify();
|
| + } else {
|
| + ASSERT(e->IsUndefined());
|
| + }
|
| + }
|
| + }
|
| +}
|
| +
|
| +
|
| #endif // DEBUG
|
|
|
| } } // namespace v8::internal
|
|
|