OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |