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

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

Issue 1371653002: Revert of "[heap] Add more tasks for parallel compaction" (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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 691 matching lines...) Expand 10 before | Expand all | Expand 10 after
702 SlotsBuffer** evacuation_slots_buffer); 702 SlotsBuffer** evacuation_slots_buffer);
703 703
704 void AddEvacuationSlotsBufferSynchronized( 704 void AddEvacuationSlotsBufferSynchronized(
705 SlotsBuffer* evacuation_slots_buffer); 705 SlotsBuffer* evacuation_slots_buffer);
706 706
707 void EvacuatePages(CompactionSpaceCollection* compaction_spaces, 707 void EvacuatePages(CompactionSpaceCollection* compaction_spaces,
708 SlotsBuffer** evacuation_slots_buffer); 708 SlotsBuffer** evacuation_slots_buffer);
709 709
710 void EvacuatePagesInParallel(); 710 void EvacuatePagesInParallel();
711 711
712 // The number of parallel compaction tasks, including the main thread. 712 int NumberOfParallelCompactionTasks() {
713 int NumberOfParallelCompactionTasks(); 713 // TODO(hpayer, mlippautz): Figure out some logic to determine the number
714 // of compaction tasks.
715 return 1;
716 }
714 717
715 void WaitUntilCompactionCompleted(); 718 void WaitUntilCompactionCompleted();
716 719
717 void EvacuateNewSpaceAndCandidates(); 720 void EvacuateNewSpaceAndCandidates();
718 721
719 void ReleaseEvacuationCandidates(); 722 void ReleaseEvacuationCandidates();
720 723
721 // Moves the pages of the evacuation_candidates_ list to the end of their 724 // Moves the pages of the evacuation_candidates_ list to the end of their
722 // corresponding space pages list. 725 // corresponding space pages list.
723 void MoveEvacuationCandidatesToEndOfPagesList(); 726 void MoveEvacuationCandidatesToEndOfPagesList();
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
847 private: 850 private:
848 MarkCompactCollector* collector_; 851 MarkCompactCollector* collector_;
849 }; 852 };
850 853
851 854
852 const char* AllocationSpaceName(AllocationSpace space); 855 const char* AllocationSpaceName(AllocationSpace space);
853 } 856 }
854 } // namespace v8::internal 857 } // namespace v8::internal
855 858
856 #endif // V8_HEAP_MARK_COMPACT_H_ 859 #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