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

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

Issue 143063003: Explicitly initialize MarkCompactCollector and ExternalStringTable (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/heap.cc ('k') | src/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 // 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 726 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 737
738 // Mark the global table which maps weak objects to dependent code without 738 // Mark the global table which maps weak objects to dependent code without
739 // marking its contents. 739 // marking its contents.
740 void MarkWeakObjectToCodeTable(); 740 void MarkWeakObjectToCodeTable();
741 741
742 // Special case for processing weak references in a full collection. We need 742 // Special case for processing weak references in a full collection. We need
743 // to artifically keep AllocationSites alive for a time. 743 // to artifically keep AllocationSites alive for a time.
744 void MarkAllocationSite(AllocationSite* site); 744 void MarkAllocationSite(AllocationSite* site);
745 745
746 private: 746 private:
747 MarkCompactCollector(); 747 explicit MarkCompactCollector(Heap* heap);
748 ~MarkCompactCollector(); 748 ~MarkCompactCollector();
749 749
750 bool MarkInvalidatedCode(); 750 bool MarkInvalidatedCode();
751 bool WillBeDeoptimized(Code* code); 751 bool WillBeDeoptimized(Code* code);
752 void RemoveDeadInvalidatedCode(); 752 void RemoveDeadInvalidatedCode();
753 void ProcessInvalidatedCode(ObjectVisitor* visitor); 753 void ProcessInvalidatedCode(ObjectVisitor* visitor);
754 754
755 void UnlinkEvacuationCandidates(); 755 void UnlinkEvacuationCandidates();
756 void ReleaseEvacuationCandidates(); 756 void ReleaseEvacuationCandidates();
757 757
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
1019 private: 1019 private:
1020 MarkCompactCollector* collector_; 1020 MarkCompactCollector* collector_;
1021 }; 1021 };
1022 1022
1023 1023
1024 const char* AllocationSpaceName(AllocationSpace space); 1024 const char* AllocationSpaceName(AllocationSpace space);
1025 1025
1026 } } // namespace v8::internal 1026 } } // namespace v8::internal
1027 1027
1028 #endif // V8_MARK_COMPACT_H_ 1028 #endif // V8_MARK_COMPACT_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698