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

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

Issue 894703002: Add a flag to over approximate the weak closure during GC (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 5 years, 10 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 | « src/heap/incremental-marking.cc ('k') | 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 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
665 void MarkAllocationSite(AllocationSite* site); 665 void MarkAllocationSite(AllocationSite* site);
666 666
667 MarkingDeque* marking_deque() { return &marking_deque_; } 667 MarkingDeque* marking_deque() { return &marking_deque_; }
668 668
669 void EnsureMarkingDequeIsCommittedAndInitialize(); 669 void EnsureMarkingDequeIsCommittedAndInitialize();
670 670
671 void InitializeMarkingDeque(); 671 void InitializeMarkingDeque();
672 672
673 void UncommitMarkingDeque(); 673 void UncommitMarkingDeque();
674 674
675 void OverApproximateWeakClosure();
676
675 private: 677 private:
676 class SweeperTask; 678 class SweeperTask;
677 679
678 explicit MarkCompactCollector(Heap* heap); 680 explicit MarkCompactCollector(Heap* heap);
679 ~MarkCompactCollector(); 681 ~MarkCompactCollector();
680 682
681 bool MarkInvalidatedCode(); 683 bool MarkInvalidatedCode();
682 bool WillBeDeoptimized(Code* code); 684 bool WillBeDeoptimized(Code* code);
683 void RemoveDeadInvalidatedCode(); 685 void RemoveDeadInvalidatedCode();
684 void ProcessInvalidatedCode(ObjectVisitor* visitor); 686 void ProcessInvalidatedCode(ObjectVisitor* visitor);
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
961 private: 963 private:
962 MarkCompactCollector* collector_; 964 MarkCompactCollector* collector_;
963 }; 965 };
964 966
965 967
966 const char* AllocationSpaceName(AllocationSpace space); 968 const char* AllocationSpaceName(AllocationSpace space);
967 } 969 }
968 } // namespace v8::internal 970 } // namespace v8::internal
969 971
970 #endif // V8_HEAP_MARK_COMPACT_H_ 972 #endif // V8_HEAP_MARK_COMPACT_H_
OLDNEW
« no previous file with comments | « src/heap/incremental-marking.cc ('k') | src/heap/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698