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

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

Issue 6815029: Merge (7180:7265] from bleeding_edge to the experimental/gc branch.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: 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/stub-cache-ia32.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 static void MarkRoots(RootMarkingVisitor* visitor); 337 static void MarkRoots(RootMarkingVisitor* visitor);
338 338
339 // Mark the symbol table specially. References to symbols from the 339 // Mark the symbol table specially. References to symbols from the
340 // symbol table are weak. 340 // symbol table are weak.
341 static void MarkSymbolTable(); 341 static void MarkSymbolTable();
342 342
343 // Mark objects in object groups that have at least one object in the 343 // Mark objects in object groups that have at least one object in the
344 // group marked. 344 // group marked.
345 static void MarkObjectGroups(); 345 static void MarkObjectGroups();
346 346
347 // Mark all objects in an object group with at least one marked 347 // Mark objects in implicit references groups if their parent object
348 // object, then all objects reachable from marked objects in object 348 // is marked.
349 // groups, and repeat. 349 static void MarkImplicitRefGroups();
350 static void ProcessObjectGroups(); 350
351 // Mark all objects which are reachable due to host application
352 // logic like object groups or implicit references' groups.
353 static void ProcessExternalMarking();
351 354
352 // Mark objects reachable (transitively) from objects in the marking stack 355 // Mark objects reachable (transitively) from objects in the marking stack
353 // or overflowed in the heap. 356 // or overflowed in the heap.
354 static void ProcessMarkingStack(); 357 static void ProcessMarkingStack();
355 358
356 // Mark objects reachable (transitively) from objects in the marking 359 // Mark objects reachable (transitively) from objects in the marking
357 // stack. This function empties the marking stack, but may leave 360 // stack. This function empties the marking stack, but may leave
358 // overflowed objects in the heap, in which case the marking stack's 361 // overflowed objects in the heap, in which case the marking stack's
359 // overflow flag will be set. 362 // overflow flag will be set.
360 static void EmptyMarkingStack(); 363 static void EmptyMarkingStack();
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 450
448 friend class UnmarkObjectVisitor; 451 friend class UnmarkObjectVisitor;
449 static void UnmarkObject(HeapObject* obj); 452 static void UnmarkObject(HeapObject* obj);
450 #endif 453 #endif
451 }; 454 };
452 455
453 456
454 } } // namespace v8::internal 457 } } // namespace v8::internal
455 458
456 #endif // V8_MARK_COMPACT_H_ 459 #endif // V8_MARK_COMPACT_H_
OLDNEW
« no previous file with comments | « src/ia32/stub-cache-ia32.cc ('k') | src/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698