| 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 806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 817 // All the interior pointers should be contained in the heap. | 817 // All the interior pointers should be contained in the heap. |
| 818 int size = object->Size(); | 818 int size = object->Size(); |
| 819 object->IterateBody(map->instance_type(), size, visitor); | 819 object->IterateBody(map->instance_type(), size, visitor); |
| 820 if (Marking::IsBlack(Marking::MarkBitFrom(object))) { | 820 if (Marking::IsBlack(Marking::MarkBitFrom(object))) { |
| 821 black_size += size; | 821 black_size += size; |
| 822 } | 822 } |
| 823 | 823 |
| 824 ASSERT(object->address() + size <= top); | 824 ASSERT(object->address() + size <= top); |
| 825 end_of_previous_object = object->address() + size; | 825 end_of_previous_object = object->address() + size; |
| 826 } | 826 } |
| 827 CHECK_LE(black_size, page->LiveBytes()); | 827 // TODO(1672): Assert that black_size <= page->LiveBytes(). |
| 828 } | 828 } |
| 829 ASSERT(allocation_pointer_found_in_space); | 829 ASSERT(allocation_pointer_found_in_space); |
| 830 } | 830 } |
| 831 #endif | 831 #endif |
| 832 | 832 |
| 833 | 833 |
| 834 // ----------------------------------------------------------------------------- | 834 // ----------------------------------------------------------------------------- |
| 835 // NewSpace implementation | 835 // NewSpace implementation |
| 836 | 836 |
| 837 | 837 |
| (...skipping 1682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2520 object->ShortPrint(); | 2520 object->ShortPrint(); |
| 2521 PrintF("\n"); | 2521 PrintF("\n"); |
| 2522 } | 2522 } |
| 2523 printf(" --------------------------------------\n"); | 2523 printf(" --------------------------------------\n"); |
| 2524 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); | 2524 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); |
| 2525 } | 2525 } |
| 2526 | 2526 |
| 2527 #endif // DEBUG | 2527 #endif // DEBUG |
| 2528 | 2528 |
| 2529 } } // namespace v8::internal | 2529 } } // namespace v8::internal |
| OLD | NEW |