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

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

Issue 9174023: Split NumberDictionary into a randomly seeded and an unseeded (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 11 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 2011 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
(...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 info->number_of_fast_unused_elements_ += holes; 739 info->number_of_fast_unused_elements_ += holes;
740 break; 740 break;
741 } 741 }
742 case EXTERNAL_PIXEL_ELEMENTS: { 742 case EXTERNAL_PIXEL_ELEMENTS: {
743 info->number_of_objects_with_fast_elements_++; 743 info->number_of_objects_with_fast_elements_++;
744 ExternalPixelArray* e = ExternalPixelArray::cast(elements()); 744 ExternalPixelArray* e = ExternalPixelArray::cast(elements());
745 info->number_of_fast_used_elements_ += e->length(); 745 info->number_of_fast_used_elements_ += e->length();
746 break; 746 break;
747 } 747 }
748 case DICTIONARY_ELEMENTS: { 748 case DICTIONARY_ELEMENTS: {
749 NumberDictionary* dict = element_dictionary(); 749 SeededNumberDictionary* dict = element_dictionary();
750 info->number_of_slow_used_elements_ += dict->NumberOfElements(); 750 info->number_of_slow_used_elements_ += dict->NumberOfElements();
751 info->number_of_slow_unused_elements_ += 751 info->number_of_slow_unused_elements_ +=
752 dict->Capacity() - dict->NumberOfElements(); 752 dict->Capacity() - dict->NumberOfElements();
753 break; 753 break;
754 } 754 }
755 default: 755 default:
756 UNREACHABLE(); 756 UNREACHABLE();
757 break; 757 break;
758 } 758 }
759 } 759 }
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
854 ASSERT(e->IsUndefined()); 854 ASSERT(e->IsUndefined());
855 } 855 }
856 } 856 }
857 } 857 }
858 } 858 }
859 859
860 860
861 #endif // DEBUG 861 #endif // DEBUG
862 862
863 } } // namespace v8::internal 863 } } // 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