| 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 <deque> | 8 #include <deque> |
| 9 | 9 |
| 10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
| (...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 static void VerifyMarkbitsAreClean(NewSpace* space); | 465 static void VerifyMarkbitsAreClean(NewSpace* space); |
| 466 void VerifyWeakEmbeddedObjectsInCode(); | 466 void VerifyWeakEmbeddedObjectsInCode(); |
| 467 void VerifyOmittedMapChecks(); | 467 void VerifyOmittedMapChecks(); |
| 468 #endif | 468 #endif |
| 469 | 469 |
| 470 INLINE(static bool ShouldSkipEvacuationSlotRecording(Object* host)) { | 470 INLINE(static bool ShouldSkipEvacuationSlotRecording(Object* host)) { |
| 471 return Page::FromAddress(reinterpret_cast<Address>(host)) | 471 return Page::FromAddress(reinterpret_cast<Address>(host)) |
| 472 ->ShouldSkipEvacuationSlotRecording(); | 472 ->ShouldSkipEvacuationSlotRecording(); |
| 473 } | 473 } |
| 474 | 474 |
| 475 INLINE(static bool IsOnEvacuationCandidate(Object* obj)) { | 475 static inline bool IsOnEvacuationCandidate(HeapObject* obj) { |
| 476 return Page::FromAddress(reinterpret_cast<Address>(obj)) | 476 return Page::FromAddress(reinterpret_cast<Address>(obj)) |
| 477 ->IsEvacuationCandidate(); | 477 ->IsEvacuationCandidate(); |
| 478 } | 478 } |
| 479 | 479 |
| 480 void RecordRelocSlot(Code* host, RelocInfo* rinfo, Object* target); | 480 void RecordRelocSlot(Code* host, RelocInfo* rinfo, Object* target); |
| 481 void RecordCodeEntrySlot(HeapObject* host, Address slot, Code* target); | 481 void RecordCodeEntrySlot(HeapObject* host, Address slot, Code* target); |
| 482 void RecordCodeTargetPatch(Address pc, Code* target); | 482 void RecordCodeTargetPatch(Address pc, Code* target); |
| 483 INLINE(void RecordSlot(HeapObject* object, Object** slot, Object* target)); | 483 INLINE(void RecordSlot(HeapObject* object, Object** slot, Object* target)); |
| 484 INLINE(void ForceRecordSlot(HeapObject* object, Object** slot, | 484 INLINE(void ForceRecordSlot(HeapObject* object, Object** slot, |
| 485 Object* target)); | 485 Object* target)); |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 772 | 772 |
| 773 private: | 773 private: |
| 774 MarkCompactCollector* collector_; | 774 MarkCompactCollector* collector_; |
| 775 }; | 775 }; |
| 776 | 776 |
| 777 V8_EXPORT_PRIVATE const char* AllocationSpaceName(AllocationSpace space); | 777 V8_EXPORT_PRIVATE const char* AllocationSpaceName(AllocationSpace space); |
| 778 } // namespace internal | 778 } // namespace internal |
| 779 } // namespace v8 | 779 } // namespace v8 |
| 780 | 780 |
| 781 #endif // V8_HEAP_MARK_COMPACT_H_ | 781 #endif // V8_HEAP_MARK_COMPACT_H_ |
| OLD | NEW |