Chromium Code Reviews| 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 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 534 return Page::FromAddress(reinterpret_cast<Address>(host)) | 534 return Page::FromAddress(reinterpret_cast<Address>(host)) |
| 535 ->ShouldSkipEvacuationSlotRecording(); | 535 ->ShouldSkipEvacuationSlotRecording(); |
| 536 } | 536 } |
| 537 | 537 |
| 538 INLINE(static bool IsOnEvacuationCandidate(Object* obj)) { | 538 INLINE(static bool IsOnEvacuationCandidate(Object* obj)) { |
| 539 return Page::FromAddress(reinterpret_cast<Address>(obj)) | 539 return Page::FromAddress(reinterpret_cast<Address>(obj)) |
| 540 ->IsEvacuationCandidate(); | 540 ->IsEvacuationCandidate(); |
| 541 } | 541 } |
| 542 | 542 |
| 543 void RecordRelocSlot(Code* host, RelocInfo* rinfo, Object* target); | 543 void RecordRelocSlot(Code* host, RelocInfo* rinfo, Object* target); |
| 544 void RecordRelocSlotToNewSpace(Code* host, RelocInfo* rinfo, Object* target); | |
|
ulan
2016/06/08 14:37:00
This function doesn't belong to incremental markin
ahaas
2016/06/09 10:34:32
Done. I had to put the implementation into heap.cc
| |
| 544 void RecordCodeEntrySlot(HeapObject* host, Address slot, Code* target); | 545 void RecordCodeEntrySlot(HeapObject* host, Address slot, Code* target); |
| 545 void RecordCodeTargetPatch(Address pc, Code* target); | 546 void RecordCodeTargetPatch(Address pc, Code* target); |
| 546 INLINE(void RecordSlot(HeapObject* object, Object** slot, Object* target)); | 547 INLINE(void RecordSlot(HeapObject* object, Object** slot, Object* target)); |
| 547 INLINE(void ForceRecordSlot(HeapObject* object, Object** slot, | 548 INLINE(void ForceRecordSlot(HeapObject* object, Object** slot, |
| 548 Object* target)); | 549 Object* target)); |
| 549 | 550 |
| 550 void UpdateSlots(SlotsBuffer* buffer); | 551 void UpdateSlots(SlotsBuffer* buffer); |
| 551 void UpdateSlotsRecordedIn(SlotsBuffer* buffer); | 552 void UpdateSlotsRecordedIn(SlotsBuffer* buffer); |
| 552 | 553 |
| 553 void InvalidateCode(Code* code); | 554 void InvalidateCode(Code* code); |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 890 private: | 891 private: |
| 891 MarkCompactCollector* collector_; | 892 MarkCompactCollector* collector_; |
| 892 }; | 893 }; |
| 893 | 894 |
| 894 | 895 |
| 895 const char* AllocationSpaceName(AllocationSpace space); | 896 const char* AllocationSpaceName(AllocationSpace space); |
| 896 } // namespace internal | 897 } // namespace internal |
| 897 } // namespace v8 | 898 } // namespace v8 |
| 898 | 899 |
| 899 #endif // V8_HEAP_MARK_COMPACT_H_ | 900 #endif // V8_HEAP_MARK_COMPACT_H_ |
| OLD | NEW |