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

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

Issue 3135026: Merge flush code phase into marking phase. (Closed)
Patch Set: returned checked casts Created 10 years, 4 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.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 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 // Before: The heap has been prepared for garbage collection by 168 // Before: The heap has been prepared for garbage collection by
169 // MarkCompactCollector::Prepare() and is otherwise in its 169 // MarkCompactCollector::Prepare() and is otherwise in its
170 // normal state. 170 // normal state.
171 // 171 //
172 // After: Live objects are marked and non-live objects are unmarked. 172 // After: Live objects are marked and non-live objects are unmarked.
173 173
174 174
175 friend class RootMarkingVisitor; 175 friend class RootMarkingVisitor;
176 friend class MarkingVisitor; 176 friend class MarkingVisitor;
177 friend class StaticMarkingVisitor; 177 friend class StaticMarkingVisitor;
178 friend class CodeMarkingVisitor;
179 friend class SharedFunctionInfoMarkingVisitor;
180
181 static void PrepareForCodeFlushing();
178 182
179 // Marking operations for objects reachable from roots. 183 // Marking operations for objects reachable from roots.
180 static void MarkLiveObjects(); 184 static void MarkLiveObjects();
181 185
182 static void MarkUnmarkedObject(HeapObject* obj); 186 static void MarkUnmarkedObject(HeapObject* obj);
183 187
184 static inline void MarkObject(HeapObject* obj) { 188 static inline void MarkObject(HeapObject* obj) {
185 if (!obj->IsMarked()) MarkUnmarkedObject(obj); 189 if (!obj->IsMarked()) MarkUnmarkedObject(obj);
186 } 190 }
187 191
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 450
447 friend class UnmarkObjectVisitor; 451 friend class UnmarkObjectVisitor;
448 static void UnmarkObject(HeapObject* obj); 452 static void UnmarkObject(HeapObject* obj);
449 #endif 453 #endif
450 }; 454 };
451 455
452 456
453 } } // namespace v8::internal 457 } } // namespace v8::internal
454 458
455 #endif // V8_MARK_COMPACT_H_ 459 #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