| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| 11 // with the distribution. | 11 // with the distribution. |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 (kPointerSize <= instance_size() && | 265 (kPointerSize <= instance_size() && |
| 266 instance_size() < HEAP->Capacity())); | 266 instance_size() < HEAP->Capacity())); |
| 267 VerifyHeapPointer(prototype()); | 267 VerifyHeapPointer(prototype()); |
| 268 VerifyHeapPointer(instance_descriptors()); | 268 VerifyHeapPointer(instance_descriptors()); |
| 269 } | 269 } |
| 270 | 270 |
| 271 | 271 |
| 272 void Map::SharedMapVerify() { | 272 void Map::SharedMapVerify() { |
| 273 MapVerify(); | 273 MapVerify(); |
| 274 ASSERT(is_shared()); | 274 ASSERT(is_shared()); |
| 275 ASSERT_EQ(GetHeap()->empty_descriptor_array(), instance_descriptors()); | 275 ASSERT(instance_descriptors()->IsEmpty()); |
| 276 ASSERT_EQ(0, pre_allocated_property_fields()); | 276 ASSERT_EQ(0, pre_allocated_property_fields()); |
| 277 ASSERT_EQ(0, unused_property_fields()); | 277 ASSERT_EQ(0, unused_property_fields()); |
| 278 ASSERT_EQ(StaticVisitorBase::GetVisitorId(instance_type(), instance_size()), | 278 ASSERT_EQ(StaticVisitorBase::GetVisitorId(instance_type(), instance_size()), |
| 279 visitor_id()); | 279 visitor_id()); |
| 280 } | 280 } |
| 281 | 281 |
| 282 | 282 |
| 283 void CodeCache::CodeCacheVerify() { | 283 void CodeCache::CodeCacheVerify() { |
| 284 VerifyHeapPointer(default_cache()); | 284 VerifyHeapPointer(default_cache()); |
| 285 VerifyHeapPointer(normal_type_cache()); | 285 VerifyHeapPointer(normal_type_cache()); |
| (...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 729 ASSERT(e->IsUndefined()); | 729 ASSERT(e->IsUndefined()); |
| 730 } | 730 } |
| 731 } | 731 } |
| 732 } | 732 } |
| 733 } | 733 } |
| 734 | 734 |
| 735 | 735 |
| 736 #endif // DEBUG | 736 #endif // DEBUG |
| 737 | 737 |
| 738 } } // namespace v8::internal | 738 } } // namespace v8::internal |
| OLD | NEW |