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

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

Issue 10381053: Implement explicit back pointers in transition tree. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed some comments by Vyacheslav Egorov. Created 8 years, 7 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/heap.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 624 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 INLINE(void MarkObject(HeapObject* obj, MarkBit mark_bit)); 635 INLINE(void MarkObject(HeapObject* obj, MarkBit mark_bit));
636 636
637 INLINE(bool MarkObjectWithoutPush(HeapObject* object)); 637 INLINE(bool MarkObjectWithoutPush(HeapObject* object));
638 INLINE(void MarkObjectAndPush(HeapObject* value)); 638 INLINE(void MarkObjectAndPush(HeapObject* value));
639 639
640 // Marks the object black. This is for non-incremental marking. 640 // Marks the object black. This is for non-incremental marking.
641 INLINE(void SetMark(HeapObject* obj, MarkBit mark_bit)); 641 INLINE(void SetMark(HeapObject* obj, MarkBit mark_bit));
642 642
643 void ProcessNewlyMarkedObject(HeapObject* obj); 643 void ProcessNewlyMarkedObject(HeapObject* obj);
644 644
645 // Creates back pointers for all map transitions, stores them in
646 // the prototype field. The original prototype pointers are restored
647 // in ClearNonLiveTransitions(). All JSObject maps
648 // connected by map transitions have the same prototype object, which
649 // is why we can use this field temporarily for back pointers.
650 void CreateBackPointers();
651
652 // Mark a Map and its DescriptorArray together, skipping transitions. 645 // Mark a Map and its DescriptorArray together, skipping transitions.
653 void MarkMapContents(Map* map); 646 void MarkMapContents(Map* map);
654 void MarkAccessorPairSlot(HeapObject* accessors, int offset); 647 void MarkAccessorPairSlot(HeapObject* accessors, int offset);
655 void MarkDescriptorArray(DescriptorArray* descriptors); 648 void MarkDescriptorArray(DescriptorArray* descriptors);
656 649
657 // Mark the heap roots and all objects reachable from them. 650 // Mark the heap roots and all objects reachable from them.
658 void MarkRoots(RootMarkingVisitor* visitor); 651 void MarkRoots(RootMarkingVisitor* visitor);
659 652
660 // Mark the symbol table specially. References to symbols from the 653 // Mark the symbol table specially. References to symbols from the
661 // symbol table are weak. 654 // symbol table are weak.
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 755
763 friend class Heap; 756 friend class Heap;
764 }; 757 };
765 758
766 759
767 const char* AllocationSpaceName(AllocationSpace space); 760 const char* AllocationSpaceName(AllocationSpace space);
768 761
769 } } // namespace v8::internal 762 } } // namespace v8::internal
770 763
771 #endif // V8_MARK_COMPACT_H_ 764 #endif // V8_MARK_COMPACT_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698