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

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

Issue 7348008: Merge up to 8597 to experimental/gc from the bleeding edge. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: '' Created 9 years, 5 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/macros.py ('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 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 // stack. This function empties the marking stack, but may leave 594 // stack. This function empties the marking stack, but may leave
595 // overflowed objects in the heap, in which case the marking stack's 595 // overflowed objects in the heap, in which case the marking stack's
596 // overflow flag will be set. 596 // overflow flag will be set.
597 void EmptyMarkingDeque(); 597 void EmptyMarkingDeque();
598 598
599 // Refill the marking stack with overflowed objects from the heap. This 599 // Refill the marking stack with overflowed objects from the heap. This
600 // function either leaves the marking stack full or clears the overflow 600 // function either leaves the marking stack full or clears the overflow
601 // flag on the marking stack. 601 // flag on the marking stack.
602 void RefillMarkingDeque(); 602 void RefillMarkingDeque();
603 603
604 // After reachable maps have been marked process per context object
605 // literal map caches removing unmarked entries.
606 void ProcessMapCaches();
607
604 // Callback function for telling whether the object *p is an unmarked 608 // Callback function for telling whether the object *p is an unmarked
605 // heap object. 609 // heap object.
606 static bool IsUnmarkedHeapObject(Object** p); 610 static bool IsUnmarkedHeapObject(Object** p);
607 611
608 #ifdef DEBUG 612 #ifdef DEBUG
609 void UpdateLiveObjectCount(HeapObject* obj); 613 void UpdateLiveObjectCount(HeapObject* obj);
610 #endif 614 #endif
611 615
612 // Map transitions from a live map to a dead map must be killed. 616 // Map transitions from a live map to a dead map must be killed.
613 // We replace them with a null descriptor, with the same key. 617 // We replace them with a null descriptor, with the same key.
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 699
696 List<Page*> evacuation_candidates_; 700 List<Page*> evacuation_candidates_;
697 701
698 friend class Heap; 702 friend class Heap;
699 }; 703 };
700 704
701 705
702 } } // namespace v8::internal 706 } } // namespace v8::internal
703 707
704 #endif // V8_MARK_COMPACT_H_ 708 #endif // V8_MARK_COMPACT_H_
OLDNEW
« no previous file with comments | « src/macros.py ('k') | src/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698