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

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

Issue 9212045: Do not follow accessor map transitions when marking descriptor arrays. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 11 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 | « no previous file | src/mark-compact.cc » ('j') | src/mark-compact.cc » ('J')
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 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 638
639 // Creates back pointers for all map transitions, stores them in 639 // Creates back pointers for all map transitions, stores them in
640 // the prototype field. The original prototype pointers are restored 640 // the prototype field. The original prototype pointers are restored
641 // in ClearNonLiveTransitions(). All JSObject maps 641 // in ClearNonLiveTransitions(). All JSObject maps
642 // connected by map transitions have the same prototype object, which 642 // connected by map transitions have the same prototype object, which
643 // is why we can use this field temporarily for back pointers. 643 // is why we can use this field temporarily for back pointers.
644 void CreateBackPointers(); 644 void CreateBackPointers();
645 645
646 // Mark a Map and its DescriptorArray together, skipping transitions. 646 // Mark a Map and its DescriptorArray together, skipping transitions.
647 void MarkMapContents(Map* map); 647 void MarkMapContents(Map* map);
648 bool MarkUnmarked(Object* value);
649 bool MarkUnmarkedAndPush(Object* value);
650 void MarkAccessorPairSlot(AccessorPair* accessors, int offset);
648 void MarkDescriptorArray(DescriptorArray* descriptors); 651 void MarkDescriptorArray(DescriptorArray* descriptors);
649 652
650 // Mark the heap roots and all objects reachable from them. 653 // Mark the heap roots and all objects reachable from them.
651 void MarkRoots(RootMarkingVisitor* visitor); 654 void MarkRoots(RootMarkingVisitor* visitor);
652 655
653 // Mark the symbol table specially. References to symbols from the 656 // Mark the symbol table specially. References to symbols from the
654 // symbol table are weak. 657 // symbol table are weak.
655 void MarkSymbolTable(); 658 void MarkSymbolTable();
656 659
657 // Mark objects in object groups that have at least one object in the 660 // Mark objects in object groups that have at least one object in the
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 756
754 friend class Heap; 757 friend class Heap;
755 }; 758 };
756 759
757 760
758 const char* AllocationSpaceName(AllocationSpace space); 761 const char* AllocationSpaceName(AllocationSpace space);
759 762
760 } } // namespace v8::internal 763 } } // namespace v8::internal
761 764
762 #endif // V8_MARK_COMPACT_H_ 765 #endif // V8_MARK_COMPACT_H_
OLDNEW
« no previous file with comments | « no previous file | src/mark-compact.cc » ('j') | src/mark-compact.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698