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 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
685 page->SetFlag(Page::RESCAN_ON_EVACUATION); | 685 page->SetFlag(Page::RESCAN_ON_EVACUATION); |
686 } | 686 } |
687 } | 687 } |
688 | 688 |
689 void RecordRelocSlot(RelocInfo* rinfo, Object* target); | 689 void RecordRelocSlot(RelocInfo* rinfo, Object* target); |
690 void RecordCodeEntrySlot(Address slot, Code* target); | 690 void RecordCodeEntrySlot(Address slot, Code* target); |
691 void RecordCodeTargetPatch(Address pc, Code* target); | 691 void RecordCodeTargetPatch(Address pc, Code* target); |
692 | 692 |
693 INLINE(void RecordSlot(Object** anchor_slot, Object** slot, Object* object)); | 693 INLINE(void RecordSlot(Object** anchor_slot, Object** slot, Object* object)); |
694 | 694 |
695 void MigrateObject(Address dst, | 695 void MigrateObject(HeapObject* dst, |
696 Address src, | 696 HeapObject* src, |
697 int size, | 697 int size, |
698 AllocationSpace to_old_space); | 698 AllocationSpace to_old_space); |
699 | 699 |
700 bool TryPromoteObject(HeapObject* object, int object_size); | 700 bool TryPromoteObject(HeapObject* object, int object_size); |
701 | 701 |
702 inline Object* encountered_weak_collections() { | 702 inline Object* encountered_weak_collections() { |
703 return encountered_weak_collections_; | 703 return encountered_weak_collections_; |
704 } | 704 } |
705 inline void set_encountered_weak_collections(Object* weak_collection) { | 705 inline void set_encountered_weak_collections(Object* weak_collection) { |
706 encountered_weak_collections_ = weak_collection; | 706 encountered_weak_collections_ = weak_collection; |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1032 private: | 1032 private: |
1033 MarkCompactCollector* collector_; | 1033 MarkCompactCollector* collector_; |
1034 }; | 1034 }; |
1035 | 1035 |
1036 | 1036 |
1037 const char* AllocationSpaceName(AllocationSpace space); | 1037 const char* AllocationSpaceName(AllocationSpace space); |
1038 | 1038 |
1039 } } // namespace v8::internal | 1039 } } // namespace v8::internal |
1040 | 1040 |
1041 #endif // V8_MARK_COMPACT_H_ | 1041 #endif // V8_MARK_COMPACT_H_ |
OLD | NEW |