| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 ClearMarkbitsInPagedSpace(heap_->old_pointer_space()); | 481 ClearMarkbitsInPagedSpace(heap_->old_pointer_space()); |
| 482 ClearMarkbitsInPagedSpace(heap_->old_data_space()); | 482 ClearMarkbitsInPagedSpace(heap_->old_data_space()); |
| 483 ClearMarkbitsInPagedSpace(heap_->cell_space()); | 483 ClearMarkbitsInPagedSpace(heap_->cell_space()); |
| 484 ClearMarkbitsInNewSpace(heap_->new_space()); | 484 ClearMarkbitsInNewSpace(heap_->new_space()); |
| 485 | 485 |
| 486 LargeObjectIterator it(heap_->lo_space()); | 486 LargeObjectIterator it(heap_->lo_space()); |
| 487 for (HeapObject* obj = it.Next(); obj != NULL; obj = it.Next()) { | 487 for (HeapObject* obj = it.Next(); obj != NULL; obj = it.Next()) { |
| 488 MarkBit mark_bit = Marking::MarkBitFrom(obj); | 488 MarkBit mark_bit = Marking::MarkBitFrom(obj); |
| 489 mark_bit.Clear(); | 489 mark_bit.Clear(); |
| 490 mark_bit.Next().Clear(); | 490 mark_bit.Next().Clear(); |
| 491 Page::FromAddress(obj->address())->ResetProgressBar(); |
| 491 Page::FromAddress(obj->address())->ResetLiveBytes(); | 492 Page::FromAddress(obj->address())->ResetLiveBytes(); |
| 492 } | 493 } |
| 493 } | 494 } |
| 494 | 495 |
| 495 | 496 |
| 496 bool Marking::TransferMark(Address old_start, Address new_start) { | 497 bool Marking::TransferMark(Address old_start, Address new_start) { |
| 497 // This is only used when resizing an object. | 498 // This is only used when resizing an object. |
| 498 ASSERT(MemoryChunk::FromAddress(old_start) == | 499 ASSERT(MemoryChunk::FromAddress(old_start) == |
| 499 MemoryChunk::FromAddress(new_start)); | 500 MemoryChunk::FromAddress(new_start)); |
| 500 | 501 |
| (...skipping 3351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3852 while (buffer != NULL) { | 3853 while (buffer != NULL) { |
| 3853 SlotsBuffer* next_buffer = buffer->next(); | 3854 SlotsBuffer* next_buffer = buffer->next(); |
| 3854 DeallocateBuffer(buffer); | 3855 DeallocateBuffer(buffer); |
| 3855 buffer = next_buffer; | 3856 buffer = next_buffer; |
| 3856 } | 3857 } |
| 3857 *buffer_address = NULL; | 3858 *buffer_address = NULL; |
| 3858 } | 3859 } |
| 3859 | 3860 |
| 3860 | 3861 |
| 3861 } } // namespace v8::internal | 3862 } } // namespace v8::internal |
| OLD | NEW |