| 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 2468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2479 ASSERT(heap->InFromSpace(heap_obj) || | 2479 ASSERT(heap->InFromSpace(heap_obj) || |
| 2480 MarkCompactCollector::IsOnEvacuationCandidate(heap_obj)); | 2480 MarkCompactCollector::IsOnEvacuationCandidate(heap_obj)); |
| 2481 HeapObject* target = map_word.ToForwardingAddress(); | 2481 HeapObject* target = map_word.ToForwardingAddress(); |
| 2482 *slot = target; | 2482 *slot = target; |
| 2483 ASSERT(!heap->InFromSpace(target) && | 2483 ASSERT(!heap->InFromSpace(target) && |
| 2484 !MarkCompactCollector::IsOnEvacuationCandidate(target)); | 2484 !MarkCompactCollector::IsOnEvacuationCandidate(target)); |
| 2485 } | 2485 } |
| 2486 } | 2486 } |
| 2487 | 2487 |
| 2488 private: | 2488 private: |
| 2489 | |
| 2490 inline void UpdatePointer(Object** p) { | 2489 inline void UpdatePointer(Object** p) { |
| 2491 UpdateSlot(heap_, p); | 2490 UpdateSlot(heap_, p); |
| 2492 } | 2491 } |
| 2493 | 2492 |
| 2494 Heap* heap_; | 2493 Heap* heap_; |
| 2495 }; | 2494 }; |
| 2496 | 2495 |
| 2497 | 2496 |
| 2498 static void UpdatePointer(HeapObject** p, HeapObject* object) { | 2497 static void UpdatePointer(HeapObject** p, HeapObject* object) { |
| 2499 ASSERT(*p == object); | 2498 ASSERT(*p == object); |
| (...skipping 1300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3800 while (buffer != NULL) { | 3799 while (buffer != NULL) { |
| 3801 SlotsBuffer* next_buffer = buffer->next(); | 3800 SlotsBuffer* next_buffer = buffer->next(); |
| 3802 DeallocateBuffer(buffer); | 3801 DeallocateBuffer(buffer); |
| 3803 buffer = next_buffer; | 3802 buffer = next_buffer; |
| 3804 } | 3803 } |
| 3805 *buffer_address = NULL; | 3804 *buffer_address = NULL; |
| 3806 } | 3805 } |
| 3807 | 3806 |
| 3808 | 3807 |
| 3809 } } // namespace v8::internal | 3808 } } // namespace v8::internal |
| OLD | NEW |