| 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 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 633 prototype()->ShortPrint(); | 633 prototype()->ShortPrint(); |
| 634 PrintF("\n - constructor: "); | 634 PrintF("\n - constructor: "); |
| 635 constructor()->ShortPrint(); | 635 constructor()->ShortPrint(); |
| 636 PrintF("\n"); | 636 PrintF("\n"); |
| 637 } | 637 } |
| 638 | 638 |
| 639 | 639 |
| 640 void Map::MapVerify() { | 640 void Map::MapVerify() { |
| 641 ASSERT(!Heap::InNewSpace(this)); | 641 ASSERT(!Heap::InNewSpace(this)); |
| 642 ASSERT(FIRST_TYPE <= instance_type() && instance_type() <= LAST_TYPE); | 642 ASSERT(FIRST_TYPE <= instance_type() && instance_type() <= LAST_TYPE); |
| 643 ASSERT(kPointerSize <= instance_size() | 643 ASSERT(instance_size() == kVariableSizeSentinel || |
| 644 && instance_size() < Heap::Capacity()); | 644 (kPointerSize <= instance_size() && |
| 645 instance_size() < Heap::Capacity())); |
| 645 VerifyHeapPointer(prototype()); | 646 VerifyHeapPointer(prototype()); |
| 646 VerifyHeapPointer(instance_descriptors()); | 647 VerifyHeapPointer(instance_descriptors()); |
| 647 } | 648 } |
| 648 | 649 |
| 649 | 650 |
| 650 void CodeCache::CodeCachePrint() { | 651 void CodeCache::CodeCachePrint() { |
| 651 HeapObject::PrintHeader("CodeCache"); | 652 HeapObject::PrintHeader("CodeCache"); |
| 652 PrintF("\n - default_cache: "); | 653 PrintF("\n - default_cache: "); |
| 653 default_cache()->ShortPrint(); | 654 default_cache()->ShortPrint(); |
| 654 PrintF("\n - normal_type_cache: "); | 655 PrintF("\n - normal_type_cache: "); |
| (...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1358 ASSERT(get(i)->IsTheHole()); | 1359 ASSERT(get(i)->IsTheHole()); |
| 1359 get(i)->Verify(); | 1360 get(i)->Verify(); |
| 1360 } | 1361 } |
| 1361 } | 1362 } |
| 1362 } | 1363 } |
| 1363 | 1364 |
| 1364 | 1365 |
| 1365 #endif // DEBUG | 1366 #endif // DEBUG |
| 1366 | 1367 |
| 1367 } } // namespace v8::internal | 1368 } } // namespace v8::internal |
| OLD | NEW |