| 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 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 545 // pointers to evacuated objects. | 545 // pointers to evacuated objects. |
| 546 if (page->owner()->identity() == OLD_DATA_SPACE) { | 546 if (page->owner()->identity() == OLD_DATA_SPACE) { |
| 547 evacuation_candidates_.RemoveElement(page); | 547 evacuation_candidates_.RemoveElement(page); |
| 548 } else { | 548 } else { |
| 549 page->SetFlag(Page::RESCAN_ON_EVACUATION); | 549 page->SetFlag(Page::RESCAN_ON_EVACUATION); |
| 550 } | 550 } |
| 551 } | 551 } |
| 552 | 552 |
| 553 void RecordRelocSlot(RelocInfo* rinfo, Object* target); | 553 void RecordRelocSlot(RelocInfo* rinfo, Object* target); |
| 554 void RecordCodeEntrySlot(Address slot, Code* target); | 554 void RecordCodeEntrySlot(Address slot, Code* target); |
| 555 void RecordCodeTargetPatch(Address pc, Code* target); |
| 555 | 556 |
| 556 INLINE(void RecordSlot(Object** anchor_slot, Object** slot, Object* object)); | 557 INLINE(void RecordSlot(Object** anchor_slot, Object** slot, Object* object)); |
| 557 | 558 |
| 558 void MigrateObject(Address dst, | 559 void MigrateObject(Address dst, |
| 559 Address src, | 560 Address src, |
| 560 int size, | 561 int size, |
| 561 AllocationSpace to_old_space); | 562 AllocationSpace to_old_space); |
| 562 | 563 |
| 563 bool TryPromoteObject(HeapObject* object, int object_size); | 564 bool TryPromoteObject(HeapObject* object, int object_size); |
| 564 | 565 |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 783 | 784 |
| 784 friend class Heap; | 785 friend class Heap; |
| 785 }; | 786 }; |
| 786 | 787 |
| 787 | 788 |
| 788 const char* AllocationSpaceName(AllocationSpace space); | 789 const char* AllocationSpaceName(AllocationSpace space); |
| 789 | 790 |
| 790 } } // namespace v8::internal | 791 } } // namespace v8::internal |
| 791 | 792 |
| 792 #endif // V8_MARK_COMPACT_H_ | 793 #endif // V8_MARK_COMPACT_H_ |
| OLD | NEW |