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

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

Issue 6760025: Cleanup usage of HEAP in mark-compact. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merge. Created 9 years, 8 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/ia32/assembler-ia32-inl.h ('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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 HeapObject** top_; 91 HeapObject** top_;
92 HeapObject** high_; 92 HeapObject** high_;
93 bool overflowed_; 93 bool overflowed_;
94 94
95 DISALLOW_COPY_AND_ASSIGN(MarkingStack); 95 DISALLOW_COPY_AND_ASSIGN(MarkingStack);
96 }; 96 };
97 97
98 98
99 // ------------------------------------------------------------------------- 99 // -------------------------------------------------------------------------
100 // Mark-Compact collector 100 // Mark-Compact collector
101 //
102 // All methods are static.
103 101
104 class OverflowedObjectsScanner; 102 class OverflowedObjectsScanner;
105 103
106 class MarkCompactCollector { 104 class MarkCompactCollector {
107 public: 105 public:
108 // Type of functions to compute forwarding addresses of objects in 106 // Type of functions to compute forwarding addresses of objects in
109 // compacted spaces. Given an object and its size, return a (non-failure) 107 // compacted spaces. Given an object and its size, return a (non-failure)
110 // Object* that will be the object after forwarding. There is a separate 108 // Object* that will be the object after forwarding. There is a separate
111 // allocation function for each (compactable) space based on the location 109 // allocation function for each (compactable) space based on the location
112 // of the object before compaction. 110 // of the object before compaction.
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 CodeFlusher* code_flusher_; 497 CodeFlusher* code_flusher_;
500 498
501 friend class Heap; 499 friend class Heap;
502 friend class OverflowedObjectsScanner; 500 friend class OverflowedObjectsScanner;
503 }; 501 };
504 502
505 503
506 } } // namespace v8::internal 504 } } // namespace v8::internal
507 505
508 #endif // V8_MARK_COMPACT_H_ 506 #endif // V8_MARK_COMPACT_H_
OLDNEW
« no previous file with comments | « src/ia32/assembler-ia32-inl.h ('k') | src/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698