Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: src/objects-debug.cc

Issue 717001: Refactor the code cache to handle large number of properties on the global ob... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/objects.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 void Map::MapVerify() { 637 void Map::MapVerify() {
638 ASSERT(!Heap::InNewSpace(this)); 638 ASSERT(!Heap::InNewSpace(this));
639 ASSERT(FIRST_TYPE <= instance_type() && instance_type() <= LAST_TYPE); 639 ASSERT(FIRST_TYPE <= instance_type() && instance_type() <= LAST_TYPE);
640 ASSERT(kPointerSize <= instance_size() 640 ASSERT(kPointerSize <= instance_size()
641 && instance_size() < Heap::Capacity()); 641 && instance_size() < Heap::Capacity());
642 VerifyHeapPointer(prototype()); 642 VerifyHeapPointer(prototype());
643 VerifyHeapPointer(instance_descriptors()); 643 VerifyHeapPointer(instance_descriptors());
644 } 644 }
645 645
646 646
647 void CodeCache::CodeCachePrint() {
648 HeapObject::PrintHeader("CodeCache");
649 PrintF("\n - default_cache: ");
650 default_cache()->ShortPrint();
651 PrintF("\n - normal_type_cache: ");
652 normal_type_cache()->ShortPrint();
653 }
654
655
656 void CodeCache::CodeCacheVerify() {
657 VerifyHeapPointer(default_cache());
658 VerifyHeapPointer(normal_type_cache());
659 ASSERT(default_cache()->IsFixedArray());
660 ASSERT(normal_type_cache()->IsUndefined()
661 || normal_type_cache()->IsCodeCacheHashTable());
662 }
663
664
647 void FixedArray::FixedArrayPrint() { 665 void FixedArray::FixedArrayPrint() {
648 HeapObject::PrintHeader("FixedArray"); 666 HeapObject::PrintHeader("FixedArray");
649 PrintF(" - length: %d", length()); 667 PrintF(" - length: %d", length());
650 for (int i = 0; i < length(); i++) { 668 for (int i = 0; i < length(); i++) {
651 PrintF("\n [%d]: ", i); 669 PrintF("\n [%d]: ", i);
652 get(i)->ShortPrint(); 670 get(i)->ShortPrint();
653 } 671 }
654 PrintF("\n"); 672 PrintF("\n");
655 } 673 }
656 674
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after
1310 } 1328 }
1311 current = hash; 1329 current = hash;
1312 } 1330 }
1313 return true; 1331 return true;
1314 } 1332 }
1315 1333
1316 1334
1317 #endif // DEBUG 1335 #endif // DEBUG
1318 1336
1319 } } // namespace v8::internal 1337 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698