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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 // is why we can use this field temporarily for back pointers. | 168 // is why we can use this field temporarily for back pointers. |
169 static void CreateBackPointers(); | 169 static void CreateBackPointers(); |
170 | 170 |
171 // Mark a Map and its DescriptorArray together, skipping transitions. | 171 // Mark a Map and its DescriptorArray together, skipping transitions. |
172 static void MarkMapContents(Map* map); | 172 static void MarkMapContents(Map* map); |
173 static void MarkDescriptorArray(DescriptorArray* descriptors); | 173 static void MarkDescriptorArray(DescriptorArray* descriptors); |
174 | 174 |
175 // Mark the heap roots and all objects reachable from them. | 175 // Mark the heap roots and all objects reachable from them. |
176 static void MarkRoots(RootMarkingVisitor* visitor); | 176 static void MarkRoots(RootMarkingVisitor* visitor); |
177 | 177 |
178 // Mark the symbol table specially. References to symbols are weak. | 178 // Mark the symbol table specially. References to symbols from the |
| 179 // symbol table are weak. |
179 static void MarkSymbolTable(); | 180 static void MarkSymbolTable(); |
180 | 181 |
181 // Mark objects in object groups that have at least one object in the | 182 // Mark objects in object groups that have at least one object in the |
182 // group marked. | 183 // group marked. |
183 static void MarkObjectGroups(); | 184 static void MarkObjectGroups(); |
184 | 185 |
185 // Mark all objects in an object group with at least one marked | 186 // Mark all objects in an object group with at least one marked |
186 // object, then all objects reachable from marked objects in object | 187 // object, then all objects reachable from marked objects in object |
187 // groups, and repeat. | 188 // groups, and repeat. |
188 static void ProcessObjectGroups(MarkingVisitor* visitor); | 189 static void ProcessObjectGroups(MarkingVisitor* visitor); |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 | 406 |
406 friend class UnmarkObjectVisitor; | 407 friend class UnmarkObjectVisitor; |
407 static void UnmarkObject(HeapObject* obj); | 408 static void UnmarkObject(HeapObject* obj); |
408 #endif | 409 #endif |
409 }; | 410 }; |
410 | 411 |
411 | 412 |
412 } } // namespace v8::internal | 413 } } // namespace v8::internal |
413 | 414 |
414 #endif // V8_MARK_COMPACT_H_ | 415 #endif // V8_MARK_COMPACT_H_ |
OLD | NEW |