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

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

Issue 2129173002: [heap] Rework and improve object stats tracing (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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
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 <deque> 8 #include <deque>
9 9
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 622
623 void RegisterExternallyReferencedObject(Object** object); 623 void RegisterExternallyReferencedObject(Object** object);
624 624
625 private: 625 private:
626 class EvacuateNewSpacePageVisitor; 626 class EvacuateNewSpacePageVisitor;
627 class EvacuateNewSpaceVisitor; 627 class EvacuateNewSpaceVisitor;
628 class EvacuateOldSpaceVisitor; 628 class EvacuateOldSpaceVisitor;
629 class EvacuateRecordOnlyVisitor; 629 class EvacuateRecordOnlyVisitor;
630 class EvacuateVisitorBase; 630 class EvacuateVisitorBase;
631 class HeapObjectVisitor; 631 class HeapObjectVisitor;
632 class ObjectStatsVisitor;
632 633
633 explicit MarkCompactCollector(Heap* heap); 634 explicit MarkCompactCollector(Heap* heap);
634 635
635 bool WillBeDeoptimized(Code* code); 636 bool WillBeDeoptimized(Code* code);
636 void ClearInvalidRememberedSetSlots(); 637 void ClearInvalidRememberedSetSlots();
637 638
638 void ComputeEvacuationHeuristics(int area_size, 639 void ComputeEvacuationHeuristics(int area_size,
639 int* target_fragmentation_percent, 640 int* target_fragmentation_percent,
640 int* max_evacuated_bytes); 641 int* max_evacuated_bytes);
641 642
643 void VisitAllObjects(HeapObjectVisitor* visitor);
644
642 // Finishes GC, performs heap verification if enabled. 645 // Finishes GC, performs heap verification if enabled.
643 void Finish(); 646 void Finish();
644 647
645 // ----------------------------------------------------------------------- 648 // -----------------------------------------------------------------------
646 // Phase 1: Marking live objects. 649 // Phase 1: Marking live objects.
647 // 650 //
648 // Before: The heap has been prepared for garbage collection by 651 // Before: The heap has been prepared for garbage collection by
649 // MarkCompactCollector::Prepare() and is otherwise in its 652 // MarkCompactCollector::Prepare() and is otherwise in its
650 // normal state. 653 // normal state.
651 // 654 //
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
886 private: 889 private:
887 MarkCompactCollector* collector_; 890 MarkCompactCollector* collector_;
888 }; 891 };
889 892
890 893
891 const char* AllocationSpaceName(AllocationSpace space); 894 const char* AllocationSpaceName(AllocationSpace space);
892 } // namespace internal 895 } // namespace internal
893 } // namespace v8 896 } // namespace v8
894 897
895 #endif // V8_HEAP_MARK_COMPACT_H_ 898 #endif // V8_HEAP_MARK_COMPACT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698