OLD | NEW |
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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 static void MarkRoots(RootMarkingVisitor* visitor); | 213 static void MarkRoots(RootMarkingVisitor* visitor); |
214 | 214 |
215 // Mark the symbol table specially. References to symbols from the | 215 // Mark the symbol table specially. References to symbols from the |
216 // symbol table are weak. | 216 // symbol table are weak. |
217 static void MarkSymbolTable(); | 217 static void MarkSymbolTable(); |
218 | 218 |
219 // Mark objects in object groups that have at least one object in the | 219 // Mark objects in object groups that have at least one object in the |
220 // group marked. | 220 // group marked. |
221 static void MarkObjectGroups(); | 221 static void MarkObjectGroups(); |
222 | 222 |
223 // Mark all objects in an object group with at least one marked | 223 // Mark objects in implicit references groups if their parent object |
224 // object, then all objects reachable from marked objects in object | 224 // is marked. |
225 // groups, and repeat. | 225 static void MarkImplicitRefGroups(); |
226 static void ProcessObjectGroups(); | 226 |
| 227 // Mark all objects which are reachable due to host application |
| 228 // logic like object groups or implicit references' groups. |
| 229 static void ProcessExternalMarking(); |
227 | 230 |
228 // Mark objects reachable (transitively) from objects in the marking stack | 231 // Mark objects reachable (transitively) from objects in the marking stack |
229 // or overflowed in the heap. | 232 // or overflowed in the heap. |
230 static void ProcessMarkingStack(); | 233 static void ProcessMarkingStack(); |
231 | 234 |
232 // Mark objects reachable (transitively) from objects in the marking | 235 // Mark objects reachable (transitively) from objects in the marking |
233 // stack. This function empties the marking stack, but may leave | 236 // stack. This function empties the marking stack, but may leave |
234 // overflowed objects in the heap, in which case the marking stack's | 237 // overflowed objects in the heap, in which case the marking stack's |
235 // overflow flag will be set. | 238 // overflow flag will be set. |
236 static void EmptyMarkingStack(); | 239 static void EmptyMarkingStack(); |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 | 427 |
425 friend class UnmarkObjectVisitor; | 428 friend class UnmarkObjectVisitor; |
426 static void UnmarkObject(HeapObject* obj); | 429 static void UnmarkObject(HeapObject* obj); |
427 #endif | 430 #endif |
428 }; | 431 }; |
429 | 432 |
430 | 433 |
431 } } // namespace v8::internal | 434 } } // namespace v8::internal |
432 | 435 |
433 #endif // V8_MARK_COMPACT_H_ | 436 #endif // V8_MARK_COMPACT_H_ |
OLD | NEW |