OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_HEAP_MARK_COMPACT_H_ | 5 #ifndef V8_HEAP_MARK_COMPACT_H_ |
6 #define V8_HEAP_MARK_COMPACT_H_ | 6 #define V8_HEAP_MARK_COMPACT_H_ |
7 | 7 |
8 #include "src/base/bits.h" | 8 #include "src/base/bits.h" |
9 #include "src/heap/spaces.h" | 9 #include "src/heap/spaces.h" |
10 | 10 |
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 } | 412 } |
413 | 413 |
414 INLINE(static bool IsOnEvacuationCandidate(Object* obj)) { | 414 INLINE(static bool IsOnEvacuationCandidate(Object* obj)) { |
415 return Page::FromAddress(reinterpret_cast<Address>(obj)) | 415 return Page::FromAddress(reinterpret_cast<Address>(obj)) |
416 ->IsEvacuationCandidate(); | 416 ->IsEvacuationCandidate(); |
417 } | 417 } |
418 | 418 |
419 void RecordRelocSlot(RelocInfo* rinfo, Object* target); | 419 void RecordRelocSlot(RelocInfo* rinfo, Object* target); |
420 void RecordCodeEntrySlot(HeapObject* object, Address slot, Code* target); | 420 void RecordCodeEntrySlot(HeapObject* object, Address slot, Code* target); |
421 void RecordCodeTargetPatch(Address pc, Code* target); | 421 void RecordCodeTargetPatch(Address pc, Code* target); |
422 void RecordSlot(HeapObject* object, Object** slot, Object* target); | 422 INLINE(void RecordSlot(HeapObject* object, Object** slot, Object* target)); |
423 void ForceRecordSlot(HeapObject* object, Object** slot, Object* target); | 423 INLINE(void ForceRecordSlot(HeapObject* object, Object** slot, |
| 424 Object* target)); |
424 | 425 |
425 void UpdateSlots(SlotsBuffer* buffer); | 426 void UpdateSlots(SlotsBuffer* buffer); |
426 void UpdateSlotsRecordedIn(SlotsBuffer* buffer); | 427 void UpdateSlotsRecordedIn(SlotsBuffer* buffer); |
427 | 428 |
428 void MigrateObject(HeapObject* dst, HeapObject* src, int size, | 429 void MigrateObject(HeapObject* dst, HeapObject* src, int size, |
429 AllocationSpace to_old_space); | 430 AllocationSpace to_old_space); |
430 | 431 |
431 void MigrateObjectTagged(HeapObject* dst, HeapObject* src, int size); | 432 void MigrateObjectTagged(HeapObject* dst, HeapObject* src, int size); |
432 void MigrateObjectMixed(HeapObject* dst, HeapObject* src, int size); | 433 void MigrateObjectMixed(HeapObject* dst, HeapObject* src, int size); |
433 void MigrateObjectRaw(HeapObject* dst, HeapObject* src, int size); | 434 void MigrateObjectRaw(HeapObject* dst, HeapObject* src, int size); |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
823 private: | 824 private: |
824 MarkCompactCollector* collector_; | 825 MarkCompactCollector* collector_; |
825 }; | 826 }; |
826 | 827 |
827 | 828 |
828 const char* AllocationSpaceName(AllocationSpace space); | 829 const char* AllocationSpaceName(AllocationSpace space); |
829 } | 830 } |
830 } // namespace v8::internal | 831 } // namespace v8::internal |
831 | 832 |
832 #endif // V8_HEAP_MARK_COMPACT_H_ | 833 #endif // V8_HEAP_MARK_COMPACT_H_ |
OLD | NEW |