| Index: src/objects-debug.cc
|
| diff --git a/src/objects-debug.cc b/src/objects-debug.cc
|
| index 3bfb74d6a494e8a1a60d9cba10fe461a5c95e22d..9006abde1b88114f9ab57f8554993d5b042f2bf4 100644
|
| --- a/src/objects-debug.cc
|
| +++ b/src/objects-debug.cc
|
| @@ -992,6 +992,28 @@ void NormalizedMapCache::NormalizedMapCacheVerify() {
|
| }
|
|
|
|
|
| +void Map::ZapInstanceDescriptors() {
|
| + DescriptorArray* descriptors = instance_descriptors();
|
| + if (descriptors == GetHeap()->empty_descriptor_array()) return;
|
| + FixedArray* contents = FixedArray::cast(
|
| + descriptors->get(DescriptorArray::kContentArrayIndex));
|
| + MemsetPointer(descriptors->data_start(),
|
| + GetHeap()->the_hole_value(),
|
| + descriptors->length());
|
| + MemsetPointer(contents->data_start(),
|
| + GetHeap()->the_hole_value(),
|
| + contents->length());
|
| +}
|
| +
|
| +
|
| +void Map::ZapPrototypeTransitions() {
|
| + FixedArray* proto_transitions = prototype_transitions();
|
| + MemsetPointer(proto_transitions->data_start(),
|
| + GetHeap()->the_hole_value(),
|
| + proto_transitions->length());
|
| +}
|
| +
|
| +
|
| #endif // DEBUG
|
|
|
| } } // namespace v8::internal
|
|
|