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

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

Issue 1588823003: [heap] Properly adjust live bytes for pages where we abort evacaution (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments and remove DCHECK Created 4 years, 11 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 712 matching lines...) Expand 10 before | Expand all | Expand 10 after
723 723
724 void UpdatePointersAfterEvacuation(); 724 void UpdatePointersAfterEvacuation();
725 725
726 // Iterates through all live objects on a page using marking information. 726 // Iterates through all live objects on a page using marking information.
727 // Returns whether all objects have successfully been visited. 727 // Returns whether all objects have successfully been visited.
728 bool VisitLiveObjects(MemoryChunk* page, HeapObjectVisitor* visitor, 728 bool VisitLiveObjects(MemoryChunk* page, HeapObjectVisitor* visitor,
729 IterationMode mode); 729 IterationMode mode);
730 730
731 void VisitLiveObjectsBody(Page* page, ObjectVisitor* visitor); 731 void VisitLiveObjectsBody(Page* page, ObjectVisitor* visitor);
732 732
733 void RecomputeLiveBytes(MemoryChunk* page);
734
733 void SweepAbortedPages(); 735 void SweepAbortedPages();
734 736
735 void ReleaseEvacuationCandidates(); 737 void ReleaseEvacuationCandidates();
736 738
737 // Moves the pages of the evacuation_candidates_ list to the end of their 739 // Moves the pages of the evacuation_candidates_ list to the end of their
738 // corresponding space pages list. 740 // corresponding space pages list.
739 void MoveEvacuationCandidatesToEndOfPagesList(); 741 void MoveEvacuationCandidatesToEndOfPagesList();
740 742
741 // Starts sweeping of a space by contributing on the main thread and setting 743 // Starts sweeping of a space by contributing on the main thread and setting
742 // up other pages for sweeping. 744 // up other pages for sweeping.
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
893 private: 895 private:
894 MarkCompactCollector* collector_; 896 MarkCompactCollector* collector_;
895 }; 897 };
896 898
897 899
898 const char* AllocationSpaceName(AllocationSpace space); 900 const char* AllocationSpaceName(AllocationSpace space);
899 } // namespace internal 901 } // namespace internal
900 } // namespace v8 902 } // namespace v8
901 903
902 #endif // V8_HEAP_MARK_COMPACT_H_ 904 #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