| 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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 void MarkRoots(RootMarkingVisitor* visitor); | 278 void MarkRoots(RootMarkingVisitor* visitor); |
| 279 | 279 |
| 280 // Mark the symbol table specially. References to symbols from the | 280 // Mark the symbol table specially. References to symbols from the |
| 281 // symbol table are weak. | 281 // symbol table are weak. |
| 282 void MarkSymbolTable(); | 282 void MarkSymbolTable(); |
| 283 | 283 |
| 284 // Mark objects in object groups that have at least one object in the | 284 // Mark objects in object groups that have at least one object in the |
| 285 // group marked. | 285 // group marked. |
| 286 void MarkObjectGroups(); | 286 void MarkObjectGroups(); |
| 287 | 287 |
| 288 // Mark all objects in an object group with at least one marked | 288 // Mark objects in implicit references groups if their parent object |
| 289 // object, then all objects reachable from marked objects in object | 289 // is marked. |
| 290 // groups, and repeat. | 290 void MarkImplicitRefGroups(); |
| 291 void ProcessObjectGroups(); | 291 |
| 292 // Mark all objects which are reachable due to host application |
| 293 // logic like object groups or implicit references' groups. |
| 294 void ProcessExternalMarking(); |
| 292 | 295 |
| 293 // Mark objects reachable (transitively) from objects in the marking stack | 296 // Mark objects reachable (transitively) from objects in the marking stack |
| 294 // or overflowed in the heap. | 297 // or overflowed in the heap. |
| 295 void ProcessMarkingStack(); | 298 void ProcessMarkingStack(); |
| 296 | 299 |
| 297 // Mark objects reachable (transitively) from objects in the marking | 300 // Mark objects reachable (transitively) from objects in the marking |
| 298 // stack. This function empties the marking stack, but may leave | 301 // stack. This function empties the marking stack, but may leave |
| 299 // overflowed objects in the heap, in which case the marking stack's | 302 // overflowed objects in the heap, in which case the marking stack's |
| 300 // overflow flag will be set. | 303 // overflow flag will be set. |
| 301 void EmptyMarkingStack(); | 304 void EmptyMarkingStack(); |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 CodeFlusher* code_flusher_; | 499 CodeFlusher* code_flusher_; |
| 497 | 500 |
| 498 friend class Heap; | 501 friend class Heap; |
| 499 friend class OverflowedObjectsScanner; | 502 friend class OverflowedObjectsScanner; |
| 500 }; | 503 }; |
| 501 | 504 |
| 502 | 505 |
| 503 } } // namespace v8::internal | 506 } } // namespace v8::internal |
| 504 | 507 |
| 505 #endif // V8_MARK_COMPACT_H_ | 508 #endif // V8_MARK_COMPACT_H_ |
| OLD | NEW |