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 2834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2845 | 2845 |
2846 void CellSpace::VerifyObject(HeapObject* object) { | 2846 void CellSpace::VerifyObject(HeapObject* object) { |
2847 // The object should be a global object property cell or a free-list node. | 2847 // The object should be a global object property cell or a free-list node. |
2848 CHECK(object->IsCell() || | 2848 CHECK(object->IsCell() || |
2849 object->map() == heap()->two_pointer_filler_map()); | 2849 object->map() == heap()->two_pointer_filler_map()); |
2850 } | 2850 } |
2851 | 2851 |
2852 | 2852 |
2853 void PropertyCellSpace::VerifyObject(HeapObject* object) { | 2853 void PropertyCellSpace::VerifyObject(HeapObject* object) { |
2854 // The object should be a global object property cell or a free-list node. | 2854 // The object should be a global object property cell or a free-list node. |
2855 CHECK(object->IsJSGlobalPropertyCell() || | 2855 CHECK(object->IsPropertyCell() || |
2856 object->map() == heap()->two_pointer_filler_map()); | 2856 object->map() == heap()->two_pointer_filler_map()); |
2857 } | 2857 } |
2858 | 2858 |
2859 | 2859 |
2860 // ----------------------------------------------------------------------------- | 2860 // ----------------------------------------------------------------------------- |
2861 // LargeObjectIterator | 2861 // LargeObjectIterator |
2862 | 2862 |
2863 LargeObjectIterator::LargeObjectIterator(LargeObjectSpace* space) { | 2863 LargeObjectIterator::LargeObjectIterator(LargeObjectSpace* space) { |
2864 current_ = space->first_page_; | 2864 current_ = space->first_page_; |
2865 size_func_ = NULL; | 2865 size_func_ = NULL; |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3189 object->ShortPrint(); | 3189 object->ShortPrint(); |
3190 PrintF("\n"); | 3190 PrintF("\n"); |
3191 } | 3191 } |
3192 printf(" --------------------------------------\n"); | 3192 printf(" --------------------------------------\n"); |
3193 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); | 3193 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); |
3194 } | 3194 } |
3195 | 3195 |
3196 #endif // DEBUG | 3196 #endif // DEBUG |
3197 | 3197 |
3198 } } // namespace v8::internal | 3198 } } // namespace v8::internal |
OLD | NEW |