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

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

Issue 9190001: Backport @10366 to 3.6 Base URL: http://v8.googlecode.com/svn/branches/3.6/
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
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 682 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 info->number_of_fast_unused_elements_ += holes; 693 info->number_of_fast_unused_elements_ += holes;
694 break; 694 break;
695 } 695 }
696 case EXTERNAL_PIXEL_ELEMENTS: { 696 case EXTERNAL_PIXEL_ELEMENTS: {
697 info->number_of_objects_with_fast_elements_++; 697 info->number_of_objects_with_fast_elements_++;
698 ExternalPixelArray* e = ExternalPixelArray::cast(elements()); 698 ExternalPixelArray* e = ExternalPixelArray::cast(elements());
699 info->number_of_fast_used_elements_ += e->length(); 699 info->number_of_fast_used_elements_ += e->length();
700 break; 700 break;
701 } 701 }
702 case DICTIONARY_ELEMENTS: { 702 case DICTIONARY_ELEMENTS: {
703 NumberDictionary* dict = element_dictionary(); 703 SeededNumberDictionary* dict = element_dictionary();
704 info->number_of_slow_used_elements_ += dict->NumberOfElements(); 704 info->number_of_slow_used_elements_ += dict->NumberOfElements();
705 info->number_of_slow_unused_elements_ += 705 info->number_of_slow_unused_elements_ +=
706 dict->Capacity() - dict->NumberOfElements(); 706 dict->Capacity() - dict->NumberOfElements();
707 break; 707 break;
708 } 708 }
709 default: 709 default:
710 UNREACHABLE(); 710 UNREACHABLE();
711 break; 711 break;
712 } 712 }
713 } 713 }
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
808 ASSERT(e->IsUndefined()); 808 ASSERT(e->IsUndefined());
809 } 809 }
810 } 810 }
811 } 811 }
812 } 812 }
813 813
814 814
815 #endif // DEBUG 815 #endif // DEBUG
816 816
817 } } // namespace v8::internal 817 } } // namespace v8::internal
OLDNEW
« src/objects.h ('K') | « src/objects.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698