| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 |
| (...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 634 void Map::MapVerify() { | 634 void Map::MapVerify() { |
| 635 ASSERT(!Heap::InNewSpace(this)); | 635 ASSERT(!Heap::InNewSpace(this)); |
| 636 ASSERT(FIRST_TYPE <= instance_type() && instance_type() <= LAST_TYPE); | 636 ASSERT(FIRST_TYPE <= instance_type() && instance_type() <= LAST_TYPE); |
| 637 ASSERT(kPointerSize <= instance_size() | 637 ASSERT(kPointerSize <= instance_size() |
| 638 && instance_size() < Heap::Capacity()); | 638 && instance_size() < Heap::Capacity()); |
| 639 VerifyHeapPointer(prototype()); | 639 VerifyHeapPointer(prototype()); |
| 640 VerifyHeapPointer(instance_descriptors()); | 640 VerifyHeapPointer(instance_descriptors()); |
| 641 } | 641 } |
| 642 | 642 |
| 643 | 643 |
| 644 void CodeCache::CodeCachePrint() { |
| 645 HeapObject::PrintHeader("CodeCache"); |
| 646 PrintF("\n - default_cache: "); |
| 647 default_cache()->ShortPrint(); |
| 648 PrintF("\n - normal_type_cache: "); |
| 649 normal_type_cache()->ShortPrint(); |
| 650 } |
| 651 |
| 652 |
| 653 void CodeCache::CodeCacheVerify() { |
| 654 VerifyHeapPointer(default_cache()); |
| 655 VerifyHeapPointer(normal_type_cache()); |
| 656 ASSERT(default_cache()->IsFixedArray()); |
| 657 ASSERT(normal_type_cache()->IsUndefined() |
| 658 || normal_type_cache()->IsCodeCacheHashTable()); |
| 659 } |
| 660 |
| 661 |
| 644 void FixedArray::FixedArrayPrint() { | 662 void FixedArray::FixedArrayPrint() { |
| 645 HeapObject::PrintHeader("FixedArray"); | 663 HeapObject::PrintHeader("FixedArray"); |
| 646 PrintF(" - length: %d", length()); | 664 PrintF(" - length: %d", length()); |
| 647 for (int i = 0; i < length(); i++) { | 665 for (int i = 0; i < length(); i++) { |
| 648 PrintF("\n [%d]: ", i); | 666 PrintF("\n [%d]: ", i); |
| 649 get(i)->ShortPrint(); | 667 get(i)->ShortPrint(); |
| 650 } | 668 } |
| 651 PrintF("\n"); | 669 PrintF("\n"); |
| 652 } | 670 } |
| 653 | 671 |
| (...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1307 } | 1325 } |
| 1308 current = hash; | 1326 current = hash; |
| 1309 } | 1327 } |
| 1310 return true; | 1328 return true; |
| 1311 } | 1329 } |
| 1312 | 1330 |
| 1313 | 1331 |
| 1314 #endif // DEBUG | 1332 #endif // DEBUG |
| 1315 | 1333 |
| 1316 } } // namespace v8::internal | 1334 } } // namespace v8::internal |
| OLD | NEW |