| 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 728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |