OLD | NEW |
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 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
781 // This is for non-incremental marking only. | 781 // This is for non-incremental marking only. |
782 INLINE(void MarkObject(HeapObject* obj, MarkBit mark_bit)); | 782 INLINE(void MarkObject(HeapObject* obj, MarkBit mark_bit)); |
783 | 783 |
784 // Marks the object black assuming that it is not yet marked. | 784 // Marks the object black assuming that it is not yet marked. |
785 // This is for non-incremental marking only. | 785 // This is for non-incremental marking only. |
786 INLINE(void SetMark(HeapObject* obj, MarkBit mark_bit)); | 786 INLINE(void SetMark(HeapObject* obj, MarkBit mark_bit)); |
787 | 787 |
788 // Mark the heap roots and all objects reachable from them. | 788 // Mark the heap roots and all objects reachable from them. |
789 void MarkRoots(RootMarkingVisitor* visitor); | 789 void MarkRoots(RootMarkingVisitor* visitor); |
790 | 790 |
791 // Mark the symbol table specially. References to symbols from the | 791 // Mark the string table specially. References to internalized strings from |
792 // symbol table are weak. | 792 // the string table are weak. |
793 void MarkSymbolTable(); | 793 void MarkStringTable(); |
794 | 794 |
795 // Mark objects in implicit references groups if their parent object | 795 // Mark objects in implicit references groups if their parent object |
796 // is marked. | 796 // is marked. |
797 void MarkImplicitRefGroups(); | 797 void MarkImplicitRefGroups(); |
798 | 798 |
799 // Mark all objects which are reachable due to host application | 799 // Mark all objects which are reachable due to host application |
800 // logic like object groups or implicit references' groups. | 800 // logic like object groups or implicit references' groups. |
801 void ProcessExternalMarking(RootMarkingVisitor* visitor); | 801 void ProcessExternalMarking(RootMarkingVisitor* visitor); |
802 | 802 |
803 // Mark objects reachable (transitively) from objects in the marking stack | 803 // Mark objects reachable (transitively) from objects in the marking stack |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
893 | 893 |
894 friend class Heap; | 894 friend class Heap; |
895 }; | 895 }; |
896 | 896 |
897 | 897 |
898 const char* AllocationSpaceName(AllocationSpace space); | 898 const char* AllocationSpaceName(AllocationSpace space); |
899 | 899 |
900 } } // namespace v8::internal | 900 } } // namespace v8::internal |
901 | 901 |
902 #endif // V8_MARK_COMPACT_H_ | 902 #endif // V8_MARK_COMPACT_H_ |
OLD | NEW |