Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Side by Side Diff: src/heap/mark-compact.h

Issue 1347363002: [heap] Inline record slot methods. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/heap/mark-compact.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/heap/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698