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

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

Issue 12047044: Added parallel marking threads. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 void SweepInParallel(PagedSpace* space, 683 void SweepInParallel(PagedSpace* space,
684 FreeList* private_free_list, 684 FreeList* private_free_list,
685 FreeList* free_list); 685 FreeList* free_list);
686 686
687 void WaitUntilSweepingCompleted(); 687 void WaitUntilSweepingCompleted();
688 688
689 intptr_t StealMemoryFromSweeperThreads(PagedSpace* space); 689 intptr_t StealMemoryFromSweeperThreads(PagedSpace* space);
690 690
691 bool AreSweeperThreadsActivated(); 691 bool AreSweeperThreadsActivated();
692 692
693 void MarkInParallel();
Michael Starzinger 2013/01/31 14:00:04 This is getting clunky, can we group these functio
Hannes Payer (out of office) 2013/01/31 14:09:10 Done.
694
695 void WaitUntilMarkingCompleted();
696
693 private: 697 private:
694 MarkCompactCollector(); 698 MarkCompactCollector();
695 ~MarkCompactCollector(); 699 ~MarkCompactCollector();
696 700
697 bool MarkInvalidatedCode(); 701 bool MarkInvalidatedCode();
698 void RemoveDeadInvalidatedCode(); 702 void RemoveDeadInvalidatedCode();
699 void ProcessInvalidatedCode(ObjectVisitor* visitor); 703 void ProcessInvalidatedCode(ObjectVisitor* visitor);
700 704
701 void StartSweeperThreads(); 705 void StartSweeperThreads();
702 706
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
884 888
885 friend class Heap; 889 friend class Heap;
886 }; 890 };
887 891
888 892
889 const char* AllocationSpaceName(AllocationSpace space); 893 const char* AllocationSpaceName(AllocationSpace space);
890 894
891 } } // namespace v8::internal 895 } } // namespace v8::internal
892 896
893 #endif // V8_MARK_COMPACT_H_ 897 #endif // V8_MARK_COMPACT_H_
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | src/mark-compact.cc » ('j') | src/marking-thread.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698